hugo-theme-terminal/assets/css/form.scss

44 lines
637 B
SCSS
Raw Permalink Normal View History

2022-06-21 13:50:51 +00:00
input, textarea, select {
background: transparent;
2022-06-21 15:14:59 +00:00
color: $accent;
border: 1px solid $accent;
2022-06-21 13:50:51 +00:00
border-radius: 0;
padding: 10px;
2023-06-09 22:27:17 +00:00
margin: 5px 0;
2022-06-21 13:50:51 +00:00
font: inherit;
appearance: none;
&:focus, :active {
2022-06-21 15:14:59 +00:00
border-color: $color;
outline: 1px solid $color;
2022-06-21 13:50:51 +00:00
}
&:active {
box-shadow: none;
}
}
select {
2022-06-21 15:14:59 +00:00
background: $background;
2022-06-21 13:50:51 +00:00
option {
2022-06-21 15:14:59 +00:00
background: $background;
2022-06-21 13:50:51 +00:00
}
}
::placeholder {
2022-11-13 21:45:10 +00:00
color: transparentize($accent, .5);
2022-06-21 13:50:51 +00:00
}
2023-06-09 22:27:17 +00:00
input {
&[type="checkbox"] {
vertical-align: middle;
padding: 10px;
box-shadow: inset 0 0 0 3px $background;
&:checked {
background: $accent;
}
}
}