2021-12-25 10:44:24 -05:00
/ *
2021-01-06 15:37:59 -05:00
* SPDX-FileCopyrightText : 2021 The HedgeDoc developers ( see AUTHORS file )
2020-11-22 15:50:07 -05:00
*
* SPDX-License-Identifier : AGPL-3 . 0-only
* /
2020-06-19 18:44:18 -04:00
. markdown-body {
2020-06-29 11:51:40 -04:00
position : relative ;
2020-08-08 08:37:18 -04:00
word-break : break-word ;
2021-12-30 15:26:56 -05:00
& {
@import " ./variables.module.scss " ;
font-family : $font-family-base ;
}
2020-06-20 14:17:33 -04:00
2021-06-12 10:20:11 -04:00
. svg-container {
overflow-x : auto ;
width : 100 % ;
display : inline-block ;
text-align : center ;
svg {
max-width : 100 % ;
}
}
2021-12-25 10:44:24 -05:00
. alert {
& > p , & > ul {
margin-bottom : 0 ;
}
2020-06-20 14:17:33 -04:00
}
2020-06-21 08:04:37 -04:00
2020-06-26 05:12:17 -04:00
// This is necessary since we need to set this for all DOM Element that could be children of .markdown-body and since we support all of HTML that would literally be everything
2020-06-25 16:38:10 -04:00
& > * {
width : 100 % ;
max-width : 900 px ;
}
2020-11-15 15:23:24 -05:00
h1 , h2 , h3 , h4 , h5 , h6 {
2021-12-25 10:44:24 -05:00
. heading-anchor {
2023-03-20 05:02:54 -04:00
user-select : none ;
2020-11-15 15:23:24 -05:00
font-size : 0 .75 em ;
margin-top : 0 .25 em ;
2021-01-23 16:01:53 -05:00
opacity : 0 .3 ;
transition : opacity 0 .1 s ;
2020-11-15 15:23:24 -05:00
& : hover {
opacity : 1 ;
}
}
2020-06-21 08:04:37 -04:00
}
2020-06-22 17:37:20 -04:00
2024-11-20 12:57:10 -05:00
hr {
color : #bbbcbf ;
@media print {
color : transparent !important ;
border-bottom : 2 px solid #bbbcbf ;
}
}
2021-11-15 11:04:49 -05:00
blockquote . blockquote-extra {
2020-06-22 17:37:20 -04:00
font-size : 0 .85 em ;
margin-inline-start : 0 .5 em ;
& : first-of-type {
& : : before {
content : ' \2014 \00A0 '
}
}
}
2020-06-29 11:51:40 -04:00
2020-08-15 11:27:46 -04:00
pre {
overflow : visible ;
2020-08-16 10:02:26 -04:00
code {
white-space : pre-wrap ;
word-break : break-word ;
}
2020-08-15 11:27:46 -04:00
}
2020-06-19 18:44:18 -04:00
}