discourse/app/assets/stylesheets/common/base/alert.scss

42 lines
776 B
SCSS
Raw Normal View History

.alert {
padding: 8px 32px 8px 16px;
2017-10-11 04:07:46 +08:00
background-color: $danger-low;
color: $primary;
position: relative;
.close {
position: absolute;
top: 8px;
right: 8px;
2018-01-13 06:27:38 +08:00
line-height: $line-height-small;
font-size: $font-up-3;
color: $primary-low-mid;
@include hover {
color: $primary-medium;
cursor: pointer;
}
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
&.alert-success {
background-color: $success-low;
2014-08-06 21:31:13 +08:00
color: $primary;
}
&.alert-error {
background-color: $danger-low;
2014-08-06 21:31:13 +08:00
color: $primary;
}
&.alert-info {
2017-06-12 10:20:14 +08:00
background-color: $tertiary-low;
color: $primary;
&.clickable {
color: $tertiary;
}
}
}