fixing the dropcap display
authordanix <danix@danix.xyz>
Sun, 19 Feb 2023 16:29:50 +0000 (17:29 +0100)
committerdanix <danix@danix.xyz>
Sun, 19 Feb 2023 16:29:50 +0000 (17:29 +0100)
assets/sass/base/_typography.scss
layouts/shortcodes/dropcap.html

index 94ca410..2009f4d 100644 (file)
        .highlight {\r
                max-width: 100%;\r
                overflow-x: auto;\r
-       }
\ No newline at end of file
+       }\r
+\r
+       .has-dropcap:first-letter {\r
+               font-family: _font(family-fixed);\r
+               font-weight: 900;\r
+               float: left;\r
+               font-size: 6rem;\r
+               line-height: 0.65;\r
+               margin: 0.1em 0.1em 0.2em 0;\r
+       }\r
+\r
index 25a2e1f..778d37a 100644 (file)
@@ -9,6 +9,6 @@
        * 
        */}}
 
-<p class="has-drop-cap" {{ if .Get "class"}}class="{{ with .Get "class"}}{{.}}{{ end }}"{{end}}>
+<p class="has-dropcap {{ with .Get "class"}}{{.}}{{ end }}">
        {{ .Inner }}
 </p>
\ No newline at end of file