Skip to content

Commit 003ba70

Browse files
committed
fix: heading style should only exists in app container
1 parent 5e8a83d commit 003ba70

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/editor/heading.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,11 @@ body.line-active-left .cm-active.HyperMD-header {
146146
// underline
147147

148148
@for $i from 1 through 6 {
149-
.heading-h#{$i}-underline
149+
.heading-h#{$i}-underline .app-container {
150150
:is(.HyperMD-header-#{$i} .cm-header:not(.cm-formatting), h#{$i}) {
151-
text-decoration: underline var(--size-2-1);
152-
text-underline-offset: var(--size-4-2);
151+
text-decoration: underline var(--size-2-1);
152+
text-underline-offset: var(--size-4-2);
153+
}
153154
}
154155
}
155156

@@ -158,7 +159,7 @@ body.line-active-left .cm-active.HyperMD-header {
158159
$full-selectors: ();
159160

160161
@for $i from 1 through 6 {
161-
.heading-h#{$i}-full-line {
162+
.heading-h#{$i}-full-line .app-container {
162163
:is(.HyperMD-header-#{$i}, h#{$i}) {
163164
position: relative;
164165
&::after {
@@ -191,7 +192,7 @@ $full-selectors: ();
191192
// block
192193

193194
@for $i from 1 through 6 {
194-
.heading-h#{$i}-block {
195+
.heading-h#{$i}-block .app-container {
195196
--h#{$i}-color-bg: rgba(var(--h#{$i}-color-rgb), 0.15);
196197
&.heading-color-accent {
197198
--h#{$i}-color-bg: hsla(

0 commit comments

Comments
 (0)