File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function parseMd() {
13
13
aDiv . after ( nodes ) ;
14
14
removeOrigToc ( ) ;
15
15
insertLinks ( ) ;
16
- addImgParentClass ( ) ;
16
+ unindentBanner ( ) ;
17
17
d3 . selectAll ( "code" ) . each ( function ( ) {
18
18
hljs . highlightBlock ( this ) ;
19
19
} ) ;
@@ -35,10 +35,12 @@ function insertLinks() {
35
35
$ ( this ) . html ( '<a href="#' + aId + '" name="' + aId + '">#</a>' + text ) ;
36
36
} ) ;
37
37
}
38
- function addImgParentClass ( ) {
39
- let monty_img = $ ( "img" ) . first ( ) ;
40
- monty_img . parent ( ) . addClass ( "img_parent" ) ;
41
- monty_img . before ( "<br>" ) ;
38
+
39
+ function unindentBanner ( ) {
40
+ let montyImg = $ ( "img" ) . first ( ) ;
41
+ montyImg . parent ( ) . addClass ( "banner" ) ;
42
+ let downloadPraragrapth = $ ( "p" ) . first ( ) ;
43
+ downloadPraragrapth . addClass ( "banner" ) ;
42
44
}
43
45
44
46
function addToc ( ) {
Original file line number Diff line number Diff line change 226
226
ul {
227
227
padding-left : 2rem ;
228
228
}
229
- .img_parent {
229
+ .banner {
230
230
padding : 0 ;
231
231
}
232
232
233
+ # toc {
234
+ margin-top : 0 ;
235
+ }
236
+
233
237
@media only screen and (max-device-width : 1024px ) {
234
238
h1 {
235
239
font-size : 3rem ;
236
240
}
237
- .img_parent ,
241
+ .banner ,
238
242
h1 ,
239
243
img {
240
244
max-width : calc (100vw - 2em );
You can’t perform that action at this time.
0 commit comments