Merge pull request #11 from awlck/master

Update CSS for printability
This commit is contained in:
Graham Nelson 2022-05-03 19:10:51 +01:00 committed by GitHub
commit 8eb4bf5821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 10 deletions

View file

@ -25,8 +25,15 @@ body {
-webkit-font-smoothing: antialiased;
}
a.function-link:link, a.function-link:visited {
text-decoration: black solid underline;
@media screen {
a.function-link:link, a.function-link:visited {
text-decoration: black solid underline;
}
}
@media print {
a.function-link {
text-decoration: none;
}
}
a.function-link:active, a.function-link:hover {
font-weight: 700

View file

@ -133,11 +133,19 @@ nav[role="navigation"] h1 {
margin-top: 0em
}
main {
max-width: 1024px;
min-width: 320px;
margin-left: 250px;
min-height: 100%;
height: auto !important;
height: 100%
@media screen {
main {
max-width: 1024px;
min-width: 320px;
margin-left: 250px;
min-height: 100%;
height: auto !important;
height: 100%
}
}
@media print {
nav[role="navigation"] {
display: none;
}
}

View file

@ -104,3 +104,9 @@ nav[role="progress"] ul li a:active {
nav[role="progress"] ul li a:hover {
color: #dd2c0d
}
@media print {
nav[role="progress"] {
display: none;
}
}

View file

@ -6,6 +6,12 @@ div.breadcrumbs {
padding-bottom: 4px;
}
@media print {
div.breadcrumbs {
position: static;
}
}
.crumbs {
border:1px solid #dedede;
height:3em;
@ -32,4 +38,4 @@ div.breadcrumbs {
.crumbs li a:hover, #crumbs li a:focus {
color:#dd2c0d;
}
}

View file

@ -9,6 +9,12 @@
user-select: none;
}
@media print {
.popup {
display: none;
}
}
/* The actual popup */
.popup .popuptext {
visibility: hidden;