grafana/public/sass/components/_alerts.scss

71 lines
1.1 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
//
// Alerts
// --------------------------------------------------
// Base styles
// -------------------------
2016-02-15 08:27:41 -06:00
.alert {
padding: 0.5rem 2rem 0.5rem 1rem;
2016-02-16 03:42:06 -06:00
margin-bottom: $line-height-base;
2016-02-15 08:27:41 -06:00
text-shadow: 0 1px 0 rgba(255,255,255,.5);
2016-02-16 03:42:06 -06:00
background-color: $state-warning-bg;
2016-02-15 08:27:41 -06:00
position: relative;
color: $white;
text-shadow: 0 1px 0 rgba(0,0,0,.5);
border-radius: 2px;
}
// Alternate styles
// -------------------------
.alert-success {
background-color: $successBackground;
}
.alert-danger,
.alert-error {
background-color: $errorBackground;
}
.alert-info {
background-color: $infoBackground;
}
.alert-warning {
2016-02-16 03:42:06 -06:00
background-color: $state-warning-bg;
2016-02-15 08:27:41 -06:00
}
.page-alert-list {
z-index: 8000;
min-width: 300px;
max-width: 300px;
position: fixed;
right: 20px;
top: 56px;
}
.alert-close {
position: absolute;
top: -4px;
right: -2px;
width: 16px;
height: 16px;
2016-02-15 08:27:41 -06:00
padding: 0;
background: $white;
border-radius: 50%;
border: none;
font-size: 1.1rem;
color: $dark-4;
2016-02-15 08:27:41 -06:00
.fa {
position: relative;
2016-02-26 11:59:24 -06:00
top: -2px;
2016-02-15 08:27:41 -06:00
}
}
.alert-title {
2016-02-16 03:42:06 -06:00
font-weight: $font-weight-semi-bold;
2016-02-15 08:27:41 -06:00
padding-bottom: 2px;
}