feat(api): Improve link styling in PDFs

This commit is contained in:
TheOnlyWayUp
2024-12-10 15:19:28 +00:00
parent 016ad6209a
commit a7a26dc2b6
2 changed files with 24 additions and 4 deletions
+4 -4
View File
@@ -63,7 +63,7 @@
margin: 2rem 0; margin: 2rem 0;
} }
.copyright-separator { #copyright-separator {
width: 100%; width: 100%;
max-width: 400px; max-width: 400px;
height: 1px; height: 1px;
@@ -121,7 +121,7 @@
/* Simple horizontal line instead of decorative separator for older browsers */ /* Simple horizontal line instead of decorative separator for older browsers */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.copyright-separator { #copyright-separator {
border-top: 1px solid #718096; border-top: 1px solid #718096;
background: none; background: none;
} }
@@ -137,11 +137,11 @@
<h1 id="copyright-notice">Copyright Notice</h1> <h1 id="copyright-notice">Copyright Notice</h1>
<h2 id="copyright-title">{book_title}</h2> <h2 id="copyright-title">{book_title}</h2>
<div class="copyright-separator"></div> <div id="copyright-separator"></div>
<p id="copyright-ex-libris">Ex Libris Sapientiae</p> <p id="copyright-ex-libris">Ex Libris Sapientiae</p>
<div class="copyright-separator"></div> <div id="copyright-separator"></div>
<div id="copyright-info"> <div id="copyright-info">
{copyright_image} {copyright_image}
+20
View File
@@ -68,3 +68,23 @@ p {
line-height: 1.6 !important; /* Improve readability */ line-height: 1.6 !important; /* Improve readability */
margin: 10px 0 !important; /* Space between paragraphs */ margin: 10px 0 !important; /* Space between paragraphs */
} }
a {
font-size: 0.9rem;
color: #3182ce;
text-decoration: none;
display: inline-block;
margin-top: 1rem;
/* Cross-browser transition */
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
}
a:hover {
text-decoration: underline;
color: #2c5282;
}