Forms \o/
This commit is contained in:
parent
04868263a9
commit
2379731773
12 changed files with 1133 additions and 145 deletions
|
|
@ -237,7 +237,9 @@ body,
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
button {
|
||||
button,
|
||||
input[type="button"],
|
||||
input[type="submit"] {
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
|
|
@ -259,148 +261,226 @@ button {
|
|||
font-size: 14px;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
button:hover,
|
||||
input[type="button"]:hover,
|
||||
input[type="submit"]:hover {
|
||||
background-color: #363955;
|
||||
}
|
||||
|
||||
button:active {
|
||||
button:active,
|
||||
input[type="button"]:active,
|
||||
input[type="submit"]:active {
|
||||
background-color: #2c2e46;
|
||||
}
|
||||
|
||||
button.small {
|
||||
button.small,
|
||||
input[type="button"].small,
|
||||
input[type="submit"].small {
|
||||
font-size: 12px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
button.outlined {
|
||||
button.outlined,
|
||||
input[type="button"].outlined,
|
||||
input[type="submit"].outlined {
|
||||
background-color: transparent;
|
||||
border: 2px solid #525572;
|
||||
}
|
||||
|
||||
button.outlined:hover {
|
||||
button.outlined:hover,
|
||||
input[type="button"].outlined:hover,
|
||||
input[type="submit"].outlined:hover {
|
||||
background-color: transparent;
|
||||
border: 2px solid #363955;
|
||||
-webkit-transition: all 150ms ease-in-out;
|
||||
transition: all 150ms ease-in-out;
|
||||
}
|
||||
|
||||
button.outlined:active {
|
||||
button.outlined:active,
|
||||
input[type="button"].outlined:active,
|
||||
input[type="submit"].outlined:active {
|
||||
background-color: transparent;
|
||||
border: 2px solid #2c2e46;
|
||||
}
|
||||
|
||||
button.inverted {
|
||||
button.inverted,
|
||||
input[type="button"].inverted,
|
||||
input[type="submit"].inverted {
|
||||
background-color: #dddbc9;
|
||||
color: #33240e;
|
||||
-webkit-box-shadow: 0px 0px 10px 0px rgba(221, 219, 201, 0.5);
|
||||
box-shadow: 0px 0px 10px 0px rgba(221, 219, 201, 0.5);
|
||||
}
|
||||
|
||||
button.inverted:hover {
|
||||
button.inverted:hover,
|
||||
input[type="button"].inverted:hover,
|
||||
input[type="submit"].inverted:hover {
|
||||
background-color: #f1f0e8;
|
||||
}
|
||||
|
||||
button.inverted:active {
|
||||
button.inverted:active,
|
||||
input[type="button"].inverted:active,
|
||||
input[type="submit"].inverted:active {
|
||||
background-color: #e7e5d9;
|
||||
}
|
||||
|
||||
button.inverted.outlined {
|
||||
button.inverted.outlined,
|
||||
input[type="button"].inverted.outlined,
|
||||
input[type="submit"].inverted.outlined {
|
||||
background-color: transparent;
|
||||
color: #dddbc9;
|
||||
border: 2px solid #dddbc9;
|
||||
}
|
||||
|
||||
button.inverted.outlined:hover {
|
||||
button.inverted.outlined:hover,
|
||||
input[type="button"].inverted.outlined:hover,
|
||||
input[type="submit"].inverted.outlined:hover {
|
||||
color: #f1f0e8;
|
||||
border: 2px solid #f1f0e8;
|
||||
}
|
||||
|
||||
button.inverted.outlined:active {
|
||||
button.inverted.outlined:active,
|
||||
input[type="button"].inverted.outlined:active,
|
||||
input[type="submit"].inverted.outlined:active {
|
||||
color: #e0e9f6;
|
||||
border: 2px solid #e7e5d9;
|
||||
}
|
||||
|
||||
button.red {
|
||||
button.red,
|
||||
button input[type="reset"],
|
||||
input[type="button"].red,
|
||||
input[type="button"] input[type="reset"],
|
||||
input[type="submit"].red,
|
||||
input[type="submit"] input[type="reset"] {
|
||||
background-color: #ff4340;
|
||||
}
|
||||
|
||||
button.red:hover {
|
||||
button.red:hover,
|
||||
button input[type="reset"]:hover,
|
||||
input[type="button"].red:hover,
|
||||
input[type="button"] input[type="reset"]:hover,
|
||||
input[type="submit"].red:hover,
|
||||
input[type="submit"] input[type="reset"]:hover {
|
||||
background-color: #ff7573;
|
||||
}
|
||||
|
||||
button.red:active {
|
||||
button.red:active,
|
||||
button input[type="reset"]:active,
|
||||
input[type="button"].red:active,
|
||||
input[type="button"] input[type="reset"]:active,
|
||||
input[type="submit"].red:active,
|
||||
input[type="submit"] input[type="reset"]:active {
|
||||
background-color: #ff5c5a;
|
||||
}
|
||||
|
||||
button.red.outlined {
|
||||
button.red.outlined,
|
||||
button input[type="reset"].outlined,
|
||||
input[type="button"].red.outlined,
|
||||
input[type="button"] input[type="reset"].outlined,
|
||||
input[type="submit"].red.outlined,
|
||||
input[type="submit"] input[type="reset"].outlined {
|
||||
background-color: transparent;
|
||||
color: #ff4340;
|
||||
border: 2px solid #ff4340;
|
||||
}
|
||||
|
||||
button.red.outlined:hover {
|
||||
button.red.outlined:hover,
|
||||
button input[type="reset"].outlined:hover,
|
||||
input[type="button"].red.outlined:hover,
|
||||
input[type="button"] input[type="reset"].outlined:hover,
|
||||
input[type="submit"].red.outlined:hover,
|
||||
input[type="submit"] input[type="reset"].outlined:hover {
|
||||
color: #ff7573;
|
||||
border: 2px solid #ff7573;
|
||||
}
|
||||
|
||||
button.red.outlined:active {
|
||||
button.red.outlined:active,
|
||||
button input[type="reset"].outlined:active,
|
||||
input[type="button"].red.outlined:active,
|
||||
input[type="button"] input[type="reset"].outlined:active,
|
||||
input[type="submit"].red.outlined:active,
|
||||
input[type="submit"] input[type="reset"].outlined:active {
|
||||
color: #ff5c5a;
|
||||
border: 2px solid #ff5c5a;
|
||||
}
|
||||
|
||||
button.green {
|
||||
button.green,
|
||||
input[type="button"].green,
|
||||
input[type="submit"].green {
|
||||
background-color: #7cb342;
|
||||
}
|
||||
|
||||
button.green:hover {
|
||||
button.green:hover,
|
||||
input[type="button"].green:hover,
|
||||
input[type="submit"].green:hover {
|
||||
background-color: #95c563;
|
||||
}
|
||||
|
||||
button.green:active {
|
||||
button.green:active,
|
||||
input[type="button"].green:active,
|
||||
input[type="submit"].green:active {
|
||||
background-color: #89be50;
|
||||
}
|
||||
|
||||
button.green.outlined {
|
||||
button.green.outlined,
|
||||
input[type="button"].green.outlined,
|
||||
input[type="submit"].green.outlined {
|
||||
background-color: transparent;
|
||||
color: #7cb342;
|
||||
border: 2px solid #7cb342;
|
||||
}
|
||||
|
||||
button.green.outlined:hover {
|
||||
button.green.outlined:hover,
|
||||
input[type="button"].green.outlined:hover,
|
||||
input[type="submit"].green.outlined:hover {
|
||||
color: #95c563;
|
||||
border: 2px solid;
|
||||
}
|
||||
|
||||
button.green.outlined:active {
|
||||
button.green.outlined:active,
|
||||
input[type="button"].green.outlined:active,
|
||||
input[type="submit"].green.outlined:active {
|
||||
color: #89be50;
|
||||
border: 2px solid;
|
||||
}
|
||||
|
||||
button.cyan {
|
||||
button.cyan,
|
||||
input[type="button"].cyan,
|
||||
input[type="submit"].cyan {
|
||||
background-color: #00bee0;
|
||||
color: #222436;
|
||||
}
|
||||
|
||||
button.cyan:hover {
|
||||
button.cyan:hover,
|
||||
input[type="button"].cyan:hover,
|
||||
input[type="submit"].cyan:hover {
|
||||
background-color: #14dbff;
|
||||
}
|
||||
|
||||
button.cyan:active {
|
||||
button.cyan:active,
|
||||
input[type="button"].cyan:active,
|
||||
input[type="submit"].cyan:active {
|
||||
background-color: #00d4fa;
|
||||
}
|
||||
|
||||
button.cyan.outlined {
|
||||
button.cyan.outlined,
|
||||
input[type="button"].cyan.outlined,
|
||||
input[type="submit"].cyan.outlined {
|
||||
background-color: transparent;
|
||||
color: #00bee0;
|
||||
border: 2px solid #00bee0;
|
||||
}
|
||||
|
||||
button.cyan.outlined:hover {
|
||||
button.cyan.outlined:hover,
|
||||
input[type="button"].cyan.outlined:hover,
|
||||
input[type="submit"].cyan.outlined:hover {
|
||||
color: #14dbff;
|
||||
border: 2px solid #14dbff;
|
||||
}
|
||||
|
||||
button.cyan.outlined:active {
|
||||
button.cyan.outlined:active,
|
||||
input[type="button"].cyan.outlined:active,
|
||||
input[type="submit"].cyan.outlined:active {
|
||||
color: #00d4fa;
|
||||
border: 2px solid #00d4fa;
|
||||
}
|
||||
|
|
@ -447,6 +527,185 @@ button.cyan.outlined:active {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
form {
|
||||
max-width: 100vw;
|
||||
}
|
||||
|
||||
form .input-with-icon i {
|
||||
position: absolute;
|
||||
margin-top: 10px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
form .input-with-icon input {
|
||||
padding-left: 32px !important;
|
||||
}
|
||||
|
||||
form .flex-form {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-ms-grid-columns: (minmax(384px, 1fr))[auto-fit];
|
||||
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
|
||||
grid-gap: 1rem 3rem;
|
||||
grid-auto-flow: dense;
|
||||
margin: auto;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
form .flex-form.labelled {
|
||||
-ms-grid-columns: 1fr 5fr;
|
||||
grid-template-columns: 1fr 5fr;
|
||||
}
|
||||
|
||||
form .flex-form input {
|
||||
background-color: #535884;
|
||||
color: #ccdbf1;
|
||||
}
|
||||
|
||||
form .flex-form input[type="password"], form .flex-form input[type="text"], form .flex-form input[type="date"], form .flex-form input[type="email"], form .flex-form input[type="file"], form .flex-form input[type="month"], form .flex-form input[type="number"], form .flex-form input[type="tel"], form .flex-form input[type="search"], form .flex-form input[type="url"], form .flex-form input[type="week"] {
|
||||
font-family: "Spartan";
|
||||
border-radius: 0.3em;
|
||||
-webkit-box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
-webkit-transition: all 150ms ease-in-out;
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
form .flex-form input[type="color"] {
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
form .flex-form input[type="search"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
form .flex-form input::-webkit-input-placeholder {
|
||||
color: rgba(204, 219, 241, 0.5);
|
||||
}
|
||||
|
||||
form .flex-form input:-ms-input-placeholder {
|
||||
color: rgba(204, 219, 241, 0.5);
|
||||
}
|
||||
|
||||
form .flex-form input::-ms-input-placeholder {
|
||||
color: rgba(204, 219, 241, 0.5);
|
||||
}
|
||||
|
||||
form .flex-form input::placeholder {
|
||||
color: rgba(204, 219, 241, 0.5);
|
||||
}
|
||||
|
||||
form .flex-form input[type="checkbox"], form .flex-form input[type="color"], form .flex-form input[type="radio"] {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
form .flex-form input[type="range"] {
|
||||
height: 26px;
|
||||
-webkit-appearance: none;
|
||||
margin: 10px 0;
|
||||
width: 100%;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
form .flex-form input[type="range"]:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
form .flex-form input[type="range"]::-webkit-slider-runnable-track {
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
cursor: pointer;
|
||||
-webkit-animation: 0.2s;
|
||||
animation: 0.2s;
|
||||
-webkit-box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
background: #363955;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
form .flex-form input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
height: 20px;
|
||||
width: 40px;
|
||||
border-radius: 12px;
|
||||
background: #00bee0;
|
||||
cursor: pointer;
|
||||
-webkit-appearance: none;
|
||||
margin-top: -3px;
|
||||
}
|
||||
|
||||
form input[type="reset"] {
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: #ccdbf1;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
border-radius: 0.3em;
|
||||
-webkit-box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
box-shadow: 0px 0px 10px 0px rgba(14, 15, 23, 0.5);
|
||||
-webkit-transition: all 150ms ease-in-out;
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
background-color: #ff4340;
|
||||
}
|
||||
|
||||
form input[type="reset"]:hover {
|
||||
background-color: #ff7573;
|
||||
}
|
||||
|
||||
form input[type="reset"]:active {
|
||||
background-color: #ff5c5a;
|
||||
}
|
||||
|
||||
form input[type="reset"].small {
|
||||
font-size: 12px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
form input[type="reset"].outlined {
|
||||
background-color: transparent;
|
||||
border: 2px solid #525572;
|
||||
}
|
||||
|
||||
form input[type="reset"].outlined:hover {
|
||||
background-color: transparent;
|
||||
border: 2px solid #363955;
|
||||
-webkit-transition: all 150ms ease-in-out;
|
||||
transition: all 150ms ease-in-out;
|
||||
}
|
||||
|
||||
form input[type="reset"].outlined:active {
|
||||
background-color: transparent;
|
||||
border: 2px solid #2c2e46;
|
||||
}
|
||||
|
||||
form input[type="button"],
|
||||
form input[type="reset"],
|
||||
form input[type="submit"] {
|
||||
display: block;
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
margin: auto;
|
||||
font-family: "Spartan";
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue