Forms \o/

This commit is contained in:
oitsjustjose 2020-03-27 15:44:49 -04:00
commit 2379731773
12 changed files with 1133 additions and 145 deletions

View file

@ -1,4 +1,6 @@
button {
button,
input[type="button"],
input[type="submit"] {
padding: 0.75rem 1rem;
border: none;
outline: none;
@ -72,7 +74,8 @@ button {
}
}
&.red {
&.red,
input[type="reset"] {
background-color: $red;
&:hover {

View file

@ -0,0 +1,162 @@
form {
max-width: 100vw;
.input-with-icon {
i {
position: absolute;
margin-top: 10px;
margin-left: 10px;
}
& input {
padding-left: 32px !important;
}
}
.flex-form {
display: grid;
align-items: center;
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
grid-gap: 1rem 3rem;
grid-auto-flow: dense;
margin: auto;
padding: 1rem;
&.labelled {
grid-template-columns: 1fr 5fr;
}
input {
background-color: lighten($background, 25%);
color: $foreground;
&[type="password"],
&[type="text"],
&[type="date"],
&[type="email"],
&[type="file"],
&[type="month"],
&[type="number"],
&[type="tel"],
&[type="search"],
&[type="url"],
&[type="week"] {
font-family: "Spartan";
border-radius: 0.3em;
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
transition: all 150ms ease-in-out;
font-size: 14px;
padding: 0.75rem 1rem;
border: none;
outline: none;
}
&[type="color"] {
border-radius: 0.3em;
}
&[type="search"] {
width: 100%;
}
&::placeholder {
color: rgba($foreground, 0.5);
}
&[type="checkbox"],
&[type="color"],
&[type="radio"] {
margin: auto;
}
&[type="range"] {
height: 26px;
-webkit-appearance: none;
margin: 10px 0;
width: 100%;
background-color: transparent;
&:focus {
outline: none;
}
&::-webkit-slider-runnable-track {
width: 100%;
height: 14px;
cursor: pointer;
animation: 0.2s;
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
background: lighten($background, 10%);
border-radius: 14px;
}
&::-webkit-slider-thumb {
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
height: 20px;
width: 40px;
border-radius: 12px;
background: $cyan;
cursor: pointer;
-webkit-appearance: none;
margin-top: -3px;
}
}
}
}
input[type="reset"] {
padding: 0.75rem 1rem;
border: none;
outline: none;
color: $foreground;
user-select: none;
cursor: pointer;
width: fit-content;
border-radius: 0.3em;
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
transition: all 150ms ease-in-out;
font-size: 14px;
background-color: $red;
&:hover {
background-color: lighten($red, 10%);
}
&:active {
background-color: lighten($red, 5%);
}
&.small {
font-size: 12px;
padding: 0.5rem 0.75rem;
}
&.outlined {
background-color: transparent;
border: 2px solid map-get($components, "button");
&:hover {
background-color: transparent;
border: 2px solid lighten($background, 10%);
transition: all 150ms ease-in-out;
}
&:active {
background-color: transparent;
border: 2px solid lighten($background, 5%);
}
}
}
input[type="button"],
input[type="reset"],
input[type="submit"] {
display: block;
width: fit-content;
margin: auto;
font-family: "Spartan";
margin-bottom: 1rem;
}
}

View file

@ -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: #3f3f3f;
}
button:active {
button:active,
input[type="button"]:active,
input[type="submit"]:active {
background-color: #323232;
}
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 #3a3a3a;
}
button.outlined:hover {
button.outlined:hover,
input[type="button"].outlined:hover,
input[type="submit"].outlined:hover {
background-color: transparent;
border: 2px solid #3f3f3f;
-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 #323232;
}
button.inverted {
button.inverted,
input[type="button"].inverted,
input[type="submit"].inverted {
background-color: #dadada;
color: #111111;
-webkit-box-shadow: 0px 0px 10px 0px rgba(218, 218, 218, 0.5);
box-shadow: 0px 0px 10px 0px rgba(218, 218, 218, 0.5);
}
button.inverted:hover {
button.inverted:hover,
input[type="button"].inverted:hover,
input[type="submit"].inverted:hover {
background-color: #f4f4f4;
}
button.inverted:active {
button.inverted:active,
input[type="button"].inverted:active,
input[type="submit"].inverted:active {
background-color: #e7e7e7;
}
button.inverted.outlined {
button.inverted.outlined,
input[type="button"].inverted.outlined,
input[type="submit"].inverted.outlined {
background-color: transparent;
color: #dadada;
border: 2px solid #dadada;
}
button.inverted.outlined:hover {
button.inverted.outlined:hover,
input[type="button"].inverted.outlined:hover,
input[type="submit"].inverted.outlined:hover {
color: #f4f4f4;
border: 2px solid #f4f4f4;
}
button.inverted.outlined:active {
button.inverted.outlined:active,
input[type="button"].inverted.outlined:active,
input[type="submit"].inverted.outlined:active {
color: #fbfbfb;
border: 2px solid #e7e7e7;
}
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: #252525;
}
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: #656565;
color: #eeeeee;
}
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(12, 12, 12, 0.5);
box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 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(238, 238, 238, 0.5);
}
form .flex-form input:-ms-input-placeholder {
color: rgba(238, 238, 238, 0.5);
}
form .flex-form input::-ms-input-placeholder {
color: rgba(238, 238, 238, 0.5);
}
form .flex-form input::placeholder {
color: rgba(238, 238, 238, 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(12, 12, 12, 0.5);
box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 0.5);
background: #3f3f3f;
border-radius: 14px;
}
form .flex-form input[type="range"]::-webkit-slider-thumb {
-webkit-box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 0.5);
box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 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: #eeeeee;
-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(12, 12, 12, 0.5);
box-shadow: 0px 0px 10px 0px rgba(12, 12, 12, 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 #3a3a3a;
}
form input[type="reset"].outlined:hover {
background-color: transparent;
border: 2px solid #3f3f3f;
-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 #323232;
}
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;

File diff suppressed because one or more lines are too long

View file

@ -7,6 +7,7 @@
@import "button";
@import "container";
@import "embed";
@import "form";
@import "grid";
@import "image";
@import "masthead";

View file

@ -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: white;
}
button:active {
button:active,
input[type="button"]:active,
input[type="submit"]:active {
background-color: #fbfbfb;
}
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 #d0d0d0;
}
button.outlined:hover {
button.outlined:hover,
input[type="button"].outlined:hover,
input[type="submit"].outlined:hover {
background-color: transparent;
border: 2px solid white;
-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 #fbfbfb;
}
button.inverted {
button.inverted,
input[type="button"].inverted,
input[type="submit"].inverted {
background-color: #111111;
color: #dadada;
-webkit-box-shadow: 0px 0px 10px 0px rgba(17, 17, 17, 0.5);
box-shadow: 0px 0px 10px 0px rgba(17, 17, 17, 0.5);
}
button.inverted:hover {
button.inverted:hover,
input[type="button"].inverted:hover,
input[type="submit"].inverted:hover {
background-color: #2b2b2b;
}
button.inverted:active {
button.inverted:active,
input[type="button"].inverted:active,
input[type="submit"].inverted:active {
background-color: #1e1e1e;
}
button.inverted.outlined {
button.inverted.outlined,
input[type="button"].inverted.outlined,
input[type="submit"].inverted.outlined {
background-color: transparent;
color: #111111;
border: 2px solid #111111;
}
button.inverted.outlined:hover {
button.inverted.outlined:hover,
input[type="button"].inverted.outlined:hover,
input[type="submit"].inverted.outlined:hover {
color: #2b2b2b;
border: 2px solid #2b2b2b;
}
button.inverted.outlined:active {
button.inverted.outlined:active,
input[type="button"].inverted.outlined:active,
input[type="submit"].inverted.outlined:active {
color: #323232;
border: 2px solid #1e1e1e;
}
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: #eeeeee;
}
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: white;
color: #252525;
}
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(213, 213, 213, 0.5);
box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 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(37, 37, 37, 0.5);
}
form .flex-form input:-ms-input-placeholder {
color: rgba(37, 37, 37, 0.5);
}
form .flex-form input::-ms-input-placeholder {
color: rgba(37, 37, 37, 0.5);
}
form .flex-form input::placeholder {
color: rgba(37, 37, 37, 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(213, 213, 213, 0.5);
box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 0.5);
background: white;
border-radius: 14px;
}
form .flex-form input[type="range"]::-webkit-slider-thumb {
-webkit-box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 0.5);
box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 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: #252525;
-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(213, 213, 213, 0.5);
box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 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 #d0d0d0;
}
form input[type="reset"].outlined:hover {
background-color: transparent;
border: 2px solid white;
-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 #fbfbfb;
}
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;

File diff suppressed because one or more lines are too long

View file

@ -7,6 +7,7 @@
@import "button";
@import "container";
@import "embed";
@import "form";
@import "grid";
@import "image";
@import "masthead";

View file

@ -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;

File diff suppressed because one or more lines are too long

View file

@ -7,6 +7,7 @@
@import "button";
@import "container";
@import "embed";
@import "form";
@import "grid";
@import "image";
@import "masthead";

View file

@ -32,7 +32,7 @@
<span>
Support&nbsp;<i class="fa fa-caret-right"></i>
</span>
<div class="compact sub item"4>
<div class="compact sub item" 4>
Item 1
</div>
<div class="compact sub item">
@ -470,61 +470,101 @@
</div>
</div>
<!-- MODALS: -->
<div class="wide divider"> </div>
<div id="card-modal-demo" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<h3 class="header">
Card Modal Demo
</h3>
<img class="" src="https://i.picsum.photos/id/107/5760/3840.jpg">
</div>
</div>
<div class="container">
<h2 class="centered header">Forms</h2>
<p class="centered">
Forms are also styled to match JuiceUI's design language! Here's how that works:
</p>
<form>
<div class="labelled flex-form">
<label for="text1">A Text Input Box:</label>
<input name="text1" type="text" placeholder="E-mail">
<label for="password">A Password Input Box:</label>
<input name="password" type="password" placeholder="Password">
</div>
<div id="testModal" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<h3 class="header">
YouTube Embed Demo In A Modal
</h3>
<div class="embed">
<iframe src="https://www.youtube.com/embed/5tjr7g5WFqc" frameborder="0"
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<div class="flex-form">
<input type="button" value="Input Button (NOT submit)">
<input type="checkbox">
<input type="color">
<input type="date">
<input type="email">
<input type="file">
<input type="month">
<input type="number">
<input type="radio">
<input type="tel">
<div class="input-with-icon">
<i class="fa fa-search"></i>
<input type="search">
</div>
<input type="range">
<input type="url">
<input type="week">
</div>
<input type="reset">
<input type="submit" value="Submit This Form">
</form>
<!-- MODALS: -->
<div id="card-modal-demo" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<h3 class="header">
Card Modal Demo
</h3>
<img class="" src="https://i.picsum.photos/id/107/5760/3840.jpg">
</div>
</div>
</div>
<div id="aboutModal" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<div class="container">
<h3 class="header">About This Page</h3>
<p class="content">
<ul>
<li>
This page was written with mobile optimization first!
</li>
<li>
This ThemeKit is written from scratch with minimal <b>NO</b> JQuery (using DOM)
</li>
<li>
This page not only shows you how these things work, but demo to me how they're turning out
too!
</li>
</ul>
</p>
<div id="testModal" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<h3 class="header">
YouTube Embed Demo In A Modal
</h3>
<div class="embed">
<iframe src="https://www.youtube.com/embed/5tjr7g5WFqc" frameborder="0"
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
</div>
</div>
</div>
<div id="aboutModal" class="modal">
<div class="modal-content">
<span class="close">
<i class="fa fa-close"></i>
</span>
<div class="container">
<h3 class="header">About This Page</h3>
<p class="content">
<ul>
<li>
This page was written with mobile optimization first!
</li>
<li>
This ThemeKit is written from scratch with minimal <b>NO</b> JQuery (using DOM)
</li>
<li>
This page not only shows you how these things work, but demo to me how they're turning
out
too!
</li>
</ul>
</p>
</div>
</div>
</div>
</div>
</body>