Add custom css to print urls

This commit is contained in:
mertbakir 2022-04-10 14:27:16 +03:00 committed by mertbakir
parent bfc0eb909f
commit a494811518
2 changed files with 31 additions and 0 deletions

View file

@ -49,6 +49,7 @@ params:
useFontAwesome: true useFontAwesome: true
css: css:
- custom.scss - custom.scss
# - print_urls.scss
header: header:
avatar: avatar.jpg avatar: avatar.jpg
contact: true contact: true

View file

@ -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;
}
}
}
}