1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00
chota/src/_form.css

134 lines
2.7 KiB
CSS
Raw Normal View History

2017-03-30 08:00:14 +03:00
fieldset {
padding: 0.5rem 2rem;
2017-03-30 08:00:14 +03:00
}
legend {
text-transform: uppercase;
font-size: 0.8em;
letter-spacing: 0.1rem;
2017-03-30 08:00:14 +03:00
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]),
2017-03-30 08:00:14 +03:00
select,
textarea,
textarea[type="text"] {
font-family: inherit;
padding: 0.7rem 1rem;
border-radius: 4px;
border: 1px solid var(--lightGrey-color);
font-size: 1em;
transition: all 0.2s ease;
display: block;
width: 100%;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]):hover,
2017-03-30 08:00:14 +03:00
select:hover,
textarea:hover,
textarea[type="text"]:hover {
border-color: #aaa;
2017-03-30 08:00:14 +03:00
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]):focus,
2017-03-30 08:00:14 +03:00
select:focus,
textarea:focus,
textarea[type="text"]:focus {
outline: none;
border-color: var(--primary-color);
2017-03-30 08:00:14 +03:00
}
select {
-webkit-appearance: none;
background: #fafafa no-repeat 100%;
background-size: 1ex;
background-origin: content-box;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='#555'><polygon points='0,0 60,0 30,40'/></svg>");
2017-03-30 08:00:14 +03:00
}
[type="checkbox"],
[type="radio"] {
width: 1.6rem;
height: 1.6rem;
2017-03-30 08:00:14 +03:00
}
/* BUTTONS */
.button,
[type="button"],
[type="reset"],
[type="submit"],
2017-03-30 08:00:14 +03:00
button {
padding: 1rem 2.5rem;
color: #333;
background: #e6e6e6;
border-radius: 4px;
border: none;
font-size: 1.5rem;
line-height: 1;
text-align: center;
transition: opacity 0.2s ease;
text-decoration: none;
transform: scale(1);
display: inline-block;
2017-03-30 08:00:14 +03:00
}
.button + .button {
margin-left: 1rem;
2017-03-30 08:00:14 +03:00
}
.button:hover,
[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover,
2017-03-30 08:00:14 +03:00
button:hover {
opacity: 0.8;
2017-03-30 08:00:14 +03:00
}
.button:active,
[type="button"]:active,
[type="reset"]:active,
[type="submit"]:active,
2017-03-30 08:00:14 +03:00
button:active {
transform: scale(0.98);
2017-03-30 08:00:14 +03:00
}
2017-04-02 09:05:23 +03:00
input[disabled],
button[disabled],
input[disabled]:hover,
button[disabled]:hover {
opacity: 0.4;
cursor: not-allowed;
2017-03-30 08:00:14 +03:00
}
.button.primary,
.button.secondary,
[type="submit"] {
color: #fff;
background-color: #000;
background: var(--primary-color);
}
.button.secondary {
background: var(--darkGrey-color);
2017-03-30 08:00:14 +03:00
}
.button.outline {
background-color: transparent;
border: 1px solid var(--lightGrey-color);
2017-03-30 08:00:14 +03:00
}
.button.outline.primary {
border-color: var(--primary-color);
color: var(--primary-color);
}
.button.outline.secondary {
border-color: var(--darkGrey-color);
color: var(--darkGrey-color);
2017-03-30 08:00:14 +03:00
}
.button.clear {
background-color: transparent;
border-color: transparent;
color: var(--primary-color);
2017-03-30 08:00:14 +03:00
}