nitter/src/sass/inputs.scss

185 lines
3.1 KiB
SCSS
Raw Normal View History

2019-09-13 08:44:21 +00:00
@import '_variables';
@import '_mixins';
button {
@include input-colors;
background-color: var(--bg_elements);
color: var(--fg_color);
border: 1px solid var(--accent_border);
2019-09-13 08:44:21 +00:00
padding: 3px 6px;
font-size: 14px;
cursor: pointer;
float: right;
}
2019-09-19 20:11:38 +00:00
input[type="text"],
2019-10-23 10:05:08 +00:00
input[type="date"],
select {
2019-09-13 08:44:21 +00:00
@include input-colors;
background-color: var(--bg_elements);
2019-09-13 08:44:21 +00:00
padding: 1px 4px;
color: var(--fg_color);
border: 1px solid var(--accent_border);
2019-09-13 08:44:21 +00:00
border-radius: 0;
font-size: 14px;
}
2019-10-28 03:02:22 +00:00
input[type="text"] {
height: 16px;
}
select {
height: 20px;
padding: 0 2px;
}
2019-09-19 20:11:38 +00:00
input[type="date"]::-webkit-inner-spin-button {
2019-09-20 00:20:09 +00:00
display: none;
}
input[type="date"]::-webkit-clear-button {
margin-left: 17px;
filter: grayscale(100%);
filter: hue-rotate(120deg);
2019-09-19 20:11:38 +00:00
}
input::-webkit-calendar-picker-indicator {
opacity: 0;
}
input::-webkit-datetime-edit-day-field:focus,
input::-webkit-datetime-edit-month-field:focus,
input::-webkit-datetime-edit-year-field:focus {
background-color: var(--accent);
color: var(--fg_color);
2019-09-19 20:11:38 +00:00
outline: none;
}
.date-range {
2019-09-19 21:36:21 +00:00
.date-input {
display: inline-block;
position: relative;
}
2019-09-19 20:11:38 +00:00
.icon-container {
pointer-events: none;
2019-09-19 21:36:21 +00:00
position: absolute;
top: 2px;
right: 5px;
2019-09-19 20:11:38 +00:00
}
.search-title {
margin: 0 2px;
}
}
2019-09-13 08:44:21 +00:00
.icon-button button {
color: var(--accent);
2019-09-13 08:44:21 +00:00
text-decoration: none;
background: none;
2019-09-13 08:44:21 +00:00
border: none;
float: none;
padding: unset;
padding-left: 4px;
&:hover {
color: var(--accent_light);
2019-09-13 08:44:21 +00:00
}
}
.checkbox {
position: absolute;
top: 1px;
right: 0;
height: 17px;
width: 17px;
background-color: var(--bg_elements);
border: 1px solid var(--accent_border);
2019-09-13 08:44:21 +00:00
&:after {
content: "";
position: absolute;
display: none;
}
}
.checkbox-container {
display: block;
position: relative;
margin-bottom: 5px;
cursor: pointer;
user-select: none;
padding-right: 22px;
input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
&:checked ~ .checkbox:after {
display: block;
}
}
&:hover input ~ .checkbox {
border-color: var(--accent);
2019-09-13 08:44:21 +00:00
}
&:active input ~ .checkbox {
border-color: var(--accent_light);
2019-09-13 08:44:21 +00:00
}
.checkbox:after {
left: 2px;
bottom: 0;
font-size: 13px;
font-family: $font_4;
content: '\e803';
}
}
2019-09-17 19:01:44 +00:00
.pref-group {
display: inline;
}
2019-09-13 08:44:21 +00:00
.preferences {
button {
margin: 6px 0 3px 0;
}
label {
padding-right: 135px;
}
2019-10-23 10:05:08 +00:00
select {
position: absolute;
top: 0;
right: 0;
display: block;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
}
2019-09-13 08:44:21 +00:00
input[type="text"] {
position: absolute;
right: 0;
max-width: 120px;
}
2019-09-17 19:01:44 +00:00
.pref-group {
display: block;
}
2019-09-13 08:44:21 +00:00
.pref-input {
position: relative;
margin-bottom: 6px;
}
.pref-reset {
float: left;
}
}