diff options
author | mertbakir <2335694-mertbakir@users.noreply.gitlab.com> | 2022-04-10 14:27:16 +0300 |
---|---|---|
committer | mertbakir <mertbakxr@gmail.com> | 2022-04-10 14:27:16 +0300 |
commit | a4948115181eb177096ef97f368ead78278dd55b (patch) | |
tree | fcb6feca05cd63cfc3523559d380dd559c0df1aa | |
parent | bfc0eb909f03707ededc5fb6517d304809358014 (diff) |
Add custom css to print urls
-rw-r--r-- | config.yaml | 1 | ||||
-rw-r--r-- | exampleSite/assets/css/print_urls.scss | 30 |
2 files changed, 31 insertions, 0 deletions
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 |