Add a mixin for markdown

This commit is contained in:
Greg Burri 2025-04-15 12:00:24 +02:00
parent f2e0aa3b43
commit eda1ef2582
2 changed files with 33 additions and 0 deletions

View file

@ -6,6 +6,7 @@ $dark-theme: false !default;
@use 'calendar';
@use 'toast';
@use 'modal-dialog';
@use 'mixins';
a {
color: consts.$link-color;
@ -180,6 +181,12 @@ body {
}
}
#recipe-view {
.recipe-description {
@include mixins.markdown;
}
}
form {
display: grid;
grid-template-columns: auto 1fr;

26
backend/scss/mixins.scss Normal file
View file

@ -0,0 +1,26 @@
@mixin markdown {
h1 {
font-size: 140%;
text-align: left;
}
h2 {
font-size: 130%;
}
h3 {
font-size: 120%;
}
h4 {
font-size: 110%;
}
h5 {
font-size: 100%;
}
h6 {
font-size: 100%;
}
}