mirror of
https://github.com/zoriya/flood.git
synced 2025-12-21 14:45:14 +00:00
85 lines
1.5 KiB
SCSS
85 lines
1.5 KiB
SCSS
.textbox,
|
|
.button {
|
|
appearance: none;
|
|
-moz-appearance: none;
|
|
-webkit-appearance: none;
|
|
outline: none;
|
|
}
|
|
|
|
.textbox {
|
|
background: $textbox--background;
|
|
border-radius: 4px;
|
|
border: 1px solid $textbox--border;
|
|
color: $textbox--foreground;
|
|
display: block;
|
|
font-size: 1em;
|
|
padding: 10px 15px;
|
|
transition: background 0.25s, border 0.25s, color 0.25s;
|
|
width: 100%;
|
|
|
|
&::placeholder {
|
|
color: $textbox--placeholder;
|
|
font-style: italic;
|
|
transition: color 0.25s;
|
|
}
|
|
|
|
&:focus {
|
|
background: $textbox--active--background;
|
|
border-color: $textbox--active--border;
|
|
color: $textbox--active--foreground;
|
|
|
|
&::placeholder {
|
|
color: $textbox--active--placeholder;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.button {
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: 400;
|
|
padding: 10px 30px;
|
|
transition: background 0.25s;
|
|
|
|
&--deemphasize {
|
|
background: $button--deemphasized--background;
|
|
color: $button--deemphasized--foreground;
|
|
|
|
&:hover {
|
|
background: $button--deemphasized--background--hover;
|
|
color: $button--deemphasized--foreground--hover;
|
|
}
|
|
}
|
|
|
|
&--primary {
|
|
background: $button--primary--background;
|
|
color: $button--primary--foreground;
|
|
white-space: nowrap;
|
|
|
|
&:hover {
|
|
background: $button--primary--background--hover;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.form {
|
|
|
|
&__label {
|
|
color: $form--label--foreground;
|
|
display: block;
|
|
margin-bottom: 0.1em;
|
|
}
|
|
|
|
&__row {
|
|
|
|
& + .form__row {
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
|
|
}
|