Re-enable pygments and add copy-code button

This commit is contained in:
Dave Gallant
2023-12-17 18:53:46 -05:00
parent e7fc123bfe
commit bbf6a152e0
89 changed files with 1449 additions and 940 deletions

View File

@@ -1,18 +1,18 @@
/* Markdown */
:root{
--maincolor: #a15bc2;
--bordercl: #a15bc2;
--callouctcolor:dodgerblue;
--hovercolor: #a15bc2;
--darkMaincolor: #a15bc2;
:root {
--maincolor: #a15bc2;
--bordercl: #a15bc2;
--callouctcolor: dodgerblue;
--hovercolor: #a15bc2;
--darkMaincolor: #a15bc2;
}
html {
color: #232333;
font-family: 'Roboto Mono', monospace;
font-family: "Roboto Mono", monospace;
font-size: 18px;
line-height: 1.6em;
}
body{
body {
display: block;
background-color: #f8f8f8;
margin: 8px;
@@ -27,7 +27,7 @@ body{
}
p {
font-family: 'Roboto Light', sans-serif;
font-family: "Roboto Light", sans-serif;
line-height: 1.5;
}
@@ -50,8 +50,8 @@ a {
text-decoration: none;
}
a:hover {
background-color: var(--hovercolor);
color: #fff;
background-color: var(--hovercolor);
color: #fff;
}
ul {
@@ -62,7 +62,7 @@ ul li {
text-indent: -2ch;
}
ul > li::before {
content: '* ';
content: "* ";
font-weight: bold;
}
@@ -95,13 +95,13 @@ figure h4 {
margin-bottom: 1em;
}
figure h4::before {
content: '';
content: "";
}
/* Code blocks */
code {
background-color: #f1f1f1;
padding: 0em .0.1em;
padding: 0em 0.1em;
}
pre {
@@ -145,17 +145,40 @@ header {
header .main {
font-size: 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 1.2rem;
margin-top: 2em;
}
h1::before { color: var(--maincolor); content: '# '; }
h2::before { color: var(--maincolor); content: '## '; }
h3::before { color: var(--maincolor); content: '### '; }
h4::before { color: var(--maincolor); content: '#### '; }
h5::before { color: var(--maincolor); content: '##### '; }
h6::before { color: var(--maincolor); content: '###### '; }
h1::before {
color: var(--maincolor);
content: "# ";
}
h2::before {
color: var(--maincolor);
content: "## ";
}
h3::before {
color: var(--maincolor);
content: "### ";
}
h4::before {
color: var(--maincolor);
content: "#### ";
}
h5::before {
color: var(--maincolor);
content: "##### ";
}
h6::before {
color: var(--maincolor);
content: "###### ";
}
.meta {
color: #999;
@@ -198,7 +221,6 @@ article .title {
margin-bottom: 1em;
}
/* Callout */
.callout {
background-color: var(--callouctcolor);
@@ -207,7 +229,7 @@ article .title {
}
.callout p {
font-family: 'IBM Plex Mono', monospace;
font-family: "IBM Plex Mono", monospace;
margin: 0;
}
@@ -221,32 +243,32 @@ article .title {
}
.site-description {
display: flex;
justify-content: space-between;
display: flex;
justify-content: space-between;
}
.tags li::before{
.tags li::before {
content: "- ";
}
.tags a{
border-bottom: 3px solid var(--maincolor);
.tags a {
border-bottom: 3px solid var(--maincolor);
}
.tags a:hover{
color:white;
background-color: var(--hovercolor);
.tags a:hover {
color: white;
background-color: var(--hovercolor);
}
svg{
svg {
max-height: 15px;
}
.soc:hover{
.soc:hover {
color: white;
}
.draft-label{
color: var(--bordercl);
text-decoration: none;
padding: 2px 4px;
border-radius: 4px;
margin-left: 6px;
background-color: #f9f2f4;
.draft-label {
color: var(--bordercl);
text-decoration: none;
padding: 2px 4px;
border-radius: 4px;
margin-left: 6px;
background-color: #f9f2f4;
}
.highlight {
position: relative;
@@ -269,51 +291,51 @@ svg{
top: 0;
}
.highlight pre code[class=language-javaScript]::before,
.highlight pre code[class="language-javaScript"]::before,
.highlight pre code[class="language-js"]::before {
content: "js";
background: #f7df1e;
color: black;
content: "js";
background: #f7df1e;
color: black;
}
.highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before {
content: 'yaml';
background: #f71e6a;
color: white;
.highlight pre code[class*="language-yml"]::before,
.highlight pre code[class*="language-yaml"]::before {
content: "yaml";
background: #f71e6a;
color: white;
}
.highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before {
content: 'shell';
background: green;
color:white
.highlight pre code[class*="language-shell"]::before,
.highlight pre code[class*="language-bash"]::before,
.highlight pre code[class*="language-sh"]::before {
content: "shell";
background: green;
color: white;
}
.highlight pre code[class*='language-json']::before{
content: 'json';
background: dodgerblue;
color: #000000
.highlight pre code[class*="language-json"]::before {
content: "json";
background: dodgerblue;
color: #000000;
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
content: 'py';
background: blue;
color: yellow ;
.highlight pre code[class*="language-python"]::before,
.highlight pre code[class*="language-py"]::before {
content: "py";
background: blue;
color: yellow;
}
.highlight pre code[class*='language-css']::before{
content: 'css';
background: cyan;
color: black ;
.highlight pre code[class*="language-css"]::before {
content: "css";
background: cyan;
color: black;
}
.highlight pre code[class*='language-go']::before{
content: 'Go';
background: cyan;
color: royalblue ;
.highlight pre code[class*="language-go"]::before {
content: "Go";
background: cyan;
color: royalblue;
}
.highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before{
content: 'Markdown';
background: royalblue;
color: whitesmoke ;
.highlight pre code[class*="language-md"]::before,
.highlight pre code[class*="language-md"]::before {
content: "Markdown";
background: royalblue;
color: whitesmoke;
}
/* table */
@@ -322,13 +344,13 @@ table {
border-collapse: collapse;
}
table th{
table th {
padding: 6px 13px;
border: 1px solid #dfe2e5;
font-size: large;
}
table td{
table td {
padding: 6px 13px;
border: 1px solid #dfe2e5;
}