grafana/public/sass/components/_alerts.scss

83 lines
1.3 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
//
// Alerts
// --------------------------------------------------
// Base styles
// -------------------------
.alert {
padding: 1.25rem 2rem 1.25rem 1.5rem;
2016-02-16 03:42:06 -06:00
margin-bottom: $line-height-base;
text-shadow: 0 2px 0 rgba(255,255,255,.5);
background: $alert-error-bg;
2016-02-15 08:27:41 -06:00
position: relative;
color: $white;
text-shadow: 0 1px 0 rgba(0,0,0,.2);
2016-02-15 08:27:41 -06:00
border-radius: 2px;
display: flex;
flex-direction: row;
2016-02-15 08:27:41 -06:00
}
// Alternate styles
// -------------------------
.alert-success {
background: $alert-success-bg;
2016-02-15 08:27:41 -06:00
}
.alert-danger,
.alert-error {
background: $alert-error-bg;
2016-02-15 08:27:41 -06:00
}
2016-02-15 08:27:41 -06:00
.alert-info {
background: $alert-info-bg;
2016-02-15 08:27:41 -06:00
}
2016-02-15 08:27:41 -06:00
.alert-warning {
background: $alert-warning-bg;
2016-02-15 08:27:41 -06:00
}
.page-alert-list {
z-index: 8000;
min-width: 400px;
max-width: 600px;
2016-02-15 08:27:41 -06:00
position: fixed;
right: 10px;
top: 60px;
2016-02-15 08:27:41 -06:00
}
.alert-close {
padding: 0 0 0 1rem;
2016-02-15 08:27:41 -06:00
border: none;
background: none;
display: flex;
align-items: center;
2016-02-15 08:27:41 -06:00
.fa {
align-self: flex-end;
font-size: 1.5rem;
color: rgba(255,255,255,.75)
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;
}
.alert-icon {
padding: 0 1rem 0 0;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
.fa {
font-size: 1.5rem;
}
}
.alert-body {
flex-grow: 1;
}