2018-09-24 23:27:12 +00:00
|
|
|
@charset "utf-8";
|
2020-08-15 13:26:27 +00:00
|
|
|
/* Document
|
|
|
|
* ========================================================================== */
|
|
|
|
/**
|
2021-09-28 08:02:37 +00:00
|
|
|
* 1. Add border box sizing in all browsers (opinionated).
|
|
|
|
* 2. Backgrounds do not repeat by default (opinionated).
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
|
|
|
*,
|
|
|
|
::before,
|
|
|
|
::after {
|
2021-09-28 08:02:37 +00:00
|
|
|
box-sizing: border-box; /* 1 */
|
2020-08-15 13:26:27 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 1. Add text decoration inheritance in all browsers (opinionated).
|
|
|
|
* 2. Add vertical alignment inheritance in all browsers (opinionated).
|
|
|
|
*/
|
|
|
|
::before,
|
|
|
|
::after {
|
|
|
|
text-decoration: inherit; /* 1 */
|
|
|
|
vertical-align: inherit; /* 2 */
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 1. Use the default cursor in all browsers (opinionated).
|
|
|
|
* 2. Change the line height in all browsers (opinionated).
|
2021-09-28 08:02:37 +00:00
|
|
|
* 3. Breaks words to prevent overflow in all browsers (opinionated).
|
|
|
|
* 4. Use a 4-space tab width in all browsers (opinionated).
|
|
|
|
* 5. Remove the grey highlight on links in iOS (opinionated).
|
|
|
|
* 6. Prevent adjustments of font size after orientation changes in iOS.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(:root) {
|
2020-08-15 13:26:27 +00:00
|
|
|
cursor: default; /* 1 */
|
|
|
|
line-height: 1.5; /* 2 */
|
2021-09-28 08:02:37 +00:00
|
|
|
overflow-wrap: break-word; /* 3 */
|
|
|
|
-moz-tab-size: 4; /* 4 */
|
2020-08-15 13:26:27 +00:00
|
|
|
-o-tab-size: 4;
|
2021-09-28 08:02:37 +00:00
|
|
|
tab-size: 4; /* 4 */
|
|
|
|
-webkit-tap-highlight-color: transparent; /* 5 */
|
|
|
|
-webkit-text-size-adjust: 100%; /* 6 */
|
2020-08-15 13:26:27 +00:00
|
|
|
}
|
|
|
|
/* Sections
|
|
|
|
* ========================================================================== */
|
|
|
|
/**
|
|
|
|
* Remove the margin in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(body) {
|
2020-08-15 13:26:27 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Correct the font size and margin on `h1` elements within `section` and
|
|
|
|
* `article` contexts in Chrome, Edge, Firefox, and Safari.
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(h1) {
|
2020-08-15 13:26:27 +00:00
|
|
|
font-size: 2em;
|
|
|
|
margin: 0.67em 0;
|
|
|
|
}
|
|
|
|
/* Grouping content
|
|
|
|
* ========================================================================== */
|
|
|
|
/**
|
2021-09-28 08:02:37 +00:00
|
|
|
* Remove the margin on nested lists in Chrome, Edge, and Safari.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(dl, ol, ul) :where(dl, ol, ul) {
|
2020-08-15 13:26:27 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
/**
|
2020-08-24 00:58:14 +00:00
|
|
|
* 1. Correct the inheritance of border color in Firefox.
|
|
|
|
* 2. Add the correct box sizing in Firefox.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(hr) {
|
2020-08-24 00:58:14 +00:00
|
|
|
color: inherit; /* 1 */
|
|
|
|
height: 0; /* 2 */
|
2020-08-15 13:26:27 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Remove the list style on navigation lists in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(nav) :where(ol, ul) {
|
|
|
|
list-style-type: none;
|
2020-08-15 13:26:27 +00:00
|
|
|
padding: 0;
|
|
|
|
}
|
2020-08-24 00:58:14 +00:00
|
|
|
/**
|
|
|
|
* Prevent VoiceOver from ignoring list semantics in Safari (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(nav li)::before {
|
2020-08-24 00:58:14 +00:00
|
|
|
content: "\200B";
|
2021-09-28 08:02:37 +00:00
|
|
|
float: left;
|
2020-08-24 00:58:14 +00:00
|
|
|
}
|
2020-08-15 13:26:27 +00:00
|
|
|
/**
|
|
|
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
|
|
* 2. Correct the odd `em` font sizing in all browsers.
|
2020-08-24 00:58:14 +00:00
|
|
|
* 3. Prevent overflow of the container in all browsers (opinionated).
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(pre) {
|
2020-08-15 13:26:27 +00:00
|
|
|
font-family: monospace, monospace; /* 1 */
|
|
|
|
font-size: 1em; /* 2 */
|
2020-08-24 00:58:14 +00:00
|
|
|
overflow: auto; /* 3 */
|
2020-08-15 13:26:27 +00:00
|
|
|
}
|
|
|
|
/* Text-level semantics
|
|
|
|
* ========================================================================== */
|
|
|
|
/**
|
2021-09-28 08:02:37 +00:00
|
|
|
* Add the correct text decoration in Safari.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(abbr[title]) {
|
2020-08-15 13:26:27 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
-webkit-text-decoration: underline dotted;
|
|
|
|
text-decoration: underline dotted;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(b, strong) {
|
2020-08-15 13:26:27 +00:00
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
|
|
* 2. Correct the odd `em` font sizing in all browsers.
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(code, kbd, samp) {
|
2020-08-15 13:26:27 +00:00
|
|
|
font-family: monospace, monospace; /* 1 */
|
|
|
|
font-size: 1em; /* 2 */
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Add the correct font size in all browsers.
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(small) {
|
2020-08-15 13:26:27 +00:00
|
|
|
font-size: 80%;
|
|
|
|
}
|
|
|
|
/* Embedded content
|
|
|
|
* ========================================================================== */
|
|
|
|
/*
|
|
|
|
* Change the alignment on media elements in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(audio, canvas, iframe, img, svg, video) {
|
2020-08-15 13:26:27 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Remove the border on iframes in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(iframe) {
|
2020-08-15 13:26:27 +00:00
|
|
|
border-style: none;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Change the fill color to match the text color in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(svg:not([fill])) {
|
2020-08-15 13:26:27 +00:00
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
/* Tabular data
|
|
|
|
* ========================================================================== */
|
|
|
|
/**
|
2020-08-24 00:58:14 +00:00
|
|
|
* 1. Collapse border spacing in all browsers (opinionated).
|
|
|
|
* 2. Correct table border color inheritance in all Chrome, Edge, and Safari.
|
|
|
|
* 3. Remove text indentation from table contents in Chrome, Edge, and Safari.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(table) {
|
2020-08-24 00:58:14 +00:00
|
|
|
border-collapse: collapse; /* 1 */
|
|
|
|
border-color: inherit; /* 2 */
|
|
|
|
text-indent: 0; /* 3 */
|
2020-08-15 13:26:27 +00:00
|
|
|
}
|
|
|
|
/* Forms
|
|
|
|
* ========================================================================== */
|
|
|
|
/**
|
|
|
|
* Remove the margin on controls in Safari.
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(button, input, select) {
|
2020-08-15 13:26:27 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Correct the inability to style buttons in iOS and Safari.
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {
|
2020-08-15 13:26:27 +00:00
|
|
|
-webkit-appearance: button;
|
|
|
|
}
|
|
|
|
/**
|
2021-09-28 08:02:37 +00:00
|
|
|
* Change the inconsistent appearance in all browsers (opinionated).
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(fieldset) {
|
|
|
|
border: 1px solid #a0a0a0;
|
2020-08-15 13:26:27 +00:00
|
|
|
}
|
|
|
|
/**
|
2021-09-28 08:02:37 +00:00
|
|
|
* Add the correct vertical alignment in Chrome, Edge, and Firefox.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(progress) {
|
|
|
|
vertical-align: baseline;
|
2020-08-15 13:26:27 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 1. Remove the margin in Firefox and Safari.
|
|
|
|
* 3. Change the resize direction in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(textarea) {
|
2020-08-15 13:26:27 +00:00
|
|
|
margin: 0; /* 1 */
|
|
|
|
resize: vertical; /* 3 */
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 1. Correct the odd appearance in Chrome, Edge, and Safari.
|
|
|
|
* 2. Correct the outline style in Safari.
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where([type="search" i]) {
|
2020-08-15 13:26:27 +00:00
|
|
|
-webkit-appearance: textfield; /* 1 */
|
|
|
|
outline-offset: -2px; /* 2 */
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Correct the cursor style of increment and decrement buttons in Safari.
|
|
|
|
*/
|
|
|
|
::-webkit-inner-spin-button,
|
|
|
|
::-webkit-outer-spin-button {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Correct the text style of placeholders in Chrome, Edge, and Safari.
|
|
|
|
*/
|
|
|
|
::-webkit-input-placeholder {
|
|
|
|
color: inherit;
|
|
|
|
opacity: 0.54;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Remove the inner padding in Chrome, Edge, and Safari on macOS.
|
|
|
|
*/
|
|
|
|
::-webkit-search-decoration {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 1. Correct the inability to style upload buttons in iOS and Safari.
|
|
|
|
* 2. Change font properties to `inherit` in Safari.
|
|
|
|
*/
|
|
|
|
::-webkit-file-upload-button {
|
|
|
|
-webkit-appearance: button; /* 1 */
|
|
|
|
font: inherit; /* 2 */
|
|
|
|
}
|
|
|
|
/* Interactive
|
|
|
|
* ========================================================================== */
|
|
|
|
/*
|
2021-09-28 08:02:37 +00:00
|
|
|
* Add the correct styles in Safari.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(dialog) {
|
2020-08-15 13:26:27 +00:00
|
|
|
background-color: white;
|
|
|
|
border: solid;
|
|
|
|
color: black;
|
|
|
|
height: -moz-fit-content;
|
|
|
|
height: -webkit-fit-content;
|
|
|
|
height: fit-content;
|
|
|
|
left: 0;
|
|
|
|
margin: auto;
|
|
|
|
padding: 1em;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
width: -moz-fit-content;
|
|
|
|
width: -webkit-fit-content;
|
|
|
|
width: fit-content;
|
|
|
|
}
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(dialog:not([open])) {
|
2020-08-15 13:26:27 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
/*
|
2021-09-28 08:02:37 +00:00
|
|
|
* Add the correct display in Safari.
|
2020-08-15 13:26:27 +00:00
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(details > summary:first-of-type) {
|
2020-08-15 13:26:27 +00:00
|
|
|
display: list-item;
|
|
|
|
}
|
|
|
|
/* Accessibility
|
|
|
|
* ========================================================================== */
|
|
|
|
/**
|
|
|
|
* Change the cursor on busy elements in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where([aria-busy="true" i]) {
|
2020-08-15 13:26:27 +00:00
|
|
|
cursor: progress;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Change the cursor on control elements in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where([aria-controls]) {
|
2020-08-15 13:26:27 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Change the cursor on disabled, not-editable, or otherwise
|
|
|
|
* inoperable elements in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where([aria-disabled="true" i], [disabled]) {
|
2020-08-15 13:26:27 +00:00
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Change the display on visually hidden accessible elements
|
|
|
|
* in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where([aria-hidden="false" i][hidden]) {
|
2020-08-15 13:26:27 +00:00
|
|
|
display: initial;
|
|
|
|
}
|
2021-09-28 08:02:37 +00:00
|
|
|
:where([aria-hidden="false" i][hidden]:not(:focus)) {
|
2020-08-15 13:26:27 +00:00
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 1. Change the inconsistent appearance in all browsers (opinionated).
|
|
|
|
* 2. Add typography inheritance in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(button, input, select, textarea) {
|
2020-08-15 13:26:27 +00:00
|
|
|
background-color: transparent; /* 1 */
|
|
|
|
border: 1px solid WindowFrame; /* 1 */
|
|
|
|
color: inherit; /* 1 */
|
|
|
|
font: inherit; /* 2 */
|
|
|
|
letter-spacing: inherit; /* 2 */
|
|
|
|
padding: 0.25em 0.375em; /* 1 */
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Change the inconsistent appearance in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where(select) {
|
2020-08-15 13:26:27 +00:00
|
|
|
-webkit-appearance: none;
|
2021-09-28 08:02:37 +00:00
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em;
|
2020-08-15 13:26:27 +00:00
|
|
|
border-radius: 0;
|
|
|
|
padding-right: 1em;
|
|
|
|
}
|
2020-08-24 00:58:14 +00:00
|
|
|
/**
|
|
|
|
* Remove the border and padding in all browsers (opinionated).
|
|
|
|
*/
|
2021-09-28 08:02:37 +00:00
|
|
|
:where([type="color" i], [type="range" i]) {
|
2020-08-24 00:58:14 +00:00
|
|
|
border-width: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2018-10-19 01:23:22 +00:00
|
|
|
|
2019-12-20 02:33:57 +00:00
|
|
|
:root {
|
|
|
|
--main-bg-color: black;
|
|
|
|
--main-font-color: #e6e6e6;
|
|
|
|
--alt-bg-color: #333;
|
2020-12-06 11:42:39 +00:00
|
|
|
--link-underline: #3f72af;
|
2023-12-25 07:05:17 +00:00
|
|
|
--code-add-bg-color: #144212;
|
|
|
|
--code-del-bg-color: #600;
|
2019-12-20 02:33:57 +00:00
|
|
|
}
|
|
|
|
|
2019-08-30 17:19:30 +00:00
|
|
|
html {
|
2019-09-03 16:53:42 +00:00
|
|
|
cursor: unset;
|
2019-09-06 09:47:49 +00:00
|
|
|
height: 100%;
|
2019-08-30 17:19:30 +00:00
|
|
|
line-height: 1.15;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2019-12-20 02:33:57 +00:00
|
|
|
color: var(--main-font-color);
|
|
|
|
background: var(--main-bg-color);
|
2019-08-30 19:08:10 +00:00
|
|
|
font-family: sans-serif;
|
2020-12-05 11:42:01 +00:00
|
|
|
font-size: 1.2em;
|
2019-09-06 09:47:49 +00:00
|
|
|
/* https://stackoverflow.com/a/6654996 */
|
|
|
|
min-height: 100%;
|
2019-08-30 18:32:35 +00:00
|
|
|
line-height: 1.5;
|
2019-08-30 17:19:30 +00:00
|
|
|
}
|
|
|
|
|
2019-08-30 17:31:30 +00:00
|
|
|
/*
|
|
|
|
* Restrict sizing to the page width in all browsers (opinionated).
|
|
|
|
* sanitize/page
|
|
|
|
*/
|
|
|
|
iframe,
|
|
|
|
img,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
height: auto;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-08-30 17:19:30 +00:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2019-08-30 19:08:10 +00:00
|
|
|
font-family: serif;
|
2019-08-30 17:19:30 +00:00
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1.35;
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
|
|
|
|
2020-03-20 04:21:29 +00:00
|
|
|
/* Disable line break for site title */
|
2021-02-26 09:13:21 +00:00
|
|
|
a.site-title {
|
|
|
|
font-family: serif;
|
|
|
|
font-size: 1.5em;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1.35;
|
|
|
|
margin: 0.5em 0;
|
2020-03-20 04:21:29 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2019-08-30 17:19:30 +00:00
|
|
|
h2 {
|
|
|
|
font-size: 1.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2020-04-22 11:00:25 +00:00
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
2019-08-30 17:19:30 +00:00
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2020-12-06 11:42:39 +00:00
|
|
|
background: none;
|
|
|
|
color: var(--link-underline);
|
2019-09-06 13:09:46 +00:00
|
|
|
cursor: pointer;
|
2020-12-06 11:42:39 +00:00
|
|
|
text-decoration: none;
|
2019-08-30 17:19:30 +00:00
|
|
|
}
|
|
|
|
|
2020-12-06 11:42:39 +00:00
|
|
|
a:hover,
|
|
|
|
a:focus {
|
|
|
|
text-decoration: underline;
|
2019-08-30 17:19:30 +00:00
|
|
|
}
|
|
|
|
|
2020-12-12 09:29:20 +00:00
|
|
|
a:visited {
|
|
|
|
color: purple;
|
2020-12-06 11:42:39 +00:00
|
|
|
}
|
|
|
|
|
2020-12-12 09:29:20 +00:00
|
|
|
a:active {
|
|
|
|
color: #faa700;
|
2019-08-30 17:31:30 +00:00
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
font-size: 100%;
|
|
|
|
line-height: 1.15;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
2019-12-20 02:33:57 +00:00
|
|
|
background-image: -webkit-linear-gradient(0deg,transparent,var(--main-font-color),transparent);
|
2018-10-19 01:23:22 +00:00
|
|
|
border: none;
|
|
|
|
box-sizing: content-box;
|
2019-09-06 12:32:26 +00:00
|
|
|
height: 1px;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
margin-left: 25%;
|
2018-10-19 01:23:22 +00:00
|
|
|
overflow: visible;
|
2019-06-05 03:33:40 +00:00
|
|
|
width: 50%;
|
2019-09-06 12:32:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.archive-container hr,
|
|
|
|
.article hr {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-footer,
|
|
|
|
.article .article-footer hr {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-hr {
|
2019-12-20 02:33:57 +00:00
|
|
|
background-image: -webkit-linear-gradient(90deg,var(--main-font-color),var(--main-font-color),transparent);
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
figcaption,
|
2020-08-15 13:38:31 +00:00
|
|
|
small,
|
2020-08-17 08:42:11 +00:00
|
|
|
pre div.caption {
|
2018-11-08 01:45:46 +00:00
|
|
|
font-size: 0.9em;
|
2018-10-19 01:23:22 +00:00
|
|
|
color: #888;
|
|
|
|
}
|
|
|
|
|
2020-08-15 13:38:31 +00:00
|
|
|
/* code caption */
|
|
|
|
figcaption,
|
2020-08-17 08:42:11 +00:00
|
|
|
pre div.caption {
|
2020-05-24 05:57:44 +00:00
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
2020-08-15 13:38:31 +00:00
|
|
|
pre figcaption a,
|
2020-08-17 08:42:11 +00:00
|
|
|
pre div.caption a {
|
2020-05-24 05:57:44 +00:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
dl,
|
|
|
|
form,
|
|
|
|
hr,
|
|
|
|
ol,
|
|
|
|
p,
|
|
|
|
pre,
|
|
|
|
table,
|
|
|
|
ul,
|
2018-11-08 01:45:46 +00:00
|
|
|
blockquote {
|
2019-06-05 04:07:47 +00:00
|
|
|
margin-bottom: 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-10-17 05:26:26 +00:00
|
|
|
ul.index-list {
|
2020-12-05 11:47:57 +00:00
|
|
|
font-size: 1.1em;
|
2019-10-17 05:26:26 +00:00
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
ol {
|
2018-10-19 01:23:22 +00:00
|
|
|
list-style: decimal;
|
|
|
|
}
|
|
|
|
|
2023-04-23 10:42:28 +00:00
|
|
|
ol.toc {
|
2019-10-28 05:32:24 +00:00
|
|
|
list-style: disc;
|
2019-10-17 05:42:10 +00:00
|
|
|
}
|
|
|
|
|
2023-04-23 10:42:28 +00:00
|
|
|
ol.toc-child {
|
|
|
|
list-style: circle;
|
|
|
|
margin-bottom: unset;
|
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
li ol,
|
|
|
|
li ul,
|
|
|
|
ol,
|
|
|
|
ul {
|
2018-11-08 01:45:46 +00:00
|
|
|
margin-bottom: 0.8em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
li ul,
|
|
|
|
ul {
|
2020-02-19 07:50:26 +00:00
|
|
|
list-style: disc;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
table caption,
|
|
|
|
table td,
|
|
|
|
table th,
|
|
|
|
td,
|
|
|
|
th {
|
2018-10-19 01:23:22 +00:00
|
|
|
border: 1px solid #ddd;
|
2018-11-08 01:45:46 +00:00
|
|
|
padding: 0.5em 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
table th,
|
2020-03-06 07:32:53 +00:00
|
|
|
th,
|
|
|
|
table tr:nth-child(even),
|
|
|
|
tr:nth-child(even) {
|
2019-12-20 02:33:57 +00:00
|
|
|
background: var(--alt-bg-color);
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-08-25 13:46:17 +00:00
|
|
|
em,
|
2018-11-08 01:45:46 +00:00
|
|
|
caption,
|
|
|
|
legend {
|
2018-10-19 01:23:22 +00:00
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
code,
|
|
|
|
kbd,
|
|
|
|
pre,
|
|
|
|
samp {
|
2019-10-18 06:12:59 +00:00
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
|
2022-03-01 08:46:10 +00:00
|
|
|
kbd {
|
|
|
|
border: 1px solid var(--alt-bg-color);
|
|
|
|
border-radius: 3px;
|
|
|
|
/* https://github.com/alvaromontoro/almond.css */
|
|
|
|
padding: 0.125rem 0.25rem;
|
|
|
|
}
|
|
|
|
|
2020-08-30 09:53:08 +00:00
|
|
|
/* set bg colour of single backtick wrap */
|
|
|
|
p code {
|
|
|
|
background: var(--alt-bg-color);
|
|
|
|
}
|
|
|
|
|
2019-10-18 06:12:59 +00:00
|
|
|
/* set codeblock width to minimum */
|
|
|
|
pre {
|
2020-01-04 02:42:15 +00:00
|
|
|
border-left: 0.1em solid var(--link-underline);
|
|
|
|
padding-left: 1em;
|
2020-08-15 13:26:27 +00:00
|
|
|
max-width: -webkit-max-content;
|
|
|
|
max-width: -moz-max-content;
|
2019-11-14 02:06:15 +00:00
|
|
|
max-width: max-content;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
mark {
|
|
|
|
background: var(--alt-bg-color);
|
2020-10-21 05:57:51 +00:00
|
|
|
color: unset;
|
2020-07-30 11:29:50 +00:00
|
|
|
}
|
|
|
|
|
2019-08-09 04:25:10 +00:00
|
|
|
/* Hide post's excerpt in article */
|
|
|
|
.p-summary {
|
2019-06-26 07:49:14 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-10-19 01:23:22 +00:00
|
|
|
.main-nav-link {
|
2019-08-30 18:31:03 +00:00
|
|
|
margin-right: 0.5em;
|
|
|
|
padding-bottom: 0.5em;
|
2018-10-19 01:23:22 +00:00
|
|
|
display: inline-block;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
b,
|
|
|
|
strong {
|
2018-10-19 01:23:22 +00:00
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
2019-12-20 02:33:57 +00:00
|
|
|
background: var(--alt-bg-color);
|
2020-01-04 02:42:15 +00:00
|
|
|
border-left: 0.1em solid #666;
|
2018-10-19 01:23:22 +00:00
|
|
|
padding-left: 1em;
|
2019-11-14 02:11:14 +00:00
|
|
|
margin: 1em 3em 1em 0em;
|
2020-08-15 13:26:27 +00:00
|
|
|
max-width: -webkit-max-content;
|
|
|
|
max-width: -moz-max-content;
|
2019-11-14 02:11:14 +00:00
|
|
|
max-width: max-content;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-09-06 12:34:56 +00:00
|
|
|
.page-nav {
|
|
|
|
margin-top: 2em;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2018-10-19 01:23:22 +00:00
|
|
|
.footer {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.copyright,
|
|
|
|
.footer-content,
|
|
|
|
.footer-links {
|
2018-10-19 01:23:22 +00:00
|
|
|
text-align: center;
|
2019-06-05 03:33:40 +00:00
|
|
|
font-size: 0.95em;
|
|
|
|
max-width: 80ch;
|
|
|
|
padding: 0 2ch;
|
|
|
|
margin: auto;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.copyright li,
|
|
|
|
.footer-content li,
|
|
|
|
.footer-links li {
|
2018-10-19 01:23:22 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer-content {
|
|
|
|
margin: 0 auto;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer-links {
|
2018-11-08 01:45:46 +00:00
|
|
|
font-size: 0.9em;
|
2018-10-19 01:23:22 +00:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer-links a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer-links li {
|
2019-06-06 09:48:38 +00:00
|
|
|
margin-right: 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-10-17 05:26:26 +00:00
|
|
|
/* Wrap count in brackets */
|
|
|
|
span.index-list-count:before {
|
|
|
|
content: ' (';
|
|
|
|
}
|
|
|
|
|
|
|
|
span.index-list-count:after {
|
|
|
|
content: ')';
|
|
|
|
}
|
|
|
|
|
2020-02-19 07:50:26 +00:00
|
|
|
/* align badge in /about/ */
|
|
|
|
.about-body .article .article-entry img.svg {
|
|
|
|
/* display same line */
|
|
|
|
display: inline;
|
|
|
|
/* align to the left */
|
2019-10-17 10:16:06 +00:00
|
|
|
margin: auto 0 .5em;
|
|
|
|
}
|
|
|
|
|
2019-06-05 03:33:40 +00:00
|
|
|
/* https://jrl.ninja/etc/1/ */
|
2020-05-09 08:54:36 +00:00
|
|
|
.archive-container {
|
2018-10-19 01:23:22 +00:00
|
|
|
position: relative;
|
2019-06-05 03:33:40 +00:00
|
|
|
max-width: 80ch;
|
|
|
|
padding: 2ch;
|
|
|
|
margin: auto;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-05-09 08:54:36 +00:00
|
|
|
.archive-container article {
|
2019-06-05 03:33:40 +00:00
|
|
|
margin-bottom: 1em;
|
|
|
|
line-height: 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.archive-container a,
|
2020-05-09 08:54:36 +00:00
|
|
|
.archive-container a:hover {
|
2018-10-19 01:23:22 +00:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.archive-container .header,
|
2019-06-05 03:33:40 +00:00
|
|
|
.article .header {
|
2018-11-11 03:18:37 +00:00
|
|
|
font-size: 1.1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.archive-container .archive-article-header > a,
|
2020-05-09 08:54:36 +00:00
|
|
|
.archive-container .archive-article-header > h1 {
|
2018-10-19 01:23:22 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2020-05-09 08:54:36 +00:00
|
|
|
.archive-container .archive-article-header h1 {
|
2019-06-06 09:48:38 +00:00
|
|
|
font-size: 1.2em;
|
2018-10-19 01:23:22 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2020-05-09 08:54:36 +00:00
|
|
|
.archive-container .archive-article-date {
|
2019-06-06 09:48:38 +00:00
|
|
|
font-size: 0.8em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.archive-container .extend,
|
2020-05-09 08:54:36 +00:00
|
|
|
.archive-container .page-number {
|
2019-06-06 09:48:38 +00:00
|
|
|
margin-right: 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article {
|
2019-06-05 03:33:40 +00:00
|
|
|
max-width: 80ch;
|
|
|
|
padding: 2ch;
|
|
|
|
margin: auto;
|
2018-11-12 10:13:32 +00:00
|
|
|
position: relative;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry img {
|
|
|
|
display: block;
|
|
|
|
margin: auto;
|
2019-08-12 03:42:34 +00:00
|
|
|
margin-bottom: 0.5em;
|
2019-08-25 07:54:05 +00:00
|
|
|
max-height: 30em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry blockquote footer {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry blockquote footer cite {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry blockquote footer cite:before {
|
|
|
|
content: "—";
|
2018-11-08 01:45:46 +00:00
|
|
|
padding: 0 0.5em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry blockquote footer strong {
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.article .article-entry table caption,
|
|
|
|
.article .article-entry table td,
|
|
|
|
.article .article-entry table th,
|
|
|
|
.article .article-entry td,
|
|
|
|
.article .article-entry th {
|
2018-10-19 01:23:22 +00:00
|
|
|
word-break: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry .pullquote {
|
|
|
|
width: 45%;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry .pullquote.left {
|
|
|
|
float: left;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry .pullquote.right {
|
|
|
|
float: right;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry .video-container {
|
|
|
|
position: relative;
|
|
|
|
padding-top: 56.25%;
|
2019-08-30 18:31:03 +00:00
|
|
|
margin-bottom: 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry .video-container iframe {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-nav {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-nav-link-wrap {
|
|
|
|
display: inline-block;
|
2019-08-30 18:31:03 +00:00
|
|
|
padding: 0 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
width: 49%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
vertical-align: top;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-nav-link-wrap:hover {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-nav-link-wrap.newer {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-nav-link-wrap.older {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-meta {
|
2019-08-30 04:34:54 +00:00
|
|
|
font-size: 0.9em;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-meta .label {
|
2019-08-30 18:31:03 +00:00
|
|
|
margin-right: 0.5em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.article .article-meta .article-category,
|
|
|
|
.article .article-meta .article-tag-list {
|
2018-10-19 01:23:22 +00:00
|
|
|
display: inline-block;
|
2019-08-30 04:34:54 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-meta .article-tag-list-item {
|
|
|
|
display: inline-block;
|
2019-08-30 04:36:54 +00:00
|
|
|
margin-right: 1em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-meta .article-tag-list-item:before {
|
2018-11-08 01:45:46 +00:00
|
|
|
content: "#";
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-gallery img {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-type-page .article-footer {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-09-04 05:57:03 +00:00
|
|
|
table caption,
|
|
|
|
table td,
|
|
|
|
td {
|
2018-10-19 01:23:22 +00:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
/*
|
|
|
|
* Visual Studio 2015 dark style
|
|
|
|
* Author: Nicolas LLOBERA <nllobera@gmail.com>
|
|
|
|
* https://github.com/highlightjs/highlight.js/blob/master/src/styles/vs2015.css
|
2019-10-18 06:06:18 +00:00
|
|
|
*/
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs {
|
2019-10-18 06:06:18 +00:00
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
2020-05-06 01:13:02 +00:00
|
|
|
/* padding: 0.5em;
|
2020-07-30 11:29:50 +00:00
|
|
|
background: #1E1E1E;
|
|
|
|
color: #DCDCDC; */
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs-keyword,
|
|
|
|
.hljs-literal,
|
|
|
|
.hljs-symbol,
|
|
|
|
.hljs-name {
|
|
|
|
color: #569CD6;
|
|
|
|
}
|
2019-10-18 06:06:18 +00:00
|
|
|
.hljs-link {
|
2020-07-30 11:29:50 +00:00
|
|
|
color: #569CD6;
|
|
|
|
text-decoration: underline;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs-built_in,
|
|
|
|
.hljs-type {
|
|
|
|
color: #4EC9B0;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs-number,
|
|
|
|
.hljs-class {
|
2020-11-10 03:19:03 +00:00
|
|
|
color: #689E44;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-10-18 06:06:18 +00:00
|
|
|
.hljs-string,
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs-meta-string {
|
|
|
|
color: #D69D85;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-regexp,
|
|
|
|
.hljs-template-tag {
|
|
|
|
color: #9A5334;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-subst,
|
|
|
|
.hljs-function,
|
|
|
|
.hljs-title,
|
|
|
|
.hljs-params,
|
|
|
|
.hljs-formula {
|
2020-11-10 03:19:03 +00:00
|
|
|
color: #808080;
|
2020-07-30 11:29:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-comment,
|
|
|
|
.hljs-quote {
|
|
|
|
color: #57A64A;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-doctag {
|
|
|
|
color: #608B4E;
|
|
|
|
}
|
|
|
|
|
2019-10-18 06:06:18 +00:00
|
|
|
.hljs-meta,
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs-meta-keyword,
|
|
|
|
.hljs-tag {
|
|
|
|
color: #9B9B9B;
|
|
|
|
}
|
|
|
|
|
2019-10-18 06:06:18 +00:00
|
|
|
.hljs-variable,
|
|
|
|
.hljs-template-variable {
|
2020-07-30 11:29:50 +00:00
|
|
|
color: #BD63C5;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs-attr,
|
|
|
|
.hljs-attribute,
|
|
|
|
.hljs-builtin-name {
|
|
|
|
color: #9CDCFE;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-section {
|
|
|
|
color: gold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-emphasis {
|
|
|
|
font-style: italic;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2019-10-18 06:06:18 +00:00
|
|
|
.hljs-strong {
|
|
|
|
font-weight: bold;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
/*.hljs-code {
|
|
|
|
font-family:'Monospace';
|
|
|
|
}*/
|
|
|
|
|
|
|
|
.hljs-bullet,
|
|
|
|
.hljs-selector-tag,
|
|
|
|
.hljs-selector-id,
|
|
|
|
.hljs-selector-class,
|
|
|
|
.hljs-selector-attr,
|
|
|
|
.hljs-selector-pseudo {
|
|
|
|
color: #D7BA7D;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-30 11:29:50 +00:00
|
|
|
.hljs-addition {
|
2023-12-25 07:05:17 +00:00
|
|
|
background-color: var(--code-add-bg-color);
|
2020-07-30 11:29:50 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-deletion {
|
2023-12-25 07:05:17 +00:00
|
|
|
background-color: var(--code-del-bg-color);
|
2020-07-30 11:29:50 +00:00
|
|
|
display: inline-block;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-06 06:32:15 +00:00
|
|
|
/* hide mobile nav menu and its checkbox */
|
|
|
|
/* when it's not mobile */
|
2018-11-08 01:45:46 +00:00
|
|
|
.mobile-nav,
|
|
|
|
#mobile-menu-toggle,
|
2020-04-04 05:53:32 +00:00
|
|
|
#mobile-nav-link {
|
2018-11-08 01:45:46 +00:00
|
|
|
display: none;
|
2018-11-06 06:32:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* set line-height in /archives page */
|
2018-11-08 01:45:46 +00:00
|
|
|
.mobile-nav-menu {
|
|
|
|
line-height: 1.8;
|
2018-11-06 06:32:15 +00:00
|
|
|
}
|
|
|
|
|
2018-11-12 07:57:38 +00:00
|
|
|
/* overlap other elements */
|
2020-04-04 05:53:32 +00:00
|
|
|
#mobile-nav-link {
|
2019-12-20 02:33:57 +00:00
|
|
|
background: var(--main-bg-color);
|
|
|
|
color: var(--main-font-color);
|
2018-11-12 07:57:38 +00:00
|
|
|
border: 2px solid #999;
|
|
|
|
border-radius: 5px;
|
|
|
|
right: 0;
|
|
|
|
margin-left: 5px;
|
2019-08-30 18:31:03 +00:00
|
|
|
padding: 0.5em;
|
2018-11-12 07:57:38 +00:00
|
|
|
position: absolute;
|
2019-06-01 09:21:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mobile-nav-link-a {
|
|
|
|
text-align: center;
|
2018-11-12 07:57:38 +00:00
|
|
|
}
|
|
|
|
|
2020-04-04 05:53:32 +00:00
|
|
|
#menu-button {
|
2020-03-20 04:21:29 +00:00
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
|
2018-11-11 06:25:13 +00:00
|
|
|
/* search bar */
|
2020-03-20 05:37:09 +00:00
|
|
|
.search-container {
|
2018-11-12 00:36:36 +00:00
|
|
|
border-radius: 5px;
|
2018-11-11 06:25:13 +00:00
|
|
|
width: 10em;
|
2019-12-20 02:33:57 +00:00
|
|
|
background: var(--alt-bg-color);
|
2018-11-11 06:25:13 +00:00
|
|
|
outline: 0;
|
|
|
|
float: right;
|
|
|
|
height: 1.8em;
|
|
|
|
position: relative;
|
2019-08-30 18:33:27 +00:00
|
|
|
margin: auto;
|
2018-11-11 06:25:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block to position them in same line */
|
2020-03-20 05:37:09 +00:00
|
|
|
.search-box,
|
|
|
|
.search-button{
|
2018-11-11 06:25:13 +00:00
|
|
|
display:inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* hide the border and fill the height to parent's */
|
2020-03-20 05:37:09 +00:00
|
|
|
.search-box {
|
2018-11-11 06:25:13 +00:00
|
|
|
border: 0;
|
2018-11-12 00:36:36 +00:00
|
|
|
border-radius: 5px;
|
2019-08-30 18:40:29 +00:00
|
|
|
height:1.8em;
|
2018-11-11 06:25:13 +00:00
|
|
|
width: 85%;
|
|
|
|
padding-left: 0.2em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2019-08-30 05:05:49 +00:00
|
|
|
/*
|
|
|
|
* Override sanitize/forms
|
|
|
|
* to prevent conflict with
|
2020-03-20 05:37:09 +00:00
|
|
|
* .search-box padding-left
|
2019-08-30 05:05:49 +00:00
|
|
|
*/
|
|
|
|
input {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2018-11-11 06:25:13 +00:00
|
|
|
/* highlight the text box when focused */
|
2020-03-20 05:37:09 +00:00
|
|
|
.search-box:focus {
|
2020-01-04 02:42:15 +00:00
|
|
|
border: 1px solid var(--link-underline);
|
2018-11-11 06:25:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* align the button to center */
|
2020-03-20 05:37:09 +00:00
|
|
|
.search-button {
|
2018-11-11 06:25:13 +00:00
|
|
|
width: 10%;
|
|
|
|
position: absolute;
|
2019-08-30 18:40:29 +00:00
|
|
|
top: 45%;
|
2018-11-11 06:25:13 +00:00
|
|
|
transform: translate(30%, -50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* fill the svg with parent's font color */
|
|
|
|
svg {
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
|
2018-11-12 10:13:32 +00:00
|
|
|
/* don't underline specific <a> tag */
|
|
|
|
.no-underline {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2020-03-20 05:22:49 +00:00
|
|
|
/* fill the search, permalink and share icons with link's color */
|
|
|
|
svg#search,
|
2020-03-20 05:18:36 +00:00
|
|
|
svg#link,
|
|
|
|
svg#share {
|
2020-01-04 02:42:15 +00:00
|
|
|
fill: var(--link-underline);
|
2019-08-12 04:27:03 +00:00
|
|
|
}
|
|
|
|
|
2020-03-25 01:50:47 +00:00
|
|
|
/* use font color when hover */
|
|
|
|
svg#search:hover,
|
|
|
|
svg#link:hover,
|
|
|
|
svg#share:hover {
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
|
2020-04-22 10:38:30 +00:00
|
|
|
/* hide share button by default
|
|
|
|
unhide (via JS) if Web Share API is supported */
|
2021-11-18 08:31:04 +00:00
|
|
|
.article-title a#btnshare {
|
2021-11-18 10:25:41 +00:00
|
|
|
display: none;
|
2021-11-30 08:18:07 +00:00
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
2020-04-22 10:38:30 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 08:31:04 +00:00
|
|
|
.article-title a#btnshare img {
|
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
max-height: 30em;
|
2020-03-20 05:18:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.article .article-entry a.headerlink,
|
2021-11-18 08:31:04 +00:00
|
|
|
.article-title a#btnshare {
|
2020-03-20 05:18:36 +00:00
|
|
|
margin-left: 0.5em;
|
2021-11-18 10:32:54 +00:00
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
@media (max-width: 768px) {
|
2018-10-19 01:23:22 +00:00
|
|
|
.article-title {
|
|
|
|
font-size: 1.8rem;
|
|
|
|
}
|
|
|
|
|
2018-11-06 06:32:15 +00:00
|
|
|
/* hide desktop nav */
|
2018-11-08 01:45:46 +00:00
|
|
|
.main-nav {
|
|
|
|
display: none;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-06 06:32:15 +00:00
|
|
|
/* display mobile nav */
|
2018-11-08 01:45:46 +00:00
|
|
|
.mobile-nav {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2020-03-20 04:21:29 +00:00
|
|
|
/* reduce height of mobile header */
|
|
|
|
height: 1.5em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
|
2018-11-06 06:32:15 +00:00
|
|
|
/* display links when menu button is clicked */
|
|
|
|
/* use grid to display each link in new line */
|
2020-04-04 05:53:32 +00:00
|
|
|
#mobile-menu-toggle:checked + #mobile-nav-link {
|
2018-11-07 00:22:08 +00:00
|
|
|
display: grid;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
@media (max-width: 468px) {
|
|
|
|
.archive-container .archive-footer,
|
|
|
|
.archive-container .post-footer {
|
2018-10-19 01:23:22 +00:00
|
|
|
padding: 1em;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.archive-container .archive-article-header > a,
|
|
|
|
.archive-container .archive-article-header > h1 {
|
2018-10-19 01:23:22 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
@media (max-width: 320px) {
|
2018-10-19 01:23:22 +00:00
|
|
|
.article {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.archive-container .archive-footer,
|
|
|
|
.archive-container .post-footer {
|
2018-10-19 01:23:22 +00:00
|
|
|
padding: 1em;
|
|
|
|
}
|
|
|
|
|
2018-11-08 01:45:46 +00:00
|
|
|
.footer,
|
|
|
|
.footer-content {
|
|
|
|
font-size: 0.9em;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-30 03:51:59 +00:00
|
|
|
.copy-button {
|
2018-10-19 11:31:19 +00:00
|
|
|
border: 1px solid #999;
|
|
|
|
border-radius: 5px;
|
2019-09-06 13:09:46 +00:00
|
|
|
cursor: pointer;
|
2018-11-08 01:45:46 +00:00
|
|
|
font-size: 0.8em;
|
2018-10-19 11:31:19 +00:00
|
|
|
line-height: 1em;
|
2020-05-24 05:57:44 +00:00
|
|
|
margin-top: 1em;
|
2018-10-19 11:31:19 +00:00
|
|
|
padding: 5px;
|
2020-08-15 13:26:27 +00:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2018-10-19 01:23:22 +00:00
|
|
|
}
|
2018-10-20 08:34:52 +00:00
|
|
|
|
|
|
|
.copy-button:hover {
|
2020-01-04 02:42:15 +00:00
|
|
|
background: var(--main-font-color);
|
|
|
|
color: var(--main-bg-color);
|
2019-09-06 06:20:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
2019-12-20 02:33:57 +00:00
|
|
|
:root {
|
|
|
|
--main-bg-color: black;
|
|
|
|
--main-font-color: #e6e6e6;
|
|
|
|
--alt-bg-color: #333;
|
2023-12-25 07:05:17 +00:00
|
|
|
--code-add-bg-color: #144212;
|
|
|
|
--code-del-bg-color: #600;
|
2019-09-06 06:20:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: light) {
|
2019-12-20 02:33:57 +00:00
|
|
|
:root {
|
|
|
|
--main-bg-color: #f1f1f1;
|
|
|
|
--main-font-color: #333;
|
|
|
|
--alt-bg-color: #d8d8d8;
|
2023-12-25 07:05:17 +00:00
|
|
|
--code-add-bg-color: #e6ffec;
|
|
|
|
--code-del-bg-color: #ffebe9;
|
2019-10-17 11:10:01 +00:00
|
|
|
}
|
2020-07-30 11:29:50 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Visual Studio-like style based on original C# coloring
|
|
|
|
* Author: Jason Diamond <jason@diamond.name>
|
|
|
|
* https://github.com/highlightjs/highlight.js/blob/master/src/styles/vs.css
|
|
|
|
*/
|
|
|
|
|
|
|
|
.hljs {
|
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
/* padding: 0.5em;
|
|
|
|
background: white;
|
|
|
|
color: black; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-comment,
|
|
|
|
.hljs-quote,
|
|
|
|
.hljs-variable {
|
|
|
|
color: #008000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-keyword,
|
|
|
|
.hljs-selector-tag,
|
|
|
|
.hljs-built_in,
|
|
|
|
.hljs-name,
|
|
|
|
.hljs-tag {
|
|
|
|
color: #00f;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-string,
|
|
|
|
.hljs-title,
|
|
|
|
.hljs-section,
|
|
|
|
.hljs-attribute,
|
|
|
|
.hljs-literal,
|
|
|
|
.hljs-template-tag,
|
|
|
|
.hljs-template-variable,
|
2023-12-25 07:05:17 +00:00
|
|
|
.hljs-type {
|
2020-07-30 11:29:50 +00:00
|
|
|
color: #a31515;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-selector-attr,
|
|
|
|
.hljs-selector-pseudo,
|
|
|
|
.hljs-meta {
|
|
|
|
color: #2b91af;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-doctag {
|
|
|
|
color: #808080;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-attr {
|
|
|
|
color: #f00;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-symbol,
|
|
|
|
.hljs-bullet,
|
|
|
|
.hljs-link {
|
|
|
|
color: #00b0e8;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hljs-emphasis {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-strong {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2018-11-06 06:32:15 +00:00
|
|
|
}
|