Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb4c6a7d

Browse files
committed
Fix header spacing for non-markdown pages
1 parente25d532 commitb4c6a7d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎app/src/styles/markdown.scss‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
$codeBackground:#0f0f0f;
44

55
section {
6-
>h1:first-child,h1,h2,h3,h4,h5,h6 {
7-
padding-top:calc(#{$headerSize}+#{$distance});
8-
margin-top:calc(#{-$headerSize}+#{-$distance});
9-
}
106
h1,h2 {
117
padding-bottom:0.25em;
128
margin-bottom:0.5em;
@@ -41,17 +37,21 @@ section {
4137
}
4238

4339
&.readme {
40+
>h1:first-child,h1,h2,h3,h4,h5,h6 {
41+
padding-top:calc(#{$headerSize}+#{$distance});
42+
margin-top:calc(#{-$headerSize}+#{-$distance});
43+
}
4444
h1 {
4545
font-size:2rem;
4646
}
4747

4848
ul {
4949
padding:0px;
50-
50+
5151
li {
5252
padding-left:$distance*0.5;
5353
list-style:none;
54-
54+
5555
ulli {
5656
padding-left:$distance*1.5;
5757
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp