mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 23:44:04 +08:00
b6b0d68576
- removes unused css code - improves password control sizing - adds more spacing between collection items - correct a typo in collection class --------- Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
56 lines
1.2 KiB
SCSS
56 lines
1.2 KiB
SCSS
.form-kit__control-input {
|
|
@include default-input;
|
|
z-index: 1;
|
|
margin: 0 !important;
|
|
width: 100% !important;
|
|
min-width: auto !important;
|
|
|
|
.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;
|
|
}
|