Files
grafana/public/sass/components/_alerts.scss
T

89 lines
1.4 KiB
SCSS
Raw Normal View History

2016-02-15 15:27:41 +01:00
//
// Alerts
// --------------------------------------------------
// Base styles
// -------------------------
.alert {
2019-02-11 16:50:12 +01:00
padding: 15px 20px;
margin-bottom: $space-xs;
border-left: 3px solid $alert-error-bg;
background: $layer2;
2016-02-15 15:27:41 +01:00
position: relative;
2018-10-23 17:25:16 +02:00
border-radius: $border-radius;
2017-09-12 08:01:44 +02:00
display: flex;
flex-direction: row;
2019-02-11 13:24:02 +01:00
align-items: center;
2016-02-15 15:27:41 +01:00
}
// Alternate styles
// -------------------------
.alert-success {
border-color: $alert-success-bg;
2016-02-15 15:27:41 +01:00
}
.alert-danger,
.alert-error {
border-color: $alert-error-bg;
2016-02-15 15:27:41 +01:00
}
2016-02-15 15:27:41 +01:00
.alert-info {
border-color: $alert-info-bg;
2016-02-15 15:27:41 +01:00
}
2016-02-15 15:27:41 +01:00
.alert-warning {
border-color: $alert-warning-bg;
2016-02-15 15:27:41 +01:00
}
.alert-close {
padding: 0 0 0 $space-md;
2016-02-15 15:27:41 +01:00
border: none;
2017-09-12 08:01:44 +02:00
background: none;
display: flex;
align-items: center;
2016-02-15 15:27:41 +01:00
.fa {
2017-09-12 08:01:44 +02:00
align-self: flex-end;
font-size: 21px;
2017-12-19 16:22:41 +01:00
color: rgba(255, 255, 255, 0.75);
2016-02-15 15:27:41 +01:00
}
}
.alert-title {
2016-02-16 10:42:06 +01:00
font-weight: $font-weight-semi-bold;
2016-02-15 15:27:41 +01:00
}
2017-09-12 08:01:44 +02:00
.alert-icon {
padding: 0 $space-md 0 0;
2017-09-12 09:21:17 +02:00
display: flex;
align-items: center;
justify-content: center;
width: 35px;
2017-09-12 09:21:17 +02:00
.fa {
font-size: 21px;
2017-09-12 09:21:17 +02:00
}
2017-09-12 08:01:44 +02:00
}
.alert-body {
overflow-wrap: break-word;
word-break: break-word;
2017-09-12 08:01:44 +02:00
flex-grow: 1;
2017-09-12 09:05:32 +02:00
}
2019-09-16 17:56:01 +02:00
.alert-icon-on-top {
align-items: flex-start;
}
@include media-breakpoint-down(sm) {
.page-alert-list {
min-width: 0;
top: 30px;
width: calc(100% - 20px);
max-height: calc(100% - 60px);
overflow-y: auto;
}
}