AdminLTE/build/scss/_callout.scss

58 lines
991 B
SCSS
Raw Normal View History

//
// Component: Callout
//
2015-10-31 22:00:16 +01:00
// Base styles (regardless of theme)
.callout {
2018-03-17 18:07:55 +01:00
@if $enable-rounded {
@include border-radius($border-radius);
}
@if $enable-shadows {
box-shadow: map-get($elevations, 1);
2018-03-17 18:07:55 +01:00
} @else {
border: 1px solid $gray-300;
}
background-color: $white;
border-left: 5px solid $gray-200;
margin-bottom: map-get($spacers, 3);
2019-08-30 14:03:53 +02:00
padding: 1rem;
2018-03-17 18:07:55 +01:00
2015-10-31 22:00:16 +01:00
a {
2019-08-31 09:46:04 +02:00
color: $gray-700;
2015-10-31 22:00:16 +01:00
text-decoration: underline;
2015-10-31 22:00:16 +01:00
&:hover {
color: $gray-200;
2015-10-31 22:00:16 +01:00
}
}
2018-03-17 18:07:55 +01:00
2015-10-31 22:00:16 +01:00
p:last-child {
margin-bottom: 0;
}
// Themes for different contexts
&.callout-danger {
border-left-color: darken(theme-color("danger"), 10%);
2015-10-31 22:00:16 +01:00
}
2015-10-31 22:00:16 +01:00
&.callout-warning {
border-left-color: darken(theme-color("warning"), 10%);
2015-10-31 22:00:16 +01:00
}
2015-10-31 22:00:16 +01:00
&.callout-info {
border-left-color: darken(theme-color("info"), 10%);
2015-10-31 22:00:16 +01:00
}
2015-10-31 22:00:16 +01:00
&.callout-success {
border-left-color: darken(theme-color("success"), 10%);
2015-10-31 22:00:16 +01:00
}
}
2020-09-23 16:08:15 +02:00
.dark-mode {
.callout {
background-color: lighten($dark, 5%);
}
}