Skip to content

Commit

Permalink
fix: add specificity to headings (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd authored May 11, 2023
1 parent f217cbb commit de53d0b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions styles/yfm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@import './variables.scss';

.yfm_blog {
$root: &;

@include text-size(body-3);
color: var(--yc-color-text-primary);

Expand All @@ -26,16 +28,18 @@
@include text-size(header-1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: $indentXS;
margin-top: $indentM;
padding-top: 0;
font-weight: var(--yc-text-header-font-weight);
@include add-specificity(&) {
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: $indentXS;
margin-top: $indentM;
padding-top: 0;
font-weight: var(--yc-text-header-font-weight);
}
}

blockquote,
Expand Down

0 comments on commit de53d0b

Please sign in to comment.