Skip to content
Snippets Groups Projects
Commit 2dbc1410 authored by alexisben's avatar alexisben
Browse files

add rich-text mixin

parent 69ae7ea8
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,6 @@ body
// *
// transition-duration: 0s !important
main
&:not(.page-with-blocks)
padding-bottom: $spacing-section-y
......
......@@ -159,11 +159,17 @@ p
small, .small
@include small
@mixin rich-text
h1, h2, h3, h4, h5, h6, p
margin-top: 2em
&:first-child, meta + &
margin-top: 0
.rich-text
@include rich-text
[itemprop="articleBody"]
h1, h2, h3, h4, h5, h6
margin-block-start: 2em
&:first-child, meta + &
margin-block-start: 0
@include rich-text
@mixin blockquote
margin: 0
......
......@@ -35,7 +35,7 @@
</div>
{{ end }}
{{ if (partial "GetTextFromHTML" .Content) }}
<div>
<div class="rich-text">
{{ partial "PrepareHTML" .Content }}
</div>
{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment