mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
216 lines
3.2 KiB
SCSS
216 lines
3.2 KiB
SCSS
textarea {
|
|
&[cols] {
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
/**
|
|
Form label
|
|
*/
|
|
.form-label {
|
|
font-size: $h4-font-size;
|
|
font-weight: $font-weight-bold;
|
|
display: block;
|
|
margin-bottom: .5rem;
|
|
}
|
|
|
|
.form-label-description {
|
|
float: right;
|
|
font-weight: $font-weight-normal;
|
|
color: $text-muted;
|
|
line-height: $line-height-base * (100%/$small-font-size);
|
|
font-size: $small-font-size;
|
|
}
|
|
|
|
/**
|
|
Form hint
|
|
*/
|
|
.form-hint {
|
|
font-size: $small-font-size;
|
|
color: $text-muted;
|
|
margin: 0 0 .75rem;
|
|
line-height: $line-height-sm;
|
|
}
|
|
|
|
/**
|
|
Form control
|
|
*/
|
|
.form-control {
|
|
&:-webkit-autofill {
|
|
box-shadow: 0 0 0 1000px #ffffff inset;
|
|
}
|
|
|
|
&:disabled,
|
|
&.disabled {
|
|
color: $text-muted;
|
|
user-select: none;
|
|
}
|
|
|
|
&[size] {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.form-control-light {
|
|
background-color: $gray-100;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.form-control-rounded {
|
|
border-radius: 10rem;
|
|
}
|
|
|
|
.form-control-flush {
|
|
padding: 0;
|
|
background: none !important;
|
|
border-color: transparent !important;
|
|
resize: none;
|
|
box-shadow: none !important;
|
|
line-height: inherit;
|
|
}
|
|
|
|
.form-footer {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.form-fieldset {
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
background: $min-black;
|
|
border: 1px solid $border-color;
|
|
border-radius: $border-radius;
|
|
}
|
|
|
|
.form-required {
|
|
color: $red;
|
|
}
|
|
|
|
/**
|
|
Form help
|
|
*/
|
|
.form-help {
|
|
display: inline-flex;
|
|
font-weight: 600;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1.125rem;
|
|
height: 1.125rem;
|
|
font-size: .75rem;
|
|
color: $text-muted;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
background: $gray-200;
|
|
border-radius: 50%;
|
|
transition: .3s background-color, .3s color;
|
|
|
|
&:hover,
|
|
&[aria-describedby] {
|
|
color: #ffffff;
|
|
background: $primary;
|
|
}
|
|
}
|
|
|
|
/**
|
|
Form switch
|
|
*/
|
|
.form-check {
|
|
user-select: none;
|
|
|
|
&.form-check-highlight .form-check-input:not(:checked) ~ .form-check-label {
|
|
opacity: .64;
|
|
}
|
|
}
|
|
|
|
.form-check-input {
|
|
margin-top: .25rem;
|
|
}
|
|
|
|
.form-check-label {
|
|
line-height: $line-height-sm;
|
|
padding: .125rem 0;
|
|
}
|
|
|
|
.form-check-description {
|
|
color: $text-muted;
|
|
font-size: $h5-font-size;
|
|
line-height: $line-height-sm;
|
|
}
|
|
|
|
/**
|
|
Input group
|
|
*/
|
|
.input-group-prepend .input-group-text {
|
|
border-right: 0;
|
|
}
|
|
|
|
.input-group-append .input-group-text {
|
|
border-left: 0;
|
|
}
|
|
|
|
.input-group-link {
|
|
font-size: $h5-font-size;
|
|
}
|
|
|
|
.input-group-flat {
|
|
&:focus-within {
|
|
box-shadow: $input-focus-box-shadow;
|
|
border-radius: $input-border-radius;
|
|
|
|
.form-control,
|
|
.input-group-text {
|
|
border-color: $input-focus-border-color !important;
|
|
}
|
|
}
|
|
|
|
.form-control {
|
|
&:focus {
|
|
border-color: $input-border-color;
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
border-right: 0;
|
|
}
|
|
|
|
&:not(:first-child) {
|
|
border-left: 0;
|
|
}
|
|
}
|
|
|
|
.input-group-prepend {
|
|
margin-right: 0;
|
|
border-right: 0;
|
|
|
|
.input-group-text {
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
|
|
.input-group-append {
|
|
margin-left: 0;
|
|
|
|
&:not(:last-child) .input-group-text {
|
|
border-right: 0;
|
|
}
|
|
|
|
.input-group-text {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
.input-group-text {
|
|
background: transparent;
|
|
transition: $input-transition;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
Upload files
|
|
*/
|
|
.form-file-button {
|
|
margin-left: 0;
|
|
border-left: 0;
|
|
} |