Skip to content

Commit

Permalink
feat: decrease font size h1; set font sizes if headings have nested a…
Browse files Browse the repository at this point in the history
… tags
  • Loading branch information
alexanderdavide committed Feb 20, 2022
1 parent e92403b commit d2b4566
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
22 changes: 17 additions & 5 deletions assets/scss/partials/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,40 +86,52 @@
}

h1 {
$font-size-h1: 3.6rem;

font-size: $font-size-h1;
text-transform: uppercase;
font-size: 3em;
letter-spacing: 1px;
line-height: 1;

a {
font-size: $font-size-h1;

@include themed() {
color: t('primary');
}
}
}

h2 {
$font-size-h2: 2.4rem;

font-size: $font-size-h2;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 2.6rem;
line-height: 1;
font-weight: 600;

a {
font-size: $font-size-h2;

@include themed() {
color: t('primary');
}
}
}

h3 {
$font-size-h3: 2rem;

font-size: $font-size-h3;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 1;
font-weight: 600;

a {
font-size: 2rem;
font-size: $font-size-h3;

@include themed() {
color: t('primary');
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"scss/main.rtl.min.e675023bef7df685a2ce45df8fb4603074147c8b513b0c63946db55b9227b7c2.css","MediaType":"text/css","Data":{"Integrity":"sha256-5nUCO+999oWizkXfj7RgMHQUfItROwxjlG21W5Int8I="}}
{"Target":"scss/main.rtl.min.79afeb76fb7090c6dd3ff92152f75d08176cddfa5665720c8ce158111570612c.css","MediaType":"text/css","Data":{"Integrity":"sha256-ea/rdvtwkMbdP/khUvddCBds3fpWZXIMjOFYERVwYSw="}}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"scss/main.min.7e90d620f8cf313bf6db731752bf7143b8e2306bdf0839107894dbbd6e408274.css","MediaType":"text/css","Data":{"Integrity":"sha256-fpDWIPjPMTv223MXUr9xQ7jiMGvfCDkQeJTbvW5AgnQ="}}
{"Target":"scss/main.min.701fd2854a758b1d755397addb7c7ad9c94f550c78a1265670472d42bc80cb11.css","MediaType":"text/css","Data":{"Integrity":"sha256-cB/ShUp1ix11U5et23x62clPVQx4oSZWcEctQryAyxE="}}

0 comments on commit d2b4566

Please sign in to comment.