このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
Nitter-mod/src/sass/inputs.scss

157 行
2.6 KiB
SCSS
Raw 通常表示 履歴

2019-09-13 17:44:21 +09:00
@import '_variables';
@import '_mixins';
button {
@include input-colors;
background-color: $bg_elements;
color: $fg_color;
border: 1px solid $accent_border;
padding: 3px 6px;
font-size: 14px;
cursor: pointer;
float: right;
}
2019-09-20 05:11:38 +09:00
input[type="text"],
input[type="date"] {
2019-09-13 17:44:21 +09:00
@include input-colors;
background-color: $bg_elements;
padding: 1px 4px;
color: $fg_color;
border: 1px solid $accent_border;
border-radius: 0;
font-size: 14px;
}
2019-09-20 05:11:38 +09:00
input[type="date"]::-webkit-inner-spin-button {
opacity: 0;
margin: 0;
padding: 0;
}
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: $accent;
color: $fg_color;
outline: none;
}
.date-range {
display: block;
.icon-container {
margin-left: -22px;
margin-right: 4px;
pointer-events: none;
}
.search-title {
margin: 0 2px;
}
}
2019-09-13 17:44:21 +09:00
.icon-button button {
color: $accent;
text-decoration: none;
background: none;
2019-09-13 17:44:21 +09:00
border: none;
float: none;
padding: unset;
padding-left: 4px;
&:hover {
color: $accent_light;
}
}
.checkbox {
position: absolute;
top: 1px;
right: 0;
height: 17px;
width: 17px;
background-color: $bg_elements;
border: 1px solid $accent_border;
&: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: $accent;
}
&:active input ~ .checkbox {
border-color: $accent_light;
}
.checkbox:after {
left: 2px;
bottom: 0;
font-size: 13px;
font-family: $font_4;
content: '\e803';
}
}
2019-09-18 04:01:44 +09:00
.pref-group {
display: inline;
}
2019-09-13 17:44:21 +09:00
.preferences {
button {
margin: 6px 0 3px 0;
}
label {
padding-right: 135px;
}
input[type="text"] {
position: absolute;
right: 0;
max-width: 120px;
}
2019-09-18 04:01:44 +09:00
.pref-group {
display: block;
}
2019-09-13 17:44:21 +09:00
.pref-input {
position: relative;
margin-bottom: 6px;
}
.pref-reset {
float: left;
}
}