2016-03-10 19:06:59 +01: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) {
|
2016-08-08 22:01:37 +02:00
|
|
|
margin: 2em 0 !important; /* override*/
|
2016-03-10 19:06:59 +01:00
|
|
|
padding: 1em;
|
2021-04-13 22:00:24 +02:00
|
|
|
color: $text-color;
|
2016-04-05 21:18:05 +02:00
|
|
|
font-family: $global-font-family;
|
2016-03-31 03:52:58 +02:00
|
|
|
font-size: $type-size-6 !important;
|
2016-08-08 22:01:37 +02:00
|
|
|
text-indent: initial; /* override*/
|
2021-04-13 22:00:24 +02:00
|
|
|
background-color: mix($background-color, $notice-color, $notice-background-mix);
|
2016-03-20 02:50:18 +01:00
|
|
|
border-radius: $border-radius;
|
2016-04-06 04:05:26 +02:00
|
|
|
box-shadow: 0 1px 1px rgba($notice-color, 0.25);
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
h4 {
|
2016-08-08 22:01:37 +02:00
|
|
|
margin-top: 0 !important; /* override*/
|
2016-03-10 19:06:59 +01:00
|
|
|
margin-bottom: 0.75em;
|
2020-07-23 18:09:36 +02:00
|
|
|
line-height: inherit;
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
@at-root .page__content #{&} h4 {
|
2016-08-08 22:01:37 +02:00
|
|
|
/* using at-root to override .page-content h4 font size*/
|
2016-03-10 19:06:59 +01:00
|
|
|
margin-bottom: 0;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: 1em;
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
p {
|
2016-03-31 03:52:58 +02:00
|
|
|
&:last-child {
|
2016-08-08 22:01:37 +02:00
|
|
|
margin-bottom: 0 !important; /* override*/
|
2016-03-31 03:52:58 +02:00
|
|
|
}
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
h4 + p {
|
2016-08-08 22:01:37 +02:00
|
|
|
/* remove space above paragraphs that appear directly after notice headline*/
|
2016-03-10 19:06:59 +01:00
|
|
|
margin-top: 0;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-04-06 03:30:25 +02:00
|
|
|
a {
|
2021-04-13 22:00:24 +02:00
|
|
|
color: mix(#000, $notice-color, 10%);
|
2016-04-06 03:30:25 +02:00
|
|
|
|
|
|
|
&:hover {
|
2021-04-13 22:00:24 +02:00
|
|
|
color: mix(#000, $notice-color, 50%);
|
2016-04-06 03:30:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-27 15:59:38 +02:00
|
|
|
@at-root #{selector-unify(&, "blockquote")} {
|
|
|
|
border-left-color: mix(#000, $notice-color, 10%);
|
|
|
|
}
|
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
code {
|
2021-04-13 22:00:24 +02:00
|
|
|
background-color: mix($background-color, $notice-color, $code-notice-background-mix)
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-31 03:52:58 +02:00
|
|
|
|
2019-11-22 15:26:38 +01:00
|
|
|
pre code {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
|
2016-03-31 03:52:58 +02:00
|
|
|
ul {
|
|
|
|
&:last-child {
|
2016-08-08 22:01:37 +02:00
|
|
|
margin-bottom: 0; /* override*/
|
2016-03-31 03:52:58 +02:00
|
|
|
}
|
|
|
|
}
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Default notice */
|
|
|
|
|
|
|
|
.notice {
|
2016-04-05 21:18:05 +02:00
|
|
|
@include notice($light-gray);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Primary notice */
|
|
|
|
|
|
|
|
.notice--primary {
|
2016-03-10 19:06:59 +01:00
|
|
|
@include notice($primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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);
|
2019-11-22 15:26:38 +01:00
|
|
|
}
|