From b96eccb771bbceafdcc78b08a239db58acdaa1a1 Mon Sep 17 00:00:00 2001 From: danix Date: Sun, 19 Feb 2023 17:29:50 +0100 Subject: [PATCH] fixing the dropcap display --- assets/sass/base/_typography.scss | 12 +++++++++++- layouts/shortcodes/dropcap.html | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/assets/sass/base/_typography.scss b/assets/sass/base/_typography.scss index 94ca410..2009f4d 100644 --- a/assets/sass/base/_typography.scss +++ b/assets/sass/base/_typography.scss @@ -181,4 +181,14 @@ .highlight { max-width: 100%; overflow-x: auto; - } \ No newline at end of file + } + + .has-dropcap:first-letter { + font-family: _font(family-fixed); + font-weight: 900; + float: left; + font-size: 6rem; + line-height: 0.65; + margin: 0.1em 0.1em 0.2em 0; + } + diff --git a/layouts/shortcodes/dropcap.html b/layouts/shortcodes/dropcap.html index 25a2e1f..778d37a 100644 --- a/layouts/shortcodes/dropcap.html +++ b/layouts/shortcodes/dropcap.html @@ -9,6 +9,6 @@ * */}} -

+

{{ .Inner }}

\ No newline at end of file -- 2.20.1