File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 4848 code :first-child ::before {
4949 content : " Copy" ;
5050 font-size : 0 ;
51- background : no-repeat center url (' svg/copy-regular.svg' );
51+ background : no-repeat center url (" svg/copy-regular.svg" );
5252 width : 1.4rem ;
5353 height : 1.4rem ;
5454 position : absolute ;
@@ -86,31 +86,29 @@ figure {
8686 > * {
8787 max-width : 95% ;
8888 }
89-
9089 }
9190
9291 // border: 2px solid var(--gray-100);
9392
94-
95-
96-
97-
9893 figcaption ::before {
9994 content : " Figure " counter (figureIndex ) " : " ;
10095 }
10196 figcaption {
97+ text-align : center ;
10298 max-width : 90% ;
10399 margin-top : 5px ;
104100 margin-bottom : 10px ;
105-
106101 font-style : italic ;
107102
108- p :first-child {
103+ p :first-child {
109104 display : inline ;
110105 }
111106 }
112- }
113107
108+ figcaption .code {
109+ margin-top : 0px ; // Remove margin when a figure is code block
110+ }
111+ }
114112
115113p {
116114 // TODO: not sure if this is without side effects
Original file line number Diff line number Diff line change 77 {{ end}}
88
99 {{ if (.Get 0) }}
10- < figcaption > {{ (.Get 0) | .Page.RenderString (dict "display" "inline") }}</ figcaption >
10+ < figcaption class =" code " > {{ (.Get 0) | .Page.RenderString (dict "display" "inline") }}</ figcaption >
1111 {{ end }}
1212 </ div >
1313</ figure >
Original file line number Diff line number Diff line change 1818 < figcaption > {{ .Inner | .Page.RenderString (dict "display" "inline") }}</ figcaption >
1919 {{ end }}
2020 </ div >
21- </ figure >
21+ </ figure >
You can’t perform that action at this time.
0 commit comments