grafana/public/sass/components/_alerts.scss

89 lines
1.4 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
//
// Alerts
// --------------------------------------------------
// Base styles
// -------------------------
.alert {
2019-02-11 09:50:12 -06:00
padding: 15px 20px;
margin-bottom: $space-xs;
border-left: 3px solid $alert-error-bg;
background: $layer2;
2016-02-15 08:27:41 -06:00
position: relative;
2018-10-23 10:25:16 -05:00
border-radius: $border-radius;
display: flex;
flex-direction: row;
2019-02-11 06:24:02 -06:00
align-items: center;
2016-02-15 08:27:41 -06:00
}
// Alternate styles
// -------------------------
.alert-success {
border-color: $alert-success-bg;
2016-02-15 08:27:41 -06:00
}
.alert-danger,
.alert-error {
border-color: $alert-error-bg;
2016-02-15 08:27:41 -06:00
}
2016-02-15 08:27:41 -06:00
.alert-info {
border-color: $alert-info-bg;
2016-02-15 08:27:41 -06:00
}
2016-02-15 08:27:41 -06:00
.alert-warning {
border-color: $alert-warning-bg;
2016-02-15 08:27:41 -06:00
}
.alert-close {
padding: 0 0 0 $space-md;
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: 21px;
2017-12-19 09:22:41 -06:00
color: rgba(255, 255, 255, 0.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
}
.alert-icon {
padding: 0 $space-md 0 0;
display: flex;
align-items: center;
justify-content: center;
width: 35px;
.fa {
font-size: 21px;
}
}
.alert-body {
overflow-wrap: break-word;
word-break: break-word;
flex-grow: 1;
}
Ldap: Add LDAP debug page (#18759) * Add items for navmodel and basic page * add reducer and actions * adding user mapping table component * adding components for ldap tables * add alert box on error * close error alert box * LDAP status page: connect APIs WIP * LDAP debug: fetch connection status from API * LDAP debug: fetch user info from API * LDAP debug: improve connection error view * LDAP debug: connection error tweaks * LDAP debug: fix role mapping view * LDAP debug: role mapping view tweaks * LDAP debug: add bulk-sync button stub * LDAP debug: minor refactor * LDAP debug: show user teams * LDAP debug: user info refactor * LDAP debug: initial user page * LDAP debug: minor refactor, remove unused angular wrapper * LDAP debug: add sessions to user page * LDAP debug: tweak user page * LDAP debug: tweak view for disabled user * LDAP debug: get sync info from API * LDAP debug: user sync info * LDAP debug: sync user button * LDAP debug: clear error on page load * LDAP debug: add user last sync info * LDAP debug: actions refactor * LDAP debug: roles and teams style tweaks * Pass showAttributeMapping to LdapUserTeams * LDAP debug: hide bulk sync button * LDAP debug: refactor sessions component * LDAP debug: fix loading user sessions * LDAP debug: hide sync user button * LDAP debug: fix fetching unavailable /ldap-sync-status endpoint * LDAP debug: revert accidentally added fix * LDAP debug: show error when LDAP is not enabled * LDAP debug: refactor, move ldap components into ldap/ folder * LDAP debug: styles refactoring * LDAP debug: ldap reducer tests * LDAP debug: ldap user reducer tests * LDAP debug: fix connection error placement * Text update * LdapUser: Minor UI changes moving things around * AlertBox: Removed icon-on-top as everywhere else it is centered, want to have it be consistent
2019-09-16 10:56:01 -05: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;
}
}