mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
81 lines
1.2 KiB
SCSS
81 lines
1.2 KiB
SCSS
@use "sass:math";
|
|
|
|
$_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 * 0.5;
|
|
padding: 0;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-weight: $heavy-font-weight;
|
|
margin-bottom: $small-spacing * 0.5;
|
|
}
|
|
|
|
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: math.div($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;
|
|
}
|
|
}
|
|
|
|
&::placeholder {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
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%;
|
|
}
|