168 行
3.4 KiB
SCSS
168 行
3.4 KiB
SCSS
|
.form-control, .form-control:focus {
|
||
|
background-color: $black1; color: $white1;
|
||
|
}
|
||
|
.form-control {
|
||
|
border: 1px solid $suwa10;
|
||
|
display: block;
|
||
|
width: 100%;
|
||
|
height: calc(1.5em + 0.75rem + 2px);
|
||
|
padding: 0.375rem 0.75rem;
|
||
|
font-size: 1rem;
|
||
|
font-weight: 400;
|
||
|
line-height: 1.5;
|
||
|
background-clip: padding-box;
|
||
|
border-radius: 0.25rem;
|
||
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||
|
}
|
||
|
.form-control:focus {
|
||
|
border: 1px solid $suwa03;
|
||
|
outline: 0;
|
||
|
box-shadow: 0 0 0 0.2rem $suwa06;
|
||
|
}
|
||
|
.form-control:disabled, .form-control[readonly] {
|
||
|
background-color: $black1;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
.form-check-input[disabled] ~ .form-check-label,
|
||
|
.form-check-input:disabled ~ .form-check-label {
|
||
|
color: $grey3;
|
||
|
}
|
||
|
|
||
|
|
||
|
@media (prefers-reduced-motion: reduce) {
|
||
|
.form-control {
|
||
|
transition: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.form-control:-moz-focusring {
|
||
|
color: transparent;
|
||
|
text-shadow: 0 0 0 $grey5;
|
||
|
}
|
||
|
|
||
|
.form-control::-webkit-input-placeholder {
|
||
|
color: $grey3;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
.form-control::-moz-placeholder {
|
||
|
color: $grey3;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
.form-control::placeholder {
|
||
|
color: $grey3;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
input[type="date"].form-control,
|
||
|
input[type="time"].form-control,
|
||
|
input[type="datetime-local"].form-control,
|
||
|
input[type="month"].form-control {
|
||
|
-webkit-appearance: none;
|
||
|
-moz-appearance: none;
|
||
|
appearance: none;
|
||
|
}
|
||
|
|
||
|
select.form-control[size], select.form-control[multiple] {
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
textarea.form-control {
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
.form-group {
|
||
|
margin-bottom: 1rem;
|
||
|
}
|
||
|
|
||
|
.form-check {
|
||
|
position: relative;
|
||
|
display: block;
|
||
|
padding-left: 1.25rem;
|
||
|
}
|
||
|
|
||
|
.form-check-input {
|
||
|
position: absolute;
|
||
|
margin-top: 0.3rem;
|
||
|
margin-left: -1.25rem;
|
||
|
}
|
||
|
|
||
|
.form-check-label {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
|
||
|
.input-group {
|
||
|
position: relative;
|
||
|
display: flex;
|
||
|
flex-wrap: wrap;
|
||
|
-ms-flex-align: stretch;
|
||
|
align-items: stretch;
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
.input-group > .form-control,
|
||
|
.input-group > .custom-select {
|
||
|
position: relative;
|
||
|
flex: 1 1 auto;
|
||
|
width: 1%;
|
||
|
min-width: 0;
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
|
||
|
.input-group > .form-control + .form-control,
|
||
|
.input-group > .form-control + .custom-select,
|
||
|
.input-group > .custom-select + .form-control,
|
||
|
.input-group > .custom-select + .custom-select {
|
||
|
margin-left: -1px;
|
||
|
}
|
||
|
|
||
|
.input-group > .form-control:focus,
|
||
|
.input-group > .custom-select:focus {
|
||
|
z-index: 3;
|
||
|
}
|
||
|
|
||
|
.input-group > .form-control:not(:last-child),
|
||
|
.input-group > .custom-select:not(:last-child) {
|
||
|
border-top-right-radius: 0;
|
||
|
border-bottom-right-radius: 0;
|
||
|
}
|
||
|
|
||
|
.input-group > .form-control:not(:first-child),
|
||
|
.input-group > .custom-select:not(:first-child) {
|
||
|
border-top-left-radius: 0;
|
||
|
border-bottom-left-radius: 0;
|
||
|
}
|
||
|
|
||
|
.custom-select {
|
||
|
display: inline-block;
|
||
|
width: 100%;
|
||
|
height: calc(1.5em + 0.75rem + 2px);
|
||
|
padding: 0.375rem 1.75rem 0.375rem 0.75rem;
|
||
|
font-size: 1rem;
|
||
|
font-weight: 400;
|
||
|
line-height: 1.5;
|
||
|
vertical-align: middle;
|
||
|
background-color: $black1;
|
||
|
border: 1px solid $suwa10;
|
||
|
color: $white1;
|
||
|
border-radius: 0.25rem;
|
||
|
-webkit-appearance: none;
|
||
|
-moz-appearance: none;
|
||
|
appearance: none;
|
||
|
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||
|
}
|
||
|
|
||
|
@media (prefers-reduced-motion: reduce) { .custom-select { transition: none; } }
|
||
|
|
||
|
.custom-select[multiple], .custom-select[size]:not([size="1"]) {
|
||
|
height: auto;
|
||
|
padding-right: 0.75rem;
|
||
|
background-image: none;
|
||
|
}
|
||
|
|
||
|
.custom-select:disabled {
|
||
|
color: $grey3;
|
||
|
background-color: $white2;
|
||
|
}
|