mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:50:45 +08:00
f72899401d
This PR refactors the following: * leaving all the CSS applied to the old `modal-body` classes in their respective files * made new clean styling for `.d-modal` and refactored the template to use the new BEM classes * `inner-`, `middle-`, `outer-` container classes are gone and replaced with simplified `wrapper` and `container` classes * use standardised max-sizes with modifiers `-large` and `-max` * lighter backdrop, * min-width to prevent puny modals * other styling changes regarding padding, close button,… * pulled out all modal overrides into a general `modal-overrides` file + cleanup of outdated CSS * pulled out login and create account modal styling into their own file, cause it's such a big override * removed old general login.scss file for mobile & desktop * only kept some remainders I don't want to touch in `app/assets/stylesheets/common/base/login.scss`
44 lines
824 B
SCSS
44 lines
824 B
SCSS
.alert {
|
|
padding: 0.5em 2.5em 0.5em 1em;
|
|
background-color: var(--danger-low);
|
|
color: var(--primary);
|
|
position: relative;
|
|
margin-bottom: 1em;
|
|
|
|
.close {
|
|
font-size: var(--font-up-3);
|
|
position: absolute;
|
|
top: 0.265em;
|
|
right: 0.66em;
|
|
padding: 0;
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
}
|
|
}
|
|
|
|
&.alert-success {
|
|
background-color: var(--success-low);
|
|
color: var(--primary);
|
|
}
|
|
&.alert-error {
|
|
background-color: var(--danger-low);
|
|
color: var(--primary);
|
|
}
|
|
&.alert-warning {
|
|
background-color: var(--highlight-bg);
|
|
color: var(--primary);
|
|
}
|
|
&.alert-info {
|
|
background-color: var(--tertiary-low);
|
|
color: var(--primary);
|
|
&.clickable {
|
|
color: var(--tertiary);
|
|
z-index: z("base");
|
|
}
|
|
}
|
|
}
|
|
|
|
a.alert.clickable {
|
|
display: flex;
|
|
}
|