File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,18 @@ function removeOrigToc() {
25
25
}
26
26
27
27
function insertLinks ( ) {
28
- $ ( 'h2' ) . each ( function ( ) {
29
- aId = $ ( this ) . attr ( 'id' )
30
- text = $ ( this ) . text ( )
31
- $ ( this ) . html ( '<a href="#' + aId + '" name="' + aId + '">#</a>' + text )
32
- } )
28
+ $ ( "h2" ) . each ( function ( ) {
29
+ aId = $ ( this ) . attr ( "id" ) ;
30
+ text = $ ( this ) . text ( ) ;
31
+ $ ( this ) . html ( '<a href="#' + aId + '" name="' + aId + '">#</a>' + text ) ;
32
+ } ) ;
33
+ }
34
+ function addImgParentClass ( ) {
35
+ $ ( "img" ) . each ( function ( ) {
36
+ $ ( this )
37
+ . parent ( )
38
+ . addClass ( "img_parent" ) ;
39
+ } ) ;
33
40
}
34
41
35
42
function addToc ( ) {
Original file line number Diff line number Diff line change @@ -214,6 +214,12 @@ blockquote q:before,
214
214
blockquote q : after {
215
215
content : "" ;
216
216
}
217
+ h3 , h4 , p , ul {
218
+ padding-left : 2rem ;
219
+ }
220
+ .img_parent {
221
+ padding : 0 ;
222
+ }
217
223
218
224
@media only screen
219
225
and (max-device-width : 1024px ){
@@ -224,7 +230,7 @@ and (max-device-width : 1024px){
224
230
h1 {
225
231
font-size : 3rem ;
226
232
}
227
- p , h1 , img {
233
+ . img_parent , h1 , img {
228
234
max-width : calc (100vw - 2em );
229
235
min-width : calc (100vw - 2em );
230
236
}
You can’t perform that action at this time.
0 commit comments