mirror of
https://github.com/flarum/framework.git
synced 2025-02-09 05:07:13 +08:00
![Sami Mazouz](/assets/img/avatar_default.png)
* refactor: Avatar classes refactor * refactor: Badge classes refactor * chore: Remove commented dead code * chore: Remove SignUpModal dead CSS code Flarum seem to have had some kind of user display in the sign up modal on successful sign up, which no longer exists. https://github.com/flarum/core/blob/v0.1.0-beta/js/forum/src/components/SignUpModal.js#L111 * chore: Deprecate unneeded vendor mixins * chore: Normalize property values format Co-authored-by: David Wheatley <hi@davwheat.dev> * chore: Remove @-webkit-keyframes * chore: Combine animation properties * chore: Avoid `all` for transition * chore: translate3d is no longer necessary for hardware acceleration * fix: Lost cursor pointer to normalize update * chore: Use CSS variables for more things * chore: Remove unecessary overspecification Co-authored-by: David Wheatley <hi@davwheat.dev>
67 lines
1.1 KiB
Plaintext
67 lines
1.1 KiB
Plaintext
.Alert {
|
|
padding: 12px 16px;
|
|
border-radius: @border-radius;
|
|
line-height: 1.5;
|
|
|
|
background: var(--alert-bg);
|
|
|
|
&,
|
|
a,
|
|
a:hover,
|
|
.Button,
|
|
.Button:hover,
|
|
.Button:active,
|
|
.Button.active,
|
|
.Button:focus,
|
|
.Button.focus {
|
|
color: var(--alert-color);
|
|
}
|
|
|
|
.Alert--color(@alert-color, @alert-bg);
|
|
}
|
|
.Alert--error {
|
|
.Alert--color(@alert-error-color, @alert-error-bg);
|
|
}
|
|
.Alert--success {
|
|
.Alert--color(@alert-success-color, @alert-success-bg);
|
|
|
|
a, a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
.Alert--color(@color; @background) {
|
|
--alert-bg: @background;
|
|
--alert-color: @color;
|
|
}
|
|
.Alert-controls {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0 -8px 0 8px;
|
|
display: inline-block;
|
|
|
|
> li {
|
|
display: inline-block;
|
|
margin: 0 5px;
|
|
|
|
> a, > .Button {
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
|
|
&.disabled {
|
|
cursor: default;
|
|
text-decoration: none;
|
|
opacity: 0.5;
|
|
}
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
> .Button {
|
|
margin: -10px;
|
|
vertical-align: 0;
|
|
}
|
|
}
|
|
}
|