MyCrypto/common/sass/styles/overrides/alerts.scss

44 lines
942 B
SCSS
Raw Normal View History

// Extends Bootstrap's `.alert`
@import 'common/sass/variables';
@import 'common/sass/mixins';
@import '~bootstrap-sass/assets/stylesheets/bootstrap/alerts';
.alert {
margin-bottom: 1rem;
a {
color: #FFF;
font-weight: normal;
text-decoration: underline;
&:hover {
color: #FFF;
opacity: 0.8;
}
}
// Alerts have their own button style
.btn {
@include button-variant($text-color, #FFF, darken(#FFF, 5%));
text-decoration: none;
margin-right: $space-xs;
}
}
.alert,
.alert-info {
@include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
}
.alert-success {
@include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text);
}
.alert-warning {
@include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
}
.alert-danger {
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
}