mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 11:58:41 +08:00

``` WARNING: Sass's behavior for declarations that appear after nested rules will be changing to match the behavior specified by CSS in an upcoming version. To keep the existing behavior, move the declaration above the nested rule. To opt into the new behavior, wrap the declaration in `& {}`. More info: https://sass-lang.com/d/mixed-decls ```
55 lines
1.1 KiB
SCSS
55 lines
1.1 KiB
SCSS
.form-kit__control-input {
|
|
z-index: 1;
|
|
min-width: auto !important;
|
|
|
|
@include default-input;
|
|
|
|
.form-kit__field.has-error & {
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
&.has-prefix.has-suffix {
|
|
border-radius: 0;
|
|
}
|
|
|
|
&.has-prefix:not(.has-suffix) {
|
|
border-radius: 0 var(--d-input-border-radius) var(--d-input-border-radius) 0;
|
|
}
|
|
|
|
&.has-suffix:not(.has-prefix) {
|
|
border-radius: var(--d-input-border-radius) 0 0 var(--d-input-border-radius);
|
|
}
|
|
|
|
&-wrapper {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.form-kit__before-input,
|
|
.form-kit__after-input {
|
|
border: 1px solid var(--primary-low-mid);
|
|
padding-inline: 0.5em;
|
|
height: 2em;
|
|
box-sizing: border-box;
|
|
background: var(--primary-low);
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
@include breakpoint(mobile-large) {
|
|
height: 2.25em;
|
|
}
|
|
}
|
|
|
|
.form-kit__before-input {
|
|
margin-right: -0.25em;
|
|
border-radius: var(--d-input-border-radius) 0 0 var(--d-input-border-radius);
|
|
}
|
|
|
|
.form-kit__after-input {
|
|
margin-left: -0.25em;
|
|
border-radius: 0 var(--d-input-border-radius) var(--d-input-border-radius) 0;
|
|
}
|