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

44 lines
708 B
SCSS
Raw Normal View History

2022-06-21 13:50:51 +00:00
input, textarea, select {
background: transparent;
2024-07-30 15:39:09 +00:00
color: var(--accent);
border: 1px solid var(--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 {
2024-07-30 15:39:09 +00:00
border-color: var(--color);
outline: 1px solid var(--color);
2022-06-21 13:50:51 +00:00
}
&:active {
box-shadow: none;
}
}
select {
2024-07-30 15:39:09 +00:00
background: var(--background);
2022-06-21 13:50:51 +00:00
option {
2024-07-30 15:39:09 +00:00
background: var(--background);
2022-06-21 13:50:51 +00:00
}
}
::placeholder {
color: color-mix(in srgb, var(--accent), transparent 50%);
2022-06-21 13:50:51 +00:00
}
2023-06-09 22:27:17 +00:00
input {
&[type="checkbox"] {
vertical-align: middle;
padding: 10px;
2024-07-30 15:39:09 +00:00
box-shadow: inset 0 0 0 3px var(--background);
2023-06-09 22:27:17 +00:00
&:checked {
2024-07-30 15:39:09 +00:00
background: var(--accent);
2023-06-09 22:27:17 +00:00
}
}
}