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