bobatheme/assets/css/bobastyle.css

979 lines
18 KiB
CSS
Raw Normal View History

2021-10-08 19:46:45 -05:00
/* bobatheme is available under the MIT license at
* https://github.com/BBaoVanC/bobatheme.
*/
2021-11-22 16:46:58 -06:00
:root {
2022-05-14 23:19:52 -05:00
--background-0: #111111; /* lch(5, 0, X) */
--background-1: #212121; /* lch(12.5, 0, X) */
--background-2: #303030; /* lch(20, 0, X) */
--background-3: #414141; /* lch(27.5, 0, X) */
--background-pink-1: #331821; /* lch(12.5, 15, 0) */
--background-red-1: #331917; /* lch(12.5, 15, 30) */
--background-orange-1: #2e1c0e; /* lch(12.5, 15, 60) */
--background-yellow-1: #262008; /* lch(12.5, 15, 90) */
--background-lime-1: #1b230c; /* lch(12.5, 15, 120) */
--background-green-1: #0e2516; /* lch(12.5, 15, 150) */
--background-turquoise-1: #012620; /* lch(12.5, 15, 180) */
--background-teal-1: #00262b; /* lch(12.5, 15, 210) -- out of sRGB */
--background-cerulean-1: #032432; /* lch(12.5, 15, 240) */
--background-blue-1: #152135; /* lch(12.5, 15, 270) */
--background-purple-1: #241d33; /* lch(12.5, 15, 300) */
--background-magenta-1: #2e1a2b; /* lch(12.5, 15, 330) */
--background-pink-2: #4b2431; /* lch(20, 20, 0) */
--background-red-2: #4a2623; /* lch(20, 20, 30) */
--background-orange-2: #432a17; /* lch(20, 20, 60) */
--background-yellow-2: #373012; /* lch(20, 20, 90) */
--background-lime-2: #283416; /* lch(20, 20, 120) */
--background-green-2: #163721; /* lch(20, 20, 150) */
--background-turquoise-2: #003830; /* lch(20, 20, 180) -- out of sRGB */
--background-teal-2: #00373e; /* lch(20, 20, 210) -- out of sRGB */
--background-cerulean-2: #013549; /* lch(20, 20, 240) */
--background-blue-2: #1f314e; /* lch(20, 20, 270) */
--background-purple-2: #352c4a; /* lch(20, 20, 300) */
--background-magenta-2: #43263f; /* lch(20, 20, 330) */
--background-accent-1: var(--background-blue-1);
--background-accent-2: var(--background-blue-2);
--text-0: #d4d4d4; /* lch(85, 0, X) */
--text-1: #d4d4d4; /* lch(85, 0, X) */
--text-2: #d4d4d4; /* lch(85, 0, X) */
--text-3: #e9e9e9; /* lch(92.5, 0, X) */
--text-gray-0: #ababab; /* lch(70, 0, X) */
--text-gray-1: #919191; /* lch(60, 0, X) */
--link-0: #3a94fb; /* lch(60, 60, 270) */
2023-01-22 16:23:03 -06:00
--link-1: #4ea1ff; /* lch(65, 60, 270) -- out of sRGB */
2022-05-14 23:19:52 -05:00
2022-05-08 00:46:05 -05:00
--figure-border: #1f5593; /* lch(35, 40, 270) */
2021-11-22 16:46:58 -06:00
--pagination-active-hover-text: black;
2022-05-08 00:46:05 -05:00
--pagination-active-background: #1a3d69; /* lch(25, 30, 270) */
--pagination-active-hover-background: #2061a8; /* lch(40, 45, 270) */
2021-11-22 16:46:58 -06:00
}
2022-05-08 00:46:05 -05:00
@media print, (prefers-color-scheme: light) {
2021-11-22 16:46:58 -06:00
:root {
2022-05-14 23:19:52 -05:00
--background-0: #f1f1f1; /* lch(95, 0, X) */
--background-1: #dbdbdb; /* lch(87.5, 0, X) */
--background-2: #c6c6c6; /* lch(80, 0, X) */
--background-3: #b2b2b2; /* lch(72.5, 0, X) */
--background-pink-1: #f7d1dc; /* lch(87.5, 15, 0) */
--background-red-1: #f8d2ce; /* lch(87.5, 15, 30) */
--background-orange-1: #f1d6c3; /* lch(87.5, 15, 60) */
--background-yellow-1: #e4dbbf; /* lch(87.5, 15, 90) */
--background-lime-1: #d5dfc2; /* lch(87.5, 15, 120) */
--background-green-1: #c6e3cc; /* lch(87.5, 15, 150) */
--background-turquoise-1: #bce4db; /* lch(87.5, 15, 180) */
--background-teal-1: #bae3e9; /* lch(87.5, 15, 210) */
--background-cerulean-1: #c2e0f4; /* lch(87.5, 15, 240) */
--background-blue-1: #d0dcf8; /* lch(87.5, 15, 270) */
--background-purple-1: #e1d7f4; /* lch(87.5, 15, 300) */
--background-magenta-1: #efd3ea; /* lch(87.5, 15, 330) */
--background-pink-2: #fbb1c8; /* lch(80, 30, 0) */
--background-red-2: #fbb4ac; /* lch(80, 30, 30) */
--background-orange-2: #eebc97; /* lch(80, 30, 60) */
--background-yellow-2: #d6c58e; /* lch(80, 30, 90) */
--background-lime-2: #b8ce95; /* lch(80, 30, 120) */
--background-green-2: #9ad4a9; /* lch(80, 30, 150) */
--background-turquoise-2: #81d6c5; /* lch(80, 30, 180) */
--background-teal-2: #7ad5e1; /* lch(80, 30, 210) */
--background-cerulean-2: #8cd0f6; /* lch(80, 30, 240) */
--background-blue-2: #adc8fe; /* lch(80, 30, 270) */
--background-purple-2: #d0bef7; /* lch(80, 30, 300) */
--background-magenta-2: #ecb5e3; /* lch(80, 30, 330) */
--background-accent-1: var(--background-blue-1);
--background-accent-2: var(--background-blue-2);
--text-0: #262626; /* lch(15, 0, X) */
--text-1: #262626; /* lch(15, 0, X) */
--text-2: #262626; /* lch(15, 0, X) */
--text-3: #171717; /* lch(72.5, 0, X) */
--text-gray-0: #474747; /* lch(30, 0, X) */
--text-gray-1: #5e5e5e; /* lch(40, 0, X) */
--link-0: #2061a8; /* lch(40, 45, 270) */
2022-05-08 00:46:05 -05:00
--figure-border: #367acd; /* lch(50, 50, 270) */
2021-11-22 16:46:58 -06:00
--pagination-active-hover-text: white;
2022-05-08 00:46:05 -05:00
--pagination-active-background: #9fbaf0; /* lch(75, 30, 270) */
--pagination-active-hover-background: #6193e0; /* lch(60, 45, 270) */
2021-11-22 16:46:58 -06:00
}
}
@media print {
:root {
2022-05-08 00:46:05 -05:00
--background-0: #fff;
2021-11-22 16:46:58 -06:00
}
}
2021-10-08 19:46:45 -05:00
2022-04-04 21:47:26 -05:00
2021-10-03 19:31:56 -05:00
/* Post layout (in list pages) */
2021-11-13 17:23:30 -06:00
.list-page-content {
display: flex;
flex-direction: column;
gap: 40px;
}
.page-list,
.series-taxonomy-list {
2021-11-13 17:23:30 -06:00
display: flex;
flex-direction: column;
list-style: none;
padding: 0;
gap: 40px;
}
.series-taxonomy-list {
2022-04-10 02:48:56 -05:00
gap: 80px;
}
.page-list .post,
.series-taxonomy-list .series-taxonomy,
.series-taxonomy .post {
padding-top: 8px;
padding-left: 24px;
padding-right: 24px;
padding-bottom: 24px;
border-radius: 12px;
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
}
.post-series-position {
position: relative;
float: right;
opacity: .75;
}
.post-title,
.author-name {
2021-10-02 16:22:52 -05:00
margin-bottom: 10px;
}
2022-07-20 21:48:55 -05:00
.post-title h1,
.author-name h1 {
margin: 0;
}
.post-title a,
.author-name a {
color: inherit;
text-decoration: inherit;
}
.post-meta-item,
.author-meta-item {
margin-right: 10px;
2021-11-20 19:56:30 -06:00
display: inline-block;
2021-10-02 16:22:52 -05:00
}
.post-metadata,
.author-metadata {
2022-07-20 21:48:55 -05:00
margin-bottom: 24px;
2021-10-09 22:54:33 -05:00
}
.categories,
2021-11-13 14:29:59 -06:00
.tags,
.series {
margin-top: 10px;
}
.post-media {
margin-top: 15px;
2021-10-03 19:31:56 -05:00
}
.post-description,
.author-description {
2021-10-09 22:33:18 -05:00
margin-top: 10px;
}
2021-10-09 22:33:18 -05:00
.readmore {
margin-top: 5px;
}
2021-10-03 19:31:56 -05:00
/* Taxonomy list format */
.taxonomy-list a,
.taxonomy-list .taxonomy-metadata {
white-space: nowrap;
}
.taxonomy-list p {
margin: 0;
}
.taxonomy-list {
list-style: none;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.taxonomy-list .taxonomy-term {
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
padding: 8px 12px;
border-radius: 8px;
display: flex;
flex-direction: row;
gap: 20px;
}
.taxonomy-list-left {
2022-05-09 18:56:40 -05:00
display: flex;
flex-direction: column;
}
@media (max-width: 480px) {
.taxonomy-list .taxonomy-term {
flex-direction: column;
gap: 4px;
}
2022-05-09 18:56:40 -05:00
.taxonomy-list-left {
2022-05-09 18:56:40 -05:00
flex-direction: row;
justify-content: space-between;
}
}
/* Series list format */
.series-page-list {
display: flex;
gap: 10px;
flex-flow: row wrap;
list-style: none;
2022-05-08 00:46:05 -05:00
background-color: var(--background-0);
2022-05-14 23:19:52 -05:00
color: var(--text-0);
padding: 8px;
border-radius: 16px;
}
.series-page-list .post {
flex: 1;
min-width: 49%;
}
2021-11-01 17:38:44 -05:00
/* Subsection formatting */
2021-11-13 17:23:30 -06:00
.sections {
display: flex;
flex-direction: column;
gap: 10px;
2021-11-13 17:23:30 -06:00
}
2021-11-01 17:38:44 -05:00
.section {
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
border-radius: 12px;
2021-11-01 17:38:44 -05:00
padding: 1px 25px;
}
.section:hover {
2022-05-08 00:46:05 -05:00
background-color: var(--background-2);
2022-05-14 23:19:52 -05:00
color: var(--text-2);
2021-11-01 17:38:44 -05:00
}
.section-title {
margin: 10px 0;
}
.section-anchor {
color: inherit;
}
.section-anchor:hover {
text-decoration: none;
}
.section-description {
margin-bottom: 5px;
}
.view-section {
margin-top: 5px;
}
2021-10-03 19:31:56 -05:00
/* Header formatting (website title and article section headers) */
.header {
margin: 16px 0;
}
2021-11-13 14:29:59 -06:00
.header a,
.section-header a {
2021-10-03 19:31:56 -05:00
color: inherit;
2023-01-07 20:50:01 -06:00
font-size: 1.5em;
font-weight: bold;
2021-09-25 20:52:01 -05:00
}
2021-09-30 09:54:30 -05:00
2021-10-10 15:14:36 -05:00
.section-header-link svg {
width: 15px;
height: 15px;
}
2021-09-30 09:54:30 -05:00
2021-10-03 19:31:56 -05:00
/* Content formatting */
2021-11-13 23:31:20 -06:00
.series-box {
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
padding: 8px 16px;
2021-11-13 23:31:20 -06:00
border-radius: 8px;
margin: 15px 0;
2021-11-13 23:31:20 -06:00
}
.table-of-contents {
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
2021-10-26 20:50:45 -05:00
padding: 8px 20px;
2021-11-13 23:31:20 -06:00
border-radius: 8px;
margin: 10px 0;
2021-10-26 20:50:45 -05:00
}
.table-of-contents summary {
2021-10-26 20:50:45 -05:00
cursor: pointer;
}
.table-of-contents.print {
display: none;
padding: 8px 15px;
}
2022-04-10 15:42:58 -05:00
2022-04-10 15:42:58 -05:00
/* Related posts */
.full-width-page-list {
/* make left/right 0 margin so it takes up full width */
margin: 25px 0;
2022-04-10 15:42:58 -05:00
}
.full-width-page-list > hr,
.full-width-page-list > h1 {
margin-left: 20px;
margin-right: 20px;
}
.full-width-page-list .post {
min-width: 300px;
max-width: 300px;
}
.full-width-page-list .post:first-child {
margin-left: 20px;
}
.full-width-page-list .post:last-child {
margin-right: 20px;
}
@media (max-width: 720px) {
/* when the screen is smaller than max size, make sure that the .related div
* still reaches the screen edge. then if the posts overflow and require
* scrolling, you can see it cut off on the side of your phone screen
*/
.full-width-page-list {
margin-left: -20px;
margin-right: -20px;
}
}
2022-04-10 15:42:58 -05:00
@media (min-width: 720px) {
.full-width-page-list {
/* this makes it full width -- 720px max-width on body it is exactly 720px
* so .related takes up full width
*/
margin-left: calc(-100vw / 2 + 720px / 2);
margin-right: calc(-100vw / 2 + 720px / 2);
2022-04-10 15:42:58 -05:00
}
}
.full-width-page-list .page-list {
display: flex;
flex-direction: row;
gap: 20px;
overflow-x: scroll;
}
2022-04-10 15:42:58 -05:00
2022-04-30 21:23:45 -05:00
/* Social media share buttons */
.share-buttons {
2022-05-08 00:46:05 -05:00
background: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
2022-04-30 21:23:45 -05:00
margin: 25px 0;
padding: 8px 0;
border-radius: 8px;
display: flex;
gap: 8px;
justify-content: center;
}
.share-buttons a {
2022-05-08 00:46:05 -05:00
background-color: var(--background-2);
2022-05-14 23:19:52 -05:00
color: var(--text-2);
2022-04-30 21:23:45 -05:00
padding: 4px;
border-radius: 8px;
}
.share-buttons a:hover {
background-color: var(--background-3);
color: var(--text-3);
2022-05-08 15:21:41 -05:00
}
2022-04-30 21:23:45 -05:00
.share-buttons svg {
width: 32px;
height: 32px;
}
/* https://stackoverflow.com/a/72073682/19003757 */
/*
.telegram-share > svg {
transform: scale(1.5);
margin: 9px -9px -9px 9px;
}
*/
2022-04-30 21:23:45 -05:00
2022-05-03 22:09:18 -05:00
/* See also formating */
.see-also {
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
2022-05-03 22:09:18 -05:00
padding: 8px 12px;
border-radius: 8px;
margin: 10px 0;
}
.see-also p {
margin: 0;
}
2022-04-10 15:42:58 -05:00
/* Back to top */
2021-11-22 20:49:11 -06:00
#back-to-top {
position: fixed;
float: right;
bottom: 25px;
right: 25px;
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
2021-11-22 20:49:11 -06:00
border-radius: 100%;
padding: 12px;
display: none;
}
2021-10-03 19:31:56 -05:00
/* Navbar formatting */
.topbar {
2021-11-01 20:29:28 -05:00
display: flex;
flex-wrap: nowrap;
flex-direction: row;
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
2021-11-01 20:29:28 -05:00
border-radius: 8px;
margin-top: 5px;
2021-11-02 15:51:24 -05:00
padding: 4px;
2021-11-01 20:29:28 -05:00
align-items: flex-start;
}
2021-11-07 19:55:17 -06:00
.navbar {
display: flex;
flex-grow: 1;
overflow: auto;
2021-11-01 20:29:28 -05:00
}
2021-11-07 19:55:17 -06:00
.navbar a {
padding: 8px 12px;
border-radius: 12px;
2022-05-06 20:19:45 -05:00
white-space: nowrap;
}
2021-11-01 20:29:28 -05:00
2021-11-13 14:29:59 -06:00
.navbar-item:hover,
.langpicker summary:hover,
.langpicker[open] summary {
2022-05-14 23:19:52 -05:00
background-color: var(--background-3);
2021-11-01 20:29:28 -05:00
text-decoration: none;
}
2022-05-14 23:19:52 -05:00
.langpicker summary:hover,
.langpicker[open] summary {
color: var(--text-3);
}
.topbar .active {
2021-11-01 20:29:28 -05:00
font-weight: bold;
2021-10-02 16:22:52 -05:00
}
2021-11-07 19:55:17 -06:00
.langpicker {
position: relative;
white-space: nowrap;
}
.langpicker summary {
cursor: pointer;
margin-left: 24px;
padding: 8px 12px;
border-radius: 12px;
}
.langpicker .languages {
position: absolute;
margin-top: 8px;
right: 0;
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
2022-05-08 00:46:05 -05:00
border: 2px solid var(--background-2);
2021-11-07 19:55:17 -06:00
padding: 8px 12px;
border-radius: 8px;
list-style: none;
}
2021-11-19 17:22:25 -06:00
.langpicker .unavailable {
color: inherit;
}
.langpicker .unavailable:hover {
cursor: not-allowed;
text-decoration: none;
}
2021-10-03 19:31:56 -05:00
/* Basic elements */
2021-11-22 20:49:11 -06:00
html {
scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
2021-09-30 09:54:30 -05:00
body {
2022-05-08 00:46:05 -05:00
background-color: var(--background-0);
2022-05-14 23:19:52 -05:00
color: var(--text-0);
font-family: "Open Sans", "Noto Sans", sans-serif;
margin: 20px;
2021-10-03 19:31:56 -05:00
max-width: 720px;
2021-10-17 00:10:03 -05:00
overflow-wrap: break-word;
}
2021-10-02 16:22:52 -05:00
@media (min-width: 760px) {
body {
margin: 20px auto;
}
}
2022-04-04 21:47:26 -05:00
footer {
2023-01-21 23:32:32 -06:00
margin-top: 20px;
2022-04-04 21:47:26 -05:00
text-align: center;
}
footer p {
margin: 0;
}
2021-11-13 14:29:59 -06:00
img,
video {
2021-10-07 16:00:52 -05:00
max-width: 100%;
}
.post-media > figure.border img,
.post-media > figure.border video {
padding: 5px;
2021-11-22 16:46:58 -06:00
border: 7px solid var(--figure-border);
}
figure.border img,
figure.border video {
padding: 5px;
2021-11-22 16:46:58 -06:00
border: 2px solid var(--figure-border);
}
2021-10-19 13:57:39 -05:00
figure {
margin: auto;
2021-11-06 21:55:23 -05:00
display: inline-block;
2021-10-19 13:57:39 -05:00
}
2021-10-19 12:40:34 -05:00
figcaption {
font-style: italic;
font-size: small;
text-align: center;
}
2021-09-30 09:54:30 -05:00
a {
2022-05-14 23:19:52 -05:00
color: var(--link-0);
2021-10-02 16:22:52 -05:00
text-decoration: inherit;
}
a:hover {
text-decoration: underline;
2021-09-30 09:54:30 -05:00
}
2021-10-02 16:22:52 -05:00
2021-09-30 09:54:30 -05:00
blockquote {
2022-05-08 00:46:05 -05:00
border-left: 5px solid var(--background-2);
2021-10-08 21:54:21 -05:00
padding-left: 15px;
margin-left: 0;
2021-10-08 21:54:21 -05:00
}
hr {
2022-05-14 23:19:52 -05:00
border: 1px solid var(--background-3);
}
2022-05-22 18:19:16 -05:00
@media (min-width: 720px) {
.full-width-hr {
/* see also: the related-posts section too */
margin-left: calc(-100vw / 2 + 760px / 2);
margin-right: calc(-100vw / 2 + 760px / 2);
}
}
table.markdown {
border-collapse: collapse;
2022-05-08 00:46:05 -05:00
border: 2px solid var(--text-1);
}
.markdown thead {
2022-05-08 00:46:05 -05:00
background-color: var(--background-2);
2022-05-14 23:19:52 -05:00
color: var(--text-2);
}
.markdown th,
.markdown td {
padding: 8px;
}
.markdown tbody tr:nth-child(odd) {
2022-05-08 00:46:05 -05:00
background-color: var(--background-0);
2022-05-14 23:19:52 -05:00
color: var(--text-0);
}
.markdown tbody tr:nth-child(even) {
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
}
2022-05-21 20:56:26 -05:00
:target {
animation: target-fade 10s ease-out;
}
@keyframes target-fade {
0% { background-color: var(--background-yellow-2); }
}
* {
box-sizing: border-box;
}
/* Code blocks */
2023-01-20 16:25:28 -06:00
.code-block {
display: flex;
flex-direction: column;
2021-11-06 17:02:59 -05:00
margin: 16px 0;
2023-01-20 16:25:28 -06:00
background-color: var(--background-1);
border-radius: 8px;
}
2023-01-20 17:14:18 -06:00
.code-block > .code-header {
display: flex;
flex-direction: row;
justify-content: space-between;
2023-01-20 16:25:28 -06:00
background-color: var(--background-2);
padding: 4px 8px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
2023-01-20 17:14:18 -06:00
}
.code-block > .code-header > .code-type {
border-top-left-radius: 8px;
2023-01-20 16:25:28 -06:00
font-family: monospace;
2023-01-20 17:14:18 -06:00
margin: auto 0;
}
/* TODO: make the code copy button prettier */
2023-01-22 16:23:03 -06:00
.code-block > .code-header > .code-copy-button {
color: var(--link-1);
}
2023-01-20 17:14:18 -06:00
.code-block > .code-header > .code-copy-button:hover {
cursor: pointer;
2023-01-20 16:25:28 -06:00
}
.code-block > .highlight {
margin: 8px 4px;
}
2023-01-20 16:25:28 -06:00
.highlight > .chroma {
overflow: auto;
}
2022-07-02 19:01:01 -05:00
.chroma {
2023-01-20 16:25:28 -06:00
/* the syntax highlight CSS adds a border */
background-color: transparent !important;
margin: 0;
2022-07-02 19:01:01 -05:00
}
.chroma .gp {
/* Generic Prompt symbol */
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
:not(pre) > code {
2022-05-08 00:46:05 -05:00
background-color: var(--background-2);
2022-05-15 18:26:17 -05:00
/* Disable this because it overrides inline code blocks that are
* also links
2022-05-14 23:19:52 -05:00
color: var(--text-2);
2022-05-15 18:26:17 -05:00
*/
padding: 2px 4px;
2021-10-10 17:20:50 -05:00
overflow-wrap: break-word;
}
code {
border-radius: 5px;
}
.chroma .lnt {
display: block;
} /* fixes line numbers on firefox when there's only one line */
2021-10-03 19:31:56 -05:00
/* Asides */
aside {
padding: 8px 16px;
margin: 16px 0;
border-radius: 8px;
2022-05-14 23:19:52 -05:00
color: var(--text-1);
}
.aside-title {
margin-bottom: 8px;
padding-bottom: 4px;
font-weight: bold;
}
.aside-content > :first-child {
margin-top: 0;
}
.aside-content > :last-child {
margin-bottom: 0;
}
aside.note {
2022-05-14 23:19:52 -05:00
background-color: var(--background-blue-1);
}
aside.info {
2022-05-14 23:19:52 -05:00
background-color: var(--background-green-1);
}
aside.tip {
2022-05-14 23:19:52 -05:00
background-color: var(--background-teal-1);
}
aside.warning {
2022-05-14 23:19:52 -05:00
background-color: var(--background-yellow-1);
}
aside.example {
2022-05-14 23:19:52 -05:00
background-color: var(--background-purple-1);
}
aside.quote {
background-color: var(--background-1);
}
2021-10-05 19:12:10 -05:00
/* Icons */
.icon {
width: 20px;
height: 20px;
2022-05-08 00:46:05 -05:00
color: var(--text-1);
2021-10-05 19:12:10 -05:00
text-align: center;
display: inline;
vertical-align: middle;
}
2021-10-09 22:38:31 -05:00
h1 svg.icon {
width: 30px;
height: 30px;
}
2021-10-05 19:12:10 -05:00
2021-10-02 19:26:33 -05:00
/* Pagination */
.pagination {
list-style: none;
text-align: center;
2021-11-20 22:05:33 -06:00
padding: 0;
2021-10-02 19:26:33 -05:00
}
.page-item {
display: inline;
}
.page-link {
padding: 8px 16px;
border-radius: 5px;
2022-05-08 00:46:05 -05:00
color: var(--text-1);
2021-10-02 19:26:33 -05:00
}
.page-item.active .page-link {
2021-11-22 16:46:58 -06:00
background-color: var(--pagination-active-background);
2021-10-02 19:26:33 -05:00
color: inherit;
}
.page-item.active .page-link:hover {
2021-11-22 16:46:58 -06:00
background-color: var(--pagination-active-hover-background);
color: var(--pagination-active-hover-text);
cursor: default;
2021-10-02 19:26:33 -05:00
}
.page-link:hover {
text-decoration: none;
}
:not(li.disabled) > .page-link:hover {
2022-05-14 23:19:52 -05:00
background-color: var(--background-3);
}
li.disabled {
opacity: .5;
}
li.disabled > .page-link:hover {
cursor: not-allowed;
2021-10-02 19:26:33 -05:00
}
/* Breadcrumb navigation */
2022-07-20 21:48:55 -05:00
.breadcrumb ul {
2022-04-04 21:47:26 -05:00
margin: 30px 0 20px;
}
.breadcrumb ul {
padding: 0;
list-style: none;
}
.breadcrumb li {
display: inline;
}
.breadcrumb li+li:before {
content: "»"
}
/* Previous and next page */
.prevnext {
display: flex;
margin: 20px 0;
}
.prevnext > * {
flex: 1;
white-space: nowrap;
overflow: hidden;
display: flex;
flex-direction: column;
color: inherit;
2022-05-08 00:46:05 -05:00
background-color: var(--background-1);
2022-05-14 23:19:52 -05:00
color: var(--text-1);
padding: 8px 16px;
}
.prevnext > a:hover {
2022-05-08 00:46:05 -05:00
background-color: var(--background-2);
2022-05-14 23:19:52 -05:00
color: var(--text-2);
text-decoration: none;
}
.prevnext > .prev {
text-align: left;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
.prevnext > .next {
text-align: right;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
.prevnext .prev-caption,
.prevnext .next-caption {
opacity: 65%;
}
.prevnext .prev-post,
.prevnext .next-post {
overflow: hidden;
text-overflow: ellipsis;
}
/* 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,
2022-05-08 14:59:25 -05:00
.share-buttons,
.related-posts,
.latest-posts {
display: none;
}
* {
-webkit-print-color-adjust: exact !important;
color-adjust: exact !important;
}
body {
max-width: 100%;
}
pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
break-inside: avoid;
}
.table-of-contents {
display: none;
}
.table-of-contents.print {
display: block;
}
2021-11-23 14:37:29 -06:00
#back-to-top {
display: none !important;
}
}