2016-10-30 01:02:14 +02:00
|
|
|
/* ==========================================================================
|
|
|
|
NOTICE TEXT BLOCKS
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default Kramdown usage (no indents!):
|
|
|
|
* <div class="notice" markdown="1">
|
|
|
|
* #### Headline for the Notice
|
|
|
|
* Text for the notice
|
|
|
|
* </div>
|
|
|
|
*/
|
|
|
|
|
|
|
|
@mixin notice($notice-color) {
|
2023-05-22 00:30:54 +02:00
|
|
|
margin: 2em 0 !important; /* override */
|
2016-10-30 01:02:14 +02:00
|
|
|
padding: 1em;
|
|
|
|
font-family: $global-font-family;
|
|
|
|
font-size: $type-size-6 !important;
|
2023-05-22 00:30:54 +02:00
|
|
|
text-indent: initial; /* override */
|
2019-07-06 03:46:01 +02:00
|
|
|
font-weight: bold;
|
|
|
|
background-color: mix($background-color, $notice-color, 45%);
|
2016-10-30 01:02:14 +02:00
|
|
|
border-radius: $border-radius;
|
|
|
|
box-shadow: 0 1px 1px rgba($notice-color, 0.25);
|
|
|
|
|
|
|
|
h4 {
|
2023-05-22 00:30:54 +02:00
|
|
|
margin-top: 0 !important; /* override */
|
2016-10-30 01:02:14 +02:00
|
|
|
margin-bottom: 0.75em;
|
|
|
|
}
|
|
|
|
|
|
|
|
@at-root .page__content #{&} h4 {
|
|
|
|
/* using at-root to override .page-content h4 font size*/
|
|
|
|
margin-bottom: 0;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
&:last-child {
|
2023-05-22 00:30:54 +02:00
|
|
|
margin-bottom: 0 !important; /* override */
|
2016-10-30 01:02:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 + p {
|
|
|
|
/* remove space above paragraphs that appear directly after notice headline*/
|
|
|
|
margin-top: 0;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2019-07-06 03:46:01 +02:00
|
|
|
color: mix(#fff, $notice-color, 30%);
|
|
|
|
text-decoration: none;
|
2016-10-30 01:02:14 +02:00
|
|
|
|
|
|
|
&:hover {
|
2019-07-06 03:46:01 +02:00
|
|
|
text-decoration: underline;
|
2016-10-30 01:02:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
&:last-child {
|
2023-05-22 00:30:54 +02:00
|
|
|
margin-bottom: 0; /* override */
|
2016-10-30 01:02:14 +02:00
|
|
|
}
|
|
|
|
}
|
2023-05-22 00:30:54 +02:00
|
|
|
|
|
|
|
img {
|
|
|
|
padding-top: 15px;
|
|
|
|
}
|
2016-10-30 01:02:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Default notice */
|
|
|
|
|
|
|
|
.notice {
|
2017-10-28 21:58:34 +02:00
|
|
|
@include notice($light-gray);
|
2016-10-30 01:02:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Primary notice */
|
|
|
|
|
|
|
|
.notice--primary {
|
2017-10-28 21:58:34 +02:00
|
|
|
@include notice($primary-color);
|
2016-10-30 01:02:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Info notice */
|
|
|
|
|
|
|
|
.notice--info {
|
|
|
|
@include notice($info-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Warning notice */
|
|
|
|
|
|
|
|
.notice--warning {
|
|
|
|
@include notice($warning-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Success notice */
|
|
|
|
|
|
|
|
.notice--success {
|
|
|
|
@include notice($success-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Danger notice */
|
|
|
|
|
|
|
|
.notice--danger {
|
|
|
|
@include notice($danger-color);
|
2023-05-22 00:30:54 +02:00
|
|
|
}
|