mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-13 09:57:30 -05:00
Compare commits
5 Commits
reduce-pri
...
wip-print-
Author | SHA1 | Date | |
---|---|---|---|
fa1fb5d0ba
|
|||
77afe66aa6
|
|||
788583ea23
|
|||
4216b9ed6f
|
|||
54e639ecc3
|
@ -641,7 +641,7 @@ h1 svg.icon {
|
||||
/* Content (single) formatting {{{ */
|
||||
|
||||
.series-box {
|
||||
background-color: var(--background-1);
|
||||
background-color: var(--background-1); /* remember to update print styling */
|
||||
color: var(--text-1);
|
||||
padding: 8px 16px;
|
||||
border-radius: 8px;
|
||||
@ -649,7 +649,7 @@ h1 svg.icon {
|
||||
}
|
||||
|
||||
.table-of-contents {
|
||||
background-color: var(--background-1);
|
||||
background-color: var(--background-1); /* remember to update print styling */
|
||||
color: var(--text-1);
|
||||
padding: 8px 20px;
|
||||
border-radius: 8px;
|
||||
@ -704,7 +704,7 @@ h1 svg.icon {
|
||||
|
||||
/* See also formating */
|
||||
.see-also {
|
||||
background-color: var(--background-1);
|
||||
background-color: var(--background-1); /* remember to update print styling */
|
||||
color: var(--text-1);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
@ -770,14 +770,14 @@ h1 svg.icon {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 16px 0;
|
||||
background-color: var(--background-1);
|
||||
background-color: var(--background-1); /* remember to update print styling */
|
||||
border-radius: 8px;
|
||||
}
|
||||
.code-block > .code-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
background-color: var(--background-2);
|
||||
background-color: var(--background-2); /* remember to update print styling */
|
||||
padding: 4px 8px;
|
||||
border-top-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
@ -857,23 +857,24 @@ aside {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* remember to update print styling for all the following asides */
|
||||
aside.note {
|
||||
background-color: var(--accent-blue-1);
|
||||
background-color: var(--background-blue-1);
|
||||
}
|
||||
aside.info {
|
||||
background-color: var(--accent-green-1);
|
||||
background-color: var(--background-green-1);
|
||||
}
|
||||
aside.tip {
|
||||
background-color: var(--accent-teal-1);
|
||||
background-color: var(--background-teal-1);
|
||||
}
|
||||
aside.warning {
|
||||
background-color: var(--accent-yellow-1);
|
||||
background-color: var(--background-yellow-1);
|
||||
}
|
||||
aside.example {
|
||||
background-color: var(--accent-purple-1);
|
||||
background-color: var(--background-purple-1);
|
||||
}
|
||||
aside.quote {
|
||||
background-color: var(--accent-1);
|
||||
background-color: var(--background-1);
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
@ -973,33 +974,18 @@ aside.quote {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* reduce usage of background colors
|
||||
*/
|
||||
|
||||
aside {
|
||||
background-color: unset !important;
|
||||
border: 4px solid;
|
||||
/* replace background colors with borders {{{ */
|
||||
.series-box {
|
||||
}
|
||||
|
||||
aside.note {
|
||||
border-color: var(--background-blue-1);
|
||||
.table-of-contents {
|
||||
}
|
||||
aside.info {
|
||||
border-color: var(--background-green-1);
|
||||
.see-also {
|
||||
}
|
||||
aside.tip {
|
||||
border-color: var(--background-teal-1);
|
||||
.code-block {
|
||||
}
|
||||
aside.warning {
|
||||
border-color: var(--background-yellow-1);
|
||||
}
|
||||
aside.example {
|
||||
border-color: var(--background-purple-1);
|
||||
}
|
||||
aside.quote {
|
||||
border-color: var(--background-1);
|
||||
.code-block > .code-header {
|
||||
}
|
||||
/* all the asides */
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
@ -5,16 +5,17 @@
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Background */ .bg { background-color: #f8f8f8 }
|
||||
/* Background */ .bg { background-color: #f8f8f8; }
|
||||
/* PreWrapper */ .chroma { background-color: #f8f8f8; }
|
||||
/* Other */ .chroma .x { color: #000000 }
|
||||
/* Error */ .chroma .err { color: #a40000 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #dfdfdf }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* Line */ .chroma .line { display: flex; }
|
||||
/* Keyword */ .chroma .k { color: #204a87; font-weight: bold }
|
||||
/* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold }
|
||||
|
@ -1,15 +1,16 @@
|
||||
/* native style */
|
||||
|
||||
/* Background */ .bg { color: #d0d0d0; background-color: #202020 }
|
||||
/* Background */ .bg { color: #d0d0d0; background-color: #202020; }
|
||||
/* PreWrapper */ .chroma { color: #d0d0d0; background-color: #202020; }
|
||||
/* Other */ .chroma .x { }
|
||||
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #363636 }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 }
|
||||
/* Line */ .chroma .line { display: flex; }
|
||||
/* Keyword */ .chroma .k { color: #6ab825; font-weight: bold }
|
||||
/* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold }
|
||||
|
@ -27,7 +27,7 @@
|
||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||
<footer>
|
||||
{{ with .Site.Copyright }}
|
||||
<p>{{ . | safeHTML }}</p>
|
||||
{{ . | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.footer }}
|
||||
|
@ -21,10 +21,14 @@
|
||||
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
||||
{{ end }}
|
||||
|
||||
{{ with (.GetTerms "tags") }}
|
||||
{{ $tags := slice }}
|
||||
{{ range . }}
|
||||
{{ $tags = $tags | append .LinkTitle }}
|
||||
{{ with .Keywords }}
|
||||
<meta itemprop="keywords" content="{{ delimit . ", " }}">
|
||||
{{ else }}
|
||||
{{ with (.GetTerms "tags") }}
|
||||
{{ $tags := slice }}
|
||||
{{ range . }}
|
||||
{{ $tags = $tags | append .LinkTitle }}
|
||||
{{ end }}
|
||||
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
|
||||
{{ end }}
|
||||
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user