1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/assets/css/elements/_forms.scss
Dan Barber bedd6605ef
Redesign whole site in B&W
* Forms and board tweaks for small screen sizes
* Re-style game status indicators
* Re-style viewing/offline indicator
* Better eyecons 👁
* Re-organise CSS according to ITCSS principles
* Pick new font from Google Fonts
* Fix up tests
* Move some things into partials
2018-09-16 14:02:52 -04:00

75 lines
1.2 KiB
SCSS

$_form-background-color: $background-color;
fieldset {
background-color: transparent;
border: 0;
margin: 0;
padding: 0;
}
legend {
font-weight: $heavy-font-weight;
margin-bottom: $small-spacing / 2;
padding: 0;
}
label {
display: block;
font-weight: $heavy-font-weight;
margin-bottom: $small-spacing / 2;
}
input,
select,
textarea {
display: block;
font-family: $base-font-family;
font-size: inherit;
}
#{$all-text-inputs} {
appearance: none;
background-color: $_form-background-color;
border: $base-border;
border-radius: $base-border-radius;
box-sizing: border-box;
color: $foreground-color;
margin-bottom: $small-spacing;
padding: $base-spacing / 3;
transition: border-color $base-duration $base-timing;
width: 100%;
&:focus {
border: 1px solid $base-border-color;
outline: none;
}
&:disabled {
cursor: not-allowed;
&:hover {
border: $base-border;
}
}
}
textarea {
resize: vertical;
}
[type="checkbox"],
[type="radio"] {
display: inline;
margin-right: $x-small-spacing;
}
[type="file"] {
margin-bottom: $small-spacing;
width: 100%;
}
select {
margin-bottom: $small-spacing;
width: 100%;
}