mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 20:46:33 +08:00
Merge branch 'McShelby/issue413' into 2.0.0
# Conflicts: # static/css/theme.css
This commit is contained in:
commit
8142c82cf0
@ -3,6 +3,13 @@
|
|||||||
|
|
||||||
/* Table of contents */
|
/* Table of contents */
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
/* we don't need this while printing */
|
||||||
|
.progress {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.progress ul {
|
.progress ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -48,6 +55,16 @@ body {
|
|||||||
#body a.highlight:hover:after, #body a.highlight:focus:after {
|
#body a.highlight:hover:after, #body a.highlight:focus:after {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
#body #body-inner a {
|
||||||
|
/* in print we want to distinguish links in our content from
|
||||||
|
normal text even if printed black/white;
|
||||||
|
don't use a.highlight in selector to also get links that are
|
||||||
|
put as HTML into markdown */
|
||||||
|
text-decoration-line: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
background-color: rgba(246, 246, 246, 0.97);
|
background-color: rgba(246, 246, 246, 0.97);
|
||||||
@ -62,12 +79,24 @@ body {
|
|||||||
padding-right: 1rem !important;
|
padding-right: 1rem !important;
|
||||||
margin-right: 0.5rem !important;
|
margin-right: 0.5rem !important;
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
/* we don't need this while printing */
|
||||||
|
#toc-menu {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar-toggle-span {
|
#sidebar-toggle-span {
|
||||||
border-right: thin solid #DAD8D8 !important;
|
border-right: thin solid #DAD8D8 !important;
|
||||||
padding-right: 0.5rem !important;
|
padding-right: 0.5rem !important;
|
||||||
margin-right: 1rem !important;
|
margin-right: 1rem !important;
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
/* we don't need this while printing */
|
||||||
|
#sidebar-toggle-span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block !important;
|
display: inline-block !important;
|
||||||
@ -235,7 +264,24 @@ figcaption h4 {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
#breadcrumbs .links {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.is-sticky #top-bar {
|
.is-sticky #top-bar {
|
||||||
box-shadow: -1px 2px 5px 1px rgba(0, 0, 0, 0.1);
|
box-shadow: -1px 2px 5px 1px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
/* the header is sticky which is not suited for print;
|
||||||
|
because there are inline styles set, we have to use !important here
|
||||||
|
to remove those styles in print;
|
||||||
|
chrome will repeat the header otherwise if you've already
|
||||||
|
scrolled the page before printing */
|
||||||
|
.is-sticky #top-bar{
|
||||||
|
position: inherit !important; /* IE11 doesn't know "initial" here */
|
||||||
|
width: inherit !important;
|
||||||
|
box-shadow: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -366,6 +366,11 @@ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[typ
|
|||||||
display: table;
|
display: table;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
#body #navigation {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
#body .nav {
|
#body .nav {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -406,9 +411,6 @@ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[typ
|
|||||||
#body .nav.nav-next {
|
#body .nav.nav-next {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
#body-inner {
|
|
||||||
margin-bottom: 5rem;
|
|
||||||
}
|
|
||||||
#chapter {
|
#chapter {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -417,7 +419,6 @@ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[typ
|
|||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
}
|
}
|
||||||
#chapter #body-inner {
|
#chapter #body-inner {
|
||||||
padding-bottom: 3rem;
|
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
#chapter h3 {
|
#chapter h3 {
|
||||||
@ -988,12 +989,27 @@ td {
|
|||||||
height: 0;
|
height: 0;
|
||||||
min-height: 3rem;
|
min-height: 3rem;
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
#body #top-bar{
|
||||||
|
background-color: #fff; /* avoid background bleeding*/
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
border-radius: 0;
|
||||||
|
padding-left: 0; /* for print, we want to align with the footer to ease the layout */
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
|
}
|
||||||
#top-github-link {
|
#top-github-link {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
float: right;
|
float: right;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
/* we don't need this while printing */
|
||||||
|
#top-github-link {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
#body #breadcrumbs {
|
#body #breadcrumbs {
|
||||||
height: auto;
|
height: auto;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
@ -1144,3 +1160,14 @@ option {
|
|||||||
font-size: x-small;
|
font-size: x-small;
|
||||||
width: 8px;
|
width: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
/* in print mode show footer line to signal reader
|
||||||
|
the end of document */
|
||||||
|
.footline {
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
color: #777;
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
padding-top: .75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user