Skip to content

Commit 9e3d61c

Browse files
committed
Improve Markdown header styling
1 parent dd71efd commit 9e3d61c

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

src/static/a/main-mobile.css

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,24 @@ main > article:last-of-type,
114114
main.slim > article:last-of-type {
115115
margin-bottom: 0px;
116116
}
117-
main > article > header {
117+
main > article > header,
118+
main > article h1 {
118119
background-color: rgba(64,64,64,0.6);
119120
display: block;
120121
font: 14pt source sans pro;
121122
padding: 10px;
122123
}
124+
main > article h1 {
125+
margin: 10px 0px;
126+
margin-left: -10px;
127+
margin-right: -10px;
128+
}
129+
main > article h1:first-child {
130+
margin-top: 0px;
131+
}
132+
main > article h1:last-child {
133+
margin-bottom: 0px;
134+
}
123135
main > article > header.no-select {
124136
cursor: default;
125137
-webkit-touch-callout: none;
@@ -364,3 +376,22 @@ hr {
364376
border: 0px;
365377
height: 5px;
366378
}
379+
h1,h2,h3,h4,h5,h6 {
380+
margin: 10px 0px 0px 0px;
381+
}
382+
h2 {
383+
border-bottom: 1px solid rgba(255,255,255,0.05);
384+
font-size: 13pt;
385+
}
386+
h3 {
387+
font-size: 12pt;
388+
}
389+
h4 {
390+
font-size: 11pt;
391+
}
392+
h5 {
393+
font-size: 10pt;
394+
}
395+
h6 {
396+
font-size: 9pt;
397+
}

src/static/a/main.css

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,24 @@ main.slim > article {
111111
margin: 0px;
112112
overflow: hidden;
113113
}
114-
main > article > header {
114+
main > article > header,
115+
main > article h1 {
115116
background-color: rgba(64,64,64,0.6);
116117
display: block;
117118
font: 14pt source sans pro;
118119
padding: 10px;
119120
}
121+
main > article h1 {
122+
margin: 10px 0px;
123+
margin-left: -10px;
124+
margin-right: -10px;
125+
}
126+
main > article h1:first-child {
127+
margin-top: 0px;
128+
}
129+
main > article h1:last-child {
130+
margin-bottom: 0px;
131+
}
120132
main > article > header.no-select {
121133
cursor: default;
122134
-webkit-touch-callout: none;
@@ -379,3 +391,22 @@ hr {
379391
border: 0px;
380392
height: 5px;
381393
}
394+
h1,h2,h3,h4,h5,h6 {
395+
margin: 10px 0px 0px 0px;
396+
}
397+
h2 {
398+
border-bottom: 1px solid rgba(255,255,255,0.05);
399+
font-size: 13pt;
400+
}
401+
h3 {
402+
font-size: 12pt;
403+
}
404+
h4 {
405+
font-size: 11pt;
406+
}
407+
h5 {
408+
font-size: 10pt;
409+
}
410+
h6 {
411+
font-size: 9pt;
412+
}

0 commit comments

Comments
 (0)