From a4948115181eb177096ef97f368ead78278dd55b Mon Sep 17 00:00:00 2001 From: mertbakir <2335694-mertbakir@users.noreply.gitlab.com> Date: Sun, 10 Apr 2022 14:27:16 +0300 Subject: Add custom css to print urls --- config.yaml | 1 + exampleSite/assets/css/print_urls.scss | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 exampleSite/assets/css/print_urls.scss diff --git a/config.yaml b/config.yaml index 01f832b..77758c2 100644 --- a/config.yaml +++ b/config.yaml @@ -49,6 +49,7 @@ params: useFontAwesome: true css: - custom.scss +# - print_urls.scss header: avatar: avatar.jpg contact: true diff --git a/exampleSite/assets/css/print_urls.scss b/exampleSite/assets/css/print_urls.scss new file mode 100644 index 0000000..159a03b --- /dev/null +++ b/exampleSite/assets/css/print_urls.scss @@ -0,0 +1,30 @@ + +@media print { + + a:not(.non-existing)::after { + content: " (" attr(href) ")"; + margin: 0; + font-weight: 400; + font-size: 0.75rem; + color: scale-color(#202020, $lightness: 30%); + } + + a { + + .item-title & { + &::after { + content: attr(href); + display: block; + margin: 0; + } + } + + .section-publications & { + &::after { + content: attr(href); + display: block; + margin: 0 0.75rem; + } + } + } +} \ No newline at end of file -- cgit v1.2.3