mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 19:13:40 +08:00
db8c1f20ed
This commit changes the group SMTP settings form (at
`/g/:name/manage/email`) to use
FormKit, our magical new form component system ✨
---------
Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
51 lines
1.1 KiB
SCSS
51 lines
1.1 KiB
SCSS
@mixin default-input {
|
|
width: 100% !important;
|
|
height: 2em;
|
|
background: var(--secondary);
|
|
border: 1px solid var(--primary-low-mid);
|
|
border-radius: var(--d-input-border-radius);
|
|
padding: 0 0.5em !important;
|
|
box-sizing: border-box;
|
|
margin: 0 !important;
|
|
appearance: none;
|
|
|
|
@include breakpoint(mobile-large) {
|
|
width: 100% !important;
|
|
height: 2.25em;
|
|
}
|
|
|
|
&:focus,
|
|
&:focus-visible,
|
|
&:focus:focus-visible,
|
|
&:active {
|
|
//these importants are another great case for having a button element without that pesky default styling
|
|
&:not(:disabled) {
|
|
background-color: var(--secondary) !important;
|
|
color: var(--primary) !important;
|
|
border-color: var(--tertiary);
|
|
outline: 2px solid var(--tertiary);
|
|
outline-offset: -2px;
|
|
|
|
.d-icon {
|
|
color: inherit !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover:not(:disabled) {
|
|
.discourse-no-touch & {
|
|
background-color: var(--secondary);
|
|
color: var(--primary);
|
|
border-color: var(--tertiary);
|
|
|
|
.d-icon {
|
|
color: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
.has-errors & {
|
|
border-color: var(--danger);
|
|
}
|
|
}
|