5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 07:36:22 +00:00

fix: ajustes para el contenido #8395

This commit is contained in:
f 2022-11-08 20:19:53 -03:00
parent b42fa9f736
commit fd855a1e93
2 changed files with 30 additions and 1 deletions

View file

@ -515,3 +515,32 @@ $bezier: cubic-bezier(0.75, 0, 0.25, 1);
} }
} }
} }
.content {
p { min-height: $font-size-base * $line-height-base; }
h1 { min-height: $h1-font-size * $headings-line-height; }
h2 { min-height: $h2-font-size * $headings-line-height; }
h3 { min-height: $h3-font-size * $headings-line-height; }
h4 { min-height: $h4-font-size * $headings-line-height; }
h5 { min-height: $h5-font-size * $headings-line-height; }
h6 { min-height: $h6-font-size * $headings-line-height; }
iframe { border: 0; }
audio { width: 100%; }
img,
video,
iframe {
@extend .img-fluid;
height: auto;
}
& > * {
margin-bottom: 1rem;
&:last-child {
margin-bottom: 0;
}
}
}

View file

@ -37,5 +37,5 @@
- next if metadata.front_matter? - next if metadata.front_matter?
- cache [metadata, I18n.locale] do - cache [metadata, I18n.locale] do
%section.editor{ id: attr, dir: dir } %section.content.pb-3{ id: attr, dir: dir }
= @post.public_send(attr).value.html_safe = @post.public_send(attr).value.html_safe