2022-06-28 22:14:23 +01:00
|
|
|
@mixin center-block($width: 85%, $mobile-width: 90%) {
|
|
|
|
width: $width;
|
2022-06-28 21:59:38 +01:00
|
|
|
margin: 0 auto;
|
2022-06-28 22:14:23 +01:00
|
|
|
max-width: $width;
|
|
|
|
min-width: $width;
|
|
|
|
|
|
|
|
@include touch {
|
|
|
|
max-width: $mobile-width;
|
|
|
|
min-width: $mobile-width;
|
|
|
|
width: $mobile-width;
|
|
|
|
}
|
2022-06-28 21:59:38 +01:00
|
|
|
}
|
|
|
|
|
2022-08-27 22:47:56 +01:00
|
|
|
div.block-image,
|
|
|
|
div.block-mermaid {
|
2022-06-27 20:40:55 +01:00
|
|
|
figcaption {
|
|
|
|
font-size: 85%;
|
2022-06-28 21:59:38 +01:00
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
@include center-block;
|
2022-06-27 20:40:55 +01:00
|
|
|
}
|
|
|
|
}
|
2022-06-27 20:48:53 +01:00
|
|
|
|
2022-06-28 21:59:38 +01:00
|
|
|
.content > div[class^="block-"] {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: $content-block-margin-bottom;
|
|
|
|
}
|
2022-06-27 20:48:53 +01:00
|
|
|
}
|
2022-06-28 21:43:44 +01:00
|
|
|
|
|
|
|
div.block-embed {
|
|
|
|
lite-youtube {
|
2022-06-28 22:14:23 +01:00
|
|
|
@include center-block(50%);
|
2022-06-28 21:43:44 +01:00
|
|
|
}
|
|
|
|
}
|
2022-07-05 09:03:45 +01:00
|
|
|
|
|
|
|
div.block-tangent {
|
|
|
|
.inner {
|
|
|
|
margin: math.div($content-block-margin-bottom, 4) 0;
|
|
|
|
padding-left: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
2022-07-15 09:56:22 +01:00
|
|
|
|
|
|
|
div.block-mermaid {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: unset;
|
2022-08-20 17:45:12 +01:00
|
|
|
|
|
|
|
@include dark-mode {
|
|
|
|
filter: invert(100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-30 22:48:45 +01:00
|
|
|
div.block-code {
|
2022-08-31 22:29:14 +01:00
|
|
|
.code-header {
|
2022-08-30 22:48:45 +01:00
|
|
|
font-family: $family-code;
|
|
|
|
background-color: $grey-lighter;
|
2022-08-31 09:05:32 +01:00
|
|
|
font-size: 80%;
|
2022-08-30 22:48:45 +01:00
|
|
|
padding: 0.25rem 1rem;
|
2022-08-31 09:05:32 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2022-08-30 22:48:45 +01:00
|
|
|
|
|
|
|
@include dark-mode {
|
|
|
|
background-color: $grey-darker;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-31 22:29:14 +01:00
|
|
|
&:not(:hover) .code-header:not(.always-show) {
|
2022-08-31 09:05:32 +01:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2022-08-30 22:48:45 +01:00
|
|
|
.highlight {
|
|
|
|
pre,
|
|
|
|
span,
|
|
|
|
& {
|
|
|
|
@include dark-mode;
|
|
|
|
}
|
2022-07-15 09:56:22 +01:00
|
|
|
}
|
|
|
|
}
|
2022-08-27 22:47:03 +01:00
|
|
|
|
|
|
|
div.block-table {
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
@include dark-mode {
|
|
|
|
color: $dark-mode-text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|