scinote-web/app/assets/stylesheets/shared_styles/elements/alerts.scss

49 lines
634 B
SCSS
Raw Normal View History

2020-01-17 02:08:14 +08:00
.alert {
border-radius: 0;
margin-bottom: 0;
opacity: .86;
width: 100%;
2020-01-21 22:21:40 +08:00
}
.alert-floating {
align-items: center;
display: flex;
height: 52px;
padding: 9px;
2020-01-17 02:08:14 +08:00
2020-01-17 17:49:41 +08:00
.fas {
font-size: $font-size-h2;
margin-left: 12px;
}
2020-01-17 02:08:14 +08:00
2020-01-17 17:49:41 +08:00
.message {
color: $color-volcano;
flex-grow: 1;
margin-left: 14px;
}
2020-01-17 02:08:14 +08:00
2020-01-17 17:49:41 +08:00
.close {
top: 0;
2020-01-17 02:08:14 +08:00
}
}
2020-01-21 22:21:40 +08:00
.alert:not(.alert-floating) {
color: $color-volcano;
&.alert-danger .fas {
color: $brand-danger;
}
&.alert-warning .fas {
color: $brand-warning;
}
&.alert-info .fas {
color: $brand-info;
}
&.alert-success .fas {
color: $brand-success;
}
}