2021-12-25 15:44:24 +00:00
/ *
2021-01-06 20:37:59 +00:00
* SPDX-FileCopyrightText : 2021 The HedgeDoc developers ( see AUTHORS file )
2020-11-22 20:50:07 +00:00
*
* SPDX-License-Identifier : AGPL-3 . 0-only
* /
2020-06-19 22:44:18 +00:00
. markdown-body {
2020-06-29 15:51:40 +00:00
position : relative ;
2020-08-08 12:37:18 +00:00
word-break : break-word ;
2021-12-30 20:26:56 +00:00
& {
@import " ./variables.module.scss " ;
font-family : $font-family-base ;
}
2020-06-20 18:17:33 +00:00
2021-06-12 14:20:11 +00:00
. svg-container {
overflow-x : auto ;
width : 100 % ;
display : inline-block ;
text-align : center ;
svg {
max-width : 100 % ;
}
}
2021-12-25 15:44:24 +00:00
. alert {
& > p , & > ul {
margin-bottom : 0 ;
}
2020-06-20 18:17:33 +00:00
}
2020-06-21 12:04:37 +00:00
2020-06-26 09:12:17 +00: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 20:38:10 +00:00
& > * {
width : 100 % ;
max-width : 900 px ;
}
2020-11-15 20:23:24 +00:00
h1 , h2 , h3 , h4 , h5 , h6 {
2021-12-25 15:44:24 +00:00
. heading-anchor {
2020-11-15 20:23:24 +00:00
font-size : 0 .75 em ;
margin-top : 0 .25 em ;
2021-01-23 21:01:53 +00:00
opacity : 0 .3 ;
transition : opacity 0 .1 s ;
2020-11-15 20:23:24 +00:00
& : hover {
opacity : 1 ;
}
}
2020-06-21 12:04:37 +00:00
}
2020-06-22 21:37:20 +00:00
2021-11-15 16:04:49 +00:00
blockquote . blockquote-extra {
2020-06-22 21:37:20 +00:00
font-size : 0 .85 em ;
margin-inline-start : 0 .5 em ;
& : first-of-type {
& : : before {
content : ' \2014 \00A0 '
}
}
}
2020-06-29 15:51:40 +00:00
2020-08-15 15:27:46 +00:00
pre {
overflow : visible ;
2020-08-16 14:02:26 +00:00
code {
white-space : pre-wrap ;
word-break : break-word ;
}
2020-08-15 15:27:46 +00:00
}
2020-06-19 22:44:18 +00:00
}