2023-06-14 08:18:14 -04:00
|
|
|
/**
|
|
|
|
* Page Content
|
|
|
|
* Styles specific to blocks used within page content.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.page-content {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 840px;
|
|
|
|
margin: 0 auto;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
.align-left {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2023-12-16 07:22:40 -05:00
|
|
|
img.align-left, table.align-left, iframe.align-left, video.align-left {
|
2023-06-14 08:18:14 -04:00
|
|
|
float: left !important;
|
|
|
|
margin: $-xs $-m $-m 0;
|
|
|
|
}
|
|
|
|
.align-right {
|
|
|
|
text-align: right !important;
|
|
|
|
}
|
2023-12-16 07:22:40 -05:00
|
|
|
img.align-right, table.align-right, iframe.align-right, video.align-right {
|
2023-06-14 08:18:14 -04:00
|
|
|
float: right !important;
|
|
|
|
margin: $-xs 0 $-xs $-s;
|
|
|
|
}
|
|
|
|
.align-center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2023-12-16 07:22:40 -05:00
|
|
|
img.align-center, video.align-center, iframe.align-center {
|
2023-06-14 08:18:14 -04:00
|
|
|
display: block;
|
|
|
|
}
|
2023-12-16 07:22:40 -05:00
|
|
|
img.align-center, table.align-center, iframe.align-center, video.align-center {
|
2023-06-14 08:18:14 -04:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
2024-08-18 11:51:08 -04:00
|
|
|
.align-justify {
|
|
|
|
text-align: justify;
|
|
|
|
}
|
2023-06-14 08:18:14 -04:00
|
|
|
h1, h2, h3, h4, h5, h6, pre {
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
hr {
|
|
|
|
clear: both;
|
|
|
|
margin: $-m 0;
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
hyphens: auto;
|
|
|
|
table-layout: fixed;
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
// diffs
|
|
|
|
ins,
|
|
|
|
del {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
ins {
|
|
|
|
background: #dbffdb;
|
|
|
|
}
|
|
|
|
del {
|
|
|
|
background: #FFECEC;
|
|
|
|
}
|
|
|
|
|
|
|
|
details {
|
|
|
|
border: 1px solid;
|
|
|
|
@include lightDark(border-color, #DDD, #555);
|
|
|
|
margin-bottom: 1em;
|
|
|
|
padding: $-s;
|
|
|
|
}
|
|
|
|
details > summary {
|
|
|
|
margin-top: -$-s;
|
|
|
|
margin-left: -$-s;
|
|
|
|
margin-right: -$-s;
|
|
|
|
margin-bottom: -$-s;
|
|
|
|
font-weight: bold;
|
|
|
|
@include lightDark(background-color, #EEE, #333);
|
|
|
|
padding: $-xs $-s;
|
|
|
|
}
|
|
|
|
details[open] > summary {
|
|
|
|
margin-bottom: $-s;
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
@include lightDark(border-color, #DDD, #555);
|
|
|
|
}
|
|
|
|
details > summary + * {
|
|
|
|
margin-top: .2em;
|
|
|
|
}
|
|
|
|
details:after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
li > input[type="checkbox"] {
|
|
|
|
vertical-align: top;
|
|
|
|
margin-top: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
p:empty {
|
|
|
|
min-height: 1.6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.page-revision {
|
|
|
|
pre code {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-editor {
|
|
|
|
margin-bottom: 1.375em;
|
|
|
|
}
|
|
|
|
|
2024-08-27 08:32:16 -04:00
|
|
|
video, iframe {
|
2023-06-14 08:18:14 -04:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
2024-04-13 10:48:39 -04:00
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2023-06-14 08:18:14 -04:00
|
|
|
}
|
|
|
|
|
2024-05-01 12:20:45 -04:00
|
|
|
// This is seperated out so we can target it out-of-editor by default
|
|
|
|
// and use advanced (:not) syntax, not supported by things like PDF gen,
|
|
|
|
// to target in-editor scenarios to handle edge-case of TinyMCE using an
|
|
|
|
// image for data placeholders where we'd want height attributes to take effect.
|
|
|
|
body .page-content img,
|
|
|
|
.page-content img:not([data-mce-object]) {
|
|
|
|
max-width: 100%;
|
|
|
|
height:auto;
|
|
|
|
}
|
|
|
|
|
2023-06-14 08:18:14 -04:00
|
|
|
/**
|
|
|
|
* Callouts
|
2024-07-14 07:20:06 -04:00
|
|
|
* Some styles duplicated for supporting logical units (eg. inline-end) while
|
|
|
|
* providing fallbacks to non-logical rules, so RTL is natively supported where possible.
|
2023-06-14 08:18:14 -04:00
|
|
|
*/
|
|
|
|
.callout {
|
|
|
|
border-left: 3px solid #BBB;
|
2024-07-14 07:20:06 -04:00
|
|
|
border-inline-start: 3px solid #BBB;
|
|
|
|
border-inline-end: none;
|
2023-06-14 08:18:14 -04:00
|
|
|
background-color: #EEE;
|
2024-07-14 07:20:06 -04:00
|
|
|
padding: $-s;
|
|
|
|
padding-left: $-xl;
|
|
|
|
padding-inline-start: $-xl;
|
|
|
|
padding-inline-end: $-s;
|
2023-06-14 08:18:14 -04:00
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
overflow: auto;
|
|
|
|
&:before {
|
|
|
|
background-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiMwMTUzODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4gICAgPHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bTEgMTVoLTJ2LTZoMnY2em0wLThoLTJWN2gydjJ6Ii8+PC9zdmc+');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
content: '';
|
|
|
|
width: 1.2em;
|
|
|
|
height: 1.2em;
|
|
|
|
left: $-xs + 2px;
|
2024-07-14 07:20:06 -04:00
|
|
|
inset-inline-start: $-xs + 2px;
|
|
|
|
inset-inline-end: unset;
|
2023-06-14 08:18:14 -04:00
|
|
|
top: 50%;
|
|
|
|
margin-top: -9px;
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
line-height: 1;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
&.success {
|
2024-07-14 07:20:06 -04:00
|
|
|
@include lightDark(border-color, $positive, $positive-dark);
|
2024-09-27 08:57:39 -04:00
|
|
|
@include lightDark(background-color, #eafdeb, #122913);
|
|
|
|
@include lightDark(color, #063409, $positive-dark);
|
2023-06-14 08:18:14 -04:00
|
|
|
}
|
|
|
|
&.success:before {
|
|
|
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiMzNzZjMzkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4gICAgPHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bS0yIDE1bC01LTUgMS40MS0xLjQxTDEwIDE0LjE3bDcuNTktNy41OUwxOSA4bC05IDl6Ii8+PC9zdmc+");
|
|
|
|
}
|
|
|
|
&.danger {
|
2024-07-14 07:20:06 -04:00
|
|
|
@include lightDark(border-color, $negative, $negative-dark);
|
2024-09-27 08:57:39 -04:00
|
|
|
@include lightDark(background-color, #fcdbdb, #250505);
|
|
|
|
@include lightDark(color, #4d0706, $negative-dark);
|
2023-06-14 08:18:14 -04:00
|
|
|
}
|
|
|
|
&.danger:before {
|
|
|
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNiOTE4MTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik0xNS43MyAzSDguMjdMMyA4LjI3djcuNDZMOC4yNyAyMWg3LjQ2TDIxIDE1LjczVjguMjdMMTUuNzMgM3pNMTIgMTcuM2MtLjcyIDAtMS4zLS41OC0xLjMtMS4zIDAtLjcyLjU4LTEuMyAxLjMtMS4zLjcyIDAgMS4zLjU4IDEuMyAxLjMgMCAuNzItLjU4IDEuMy0xLjMgMS4zem0xLTQuM2gtMlY3aDJ2NnoiLz4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==");
|
|
|
|
}
|
|
|
|
&.info {
|
2024-07-14 07:20:06 -04:00
|
|
|
@include lightDark(border-color, $info, $info-dark);
|
2024-09-27 08:57:39 -04:00
|
|
|
@include lightDark(background-color, #d3efff, #001825);
|
|
|
|
@include lightDark(color, #01466c, $info-dark);
|
2023-06-14 08:18:14 -04:00
|
|
|
}
|
|
|
|
&.warning {
|
2024-07-14 07:20:06 -04:00
|
|
|
@include lightDark(border-color, $warning, $warning-dark);
|
2024-09-27 08:57:39 -04:00
|
|
|
@include lightDark(background-color, #fee3d3, #30170a);
|
|
|
|
@include lightDark(color, #6a2802, $warning-dark);
|
2023-06-14 08:18:14 -04:00
|
|
|
}
|
|
|
|
&.warning:before {
|
|
|
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNiNjUzMWMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4gICAgPHBhdGggZD0iTTEgMjFoMjJMMTIgMiAxIDIxem0xMi0zaC0ydi0yaDJ2MnptMC00aC0ydi00aDJ2NHoiLz48L3N2Zz4=");
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|