File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 flex-shrink : 1 ;
1111 flex-direction : column;
1212 margin : 0 30px ;
13+ padding : 1rem ;
1314
1415 /* Handle code cells overflowing */
1516 overflow : auto;
Original file line number Diff line number Diff line change 1414 word-wrap : break-word ;
1515}
1616
17+ .sd-card-hover :hover {
18+ // border-color:var(--sd-color-card-border-hover);
19+ border-color : hsla (231 , 99% , 66% , 1 ) !important ;
20+ transform : scale (1.01 );
21+ }
22+
1723.sd-mb-3 {
1824 margin-bottom : 1rem !important ;
1925}
3642.sd-font-weight-bold {
3743 font-weight : 700 !important ;
3844}
45+
46+ .sd-stretched-link ::after {
47+ position : absolute ;
48+ top : 0 ;
49+ right : 0 ;
50+ bottom : 0 ;
51+ left : 0 ;
52+ z-index : 1 ;
53+ content : " " ;
54+ }
Original file line number Diff line number Diff line change 2323'''
2424{{< /card > }}
2525
26+ {{< card > }}
27+ title = 'A clickable card'
28+ link = 'https://example.com'
29+ {{< /card > }}
2630
2731{{< card > }}
2832header = 'Header'
3640{{- $data := .Inner | transform.Unmarshal -}}
3741
3842< div class ="bd-content ">
43+ {{ with $data.link }}
44+ < div class ="sd-card sd-shadow-sm sd-mb-3 sd-card-hover ">
45+ {{ else }}
3946< div class ="sd-card sd-shadow-sm sd-mb-3 ">
40- {{ with $data.header }}
41- < div class ="sd-card-header ">
42- {{ . | markdownify }}
47+ {{ end }}
48+ {{ with $data.header }}
49+ < div class ="sd-card-header ">
50+ {{ . | markdownify }}
51+ </ div >
52+ {{ end }}
53+ < div class ="sd-card-body ">
54+ {{ with $data.title }}
55+ < div class ="sd-card-title sd-font-weight-bold ">
56+ {{ . }}
4357 </ div >
4458 {{ end }}
45- < div class ="sd-card-body ">
46- {{ with $data.title }}
47- < div class ="sd-card-title sd-font-weight-bold ">
48- {{ . }}
59+ {{ with (trim $data.body "\n") }}
60+ {{ . | markdownify }}
61+ {{ end }}
4962 </ div >
63+ {{ with $data.link }}
64+ < a class ="sd-stretched-link " href ="{{.}} "> </ a >
5065 {{ end }}
51- {{ with (trim $data.body "\n") }}
66+ {{ with $data.footer }}
67+ < div class ="sd-card-footer ">
5268 {{ . | markdownify }}
69+ </ div >
5370 {{ end }}
5471</ div >
55- {{ with $data.footer }}
56- < div class ="sd-card-footer ">
57- {{ . | markdownify }}
58- </ div >
59- {{ end }}
60- </ div >
6172</ div >
You can’t perform that action at this time.
0 commit comments