Move @media specializations section instead of previous commit

Reverts 960d1d24be
This commit is contained in:
BBaoVanC 2023-04-06 00:12:43 -05:00
parent 960d1d24be
commit e6b5997dff
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -306,60 +306,6 @@ h1 svg.icon {
/* }}} */ /* }}} */
/* @media specializations {{{ */
/* Light mode */
@media print,
(prefers-color-scheme: light) {
li.disabled {
opacity: .25;
}
}
/* Print compatibility {{{ */
@media print {
.top,
.section-header-link,
.post-meta-edit-history,
.prevnext,
.share-buttons,
.related-posts,
.latest-posts {
display: none;
}
* {
-webkit-print-color-adjust: exact !important;
color-adjust: exact !important;
}
body {
max-width: 100%;
}
table,
aside,
.code-block {
break-inside: avoid;
}
.table-of-contents {
display: none;
}
.table-of-contents.print {
display: block;
}
#back-to-top {
display: none !important;
}
}
/* }}} */
/* }}} */
/* Heading formatting (website title and article section headers) {{{ */ /* Heading formatting (website title and article section headers) {{{ */
@ -709,11 +655,9 @@ h1 svg.icon {
cursor: pointer; cursor: pointer;
} }
@media not print { .table-of-contents.print {
.table-of-contents.print { display: none;
display: none; padding: 8px 15px;
padding: 8px 15px;
}
} }
/* Social media share buttons */ /* Social media share buttons */
@ -986,3 +930,58 @@ aside.quote {
} }
/* }}} */ /* }}} */
/* @media specializations {{{ */
/* Light mode */
@media print,
(prefers-color-scheme: light) {
li.disabled {
opacity: .25;
}
}
/* Print compatibility {{{ */
@media print {
.top,
.section-header-link,
.post-meta-edit-history,
.prevnext,
.share-buttons,
.related-posts,
.latest-posts {
display: none;
}
* {
-webkit-print-color-adjust: exact !important;
color-adjust: exact !important;
}
body {
max-width: 100%;
}
table,
aside,
.code-block {
break-inside: avoid;
}
.table-of-contents {
display: none;
}
.table-of-contents.print {
display: block;
}
#back-to-top {
display: none !important;
}
}
/* }}} */
/* }}} */