grafana/public/sass/components/_alerts.scss
2016-02-16 10:42:06 +01:00

69 lines
1.1 KiB
SCSS

//
// Alerts
// --------------------------------------------------
// Base styles
// -------------------------
.alert {
padding: 8px 35px 13px 14px;
margin-bottom: $line-height-base;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
background-color: $state-warning-bg;
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 {
background-color: $state-warning-bg;
}
.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: 18px;
height: 18px;
padding: 0;
background: $white;
border-radius: 50%;
border: none;
font-size: 1.1rem;
color: $gray-darker;
.fa {
position: relative;
top: -2px;
}
}
.alert-title {
font-weight: $font-weight-semi-bold;
padding-bottom: 2px;
}