Skip to content

Commit

Permalink
Fix: hr styles were not scoped to the remarkdown selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Florens Verschelde committed Oct 3, 2020
1 parent f82d4db commit 4a2a832
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/remarkdown-zero.attr.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
margin: 1.5em 0 1.5em;
}

hr {
[data-remarkdown] hr {
height: 1.5em;
line-height: 1.5em;
margin: 1.5em 0 1.5em;
Expand Down
2 changes: 1 addition & 1 deletion dist/remarkdown-zero.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
margin: 1.5em 0 1.5em;
}

hr {
.remarkdown hr {
height: 1.5em;
line-height: 1.5em;
margin: 1.5em 0 1.5em;
Expand Down
2 changes: 1 addition & 1 deletion dist/remarkdown.attr.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
margin: 1.5em 0 1.5em;
}

hr {
[data-remarkdown] hr {
height: 1.5em;
line-height: 1.5em;
margin: 1.5em 0 1.5em;
Expand Down
2 changes: 1 addition & 1 deletion dist/remarkdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
margin: 1.5em 0 1.5em;
}

hr {
.remarkdown hr {
height: 1.5em;
line-height: 1.5em;
margin: 1.5em 0 1.5em;
Expand Down
14 changes: 8 additions & 6 deletions src/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,14 @@
// Options: hr-center, hr-star, hr-hyphen

@mixin rmd-output-hr {
hr {
height: $__rmd-line;
line-height: $__rmd-line;
margin: __rmd-margin("hr", "top") 0 __rmd-margin("hr", "bottom");
border: none;
color: inherit;
@include __rmd_selector {
hr {
height: $__rmd-line;
line-height: $__rmd-line;
margin: __rmd-margin("hr", "top") 0 __rmd-margin("hr", "bottom");
border: none;
color: inherit;
}
}
@include __rmd_selector("hr-center") {
hr {
Expand Down

0 comments on commit 4a2a832

Please sign in to comment.