Created
December 4, 2022 14:34
-
-
Save kaave/cc5b265ce58909bec982b8eaf700fd8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--height-header: 10rem; | |
--width-left: 20rem; | |
--color-fg: #24292f; | |
--color-canvas-sub: #f6f8fa; | |
--color-code: #cf222e; | |
} | |
html { | |
font-size: 62.5%; | |
font-family: sans-serif; | |
} | |
body, | |
p, | |
td { | |
font-size: 1.6rem; | |
line-height: 1.33; | |
color: var(--color-fg); | |
} | |
p { | |
font-size: 1.8rem; | |
} | |
h1, | |
h2, | |
h3, | |
h4 { | |
color: currentColor; | |
margin-top: 4em; | |
} | |
h1 { | |
font-size: 2.4rem | |
} | |
h2 { | |
font-size: 2.2rem; | |
} | |
h3 { | |
position: relative; | |
margin-top: 5em; | |
font-size: 2rem; | |
color: currentColor; | |
} | |
h3::before { | |
content: ''; | |
position: absolute; | |
top: -1em; | |
left: 0; | |
width: 2em; | |
height: 1px; | |
background: currentColor; | |
} | |
h4 { | |
margin-top: 2em; | |
font-size: 1.8rem; | |
color: currentColor; | |
} | |
h5 { | |
font-size: 1.6rem; | |
} | |
h6 { | |
font-size: 1.6rem; | |
} | |
a { | |
font-size: 1em; | |
color: currentColor !important; | |
text-decoration: underline; | |
font-weight: 400; | |
} | |
a:hover, | |
a:active { | |
text-decoration: none; | |
background: transparent; | |
} | |
#content { | |
margin: auto; | |
width: 640px; | |
} | |
#content p { | |
line-height: 1.5; | |
} | |
#content td { | |
text-indent: 0; | |
} | |
#content td:first-of-type { | |
padding-left: 0; | |
} | |
#content td:nth-of-type(2):last-of-type { | |
position: absolute; | |
} | |
#content > img { | |
width: 100%; | |
} | |
#content ul { | |
padding-left: 1.5em; | |
} | |
#content li + li { | |
margin-top: 0.5em; | |
} | |
#content .quote { | |
position: relative; | |
background: transparent; | |
} | |
#content .quote::before { | |
position: absolute; | |
display: block; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
width: 4px; | |
content: ''; | |
background: currentColor; | |
} | |
#content .note { | |
font-size: 1.4rem; | |
padding-left: 0; | |
color: currentColor; | |
} | |
#content img { | |
box-sizing: border-box; | |
margin-left: auto !important; | |
margin-right: auto !important; | |
} | |
#content img + br + .note { | |
display: block; | |
text-align: center; | |
background: var(--color-canvas-sub); | |
} | |
#content img + br + .note + br { | |
display: none; | |
} | |
#content .codeblock { | |
position: relative; | |
font-family: monospace; | |
margin-bottom: 3em; | |
padding: 1em 0; | |
white-space: pre-wrap; | |
word-break: break-all; | |
background: var(--color-canvas-sub); | |
} | |
#content .codeblock > br:last-of-type { | |
display: none; | |
} | |
#content .codeblock > .note { | |
position: absolute; | |
display: block; | |
bottom: -3em; | |
font-style: italic; | |
width: 100%; | |
font-size: 1.1rem; | |
} | |
#content .code { | |
font-family: monospace; | |
background: var(--color-canvas-sub); | |
color: var(--color-code); | |
padding-left: 0.5em; | |
padding-right: 0.5em; | |
} | |
.figure-caption, | |
.figure-details { | |
display: block; | |
padding: 0; | |
font-size: 1.4rem; | |
color: currentColor; | |
text-align: center; | |
background: var(--color-canvas-sub); | |
} | |
.figure-caption { | |
padding-top: 8px; | |
} | |
.figure-caption br, | |
.figure-details br { | |
display: none; | |
} | |
.footnote { | |
font-size: 0.8em; | |
color: currentColor; | |
margin-left: 0.5em; | |
font-style: italic; | |
} | |
#content hr { | |
margin: 4em auto 2em; | |
padding: 0; | |
border: 0; | |
height: 1px; | |
background: currentColor; | |
} | |
#content hr + hr { | |
display: none; | |
} | |
/* | |
* breadcrumbs | |
*/ | |
#breadcrumbs { | |
width: auto; | |
} | |
/* | |
* topbar | |
*/ | |
#topbar { | |
height: var(--height-header); | |
} | |
#sitename { | |
width: auto; | |
font-size: 1rem; | |
} | |
#topbar .logo { | |
width: auto; | |
background: transparent; | |
line-height: 1; | |
color: currentColor; | |
} | |
/* | |
* #sidebarleft | |
*/ | |
#sidebarleft { | |
position: fixed; | |
top: var(--height-header); | |
width: var(--width-left); | |
height: calc(100vh - var(--height-header)); | |
overflow-y: auto; | |
background: var(--color-canvas-sub); | |
} | |
.sidebarleft-block { | |
background: transparent; | |
border: 0; | |
} | |
.sidebarleft-block + .sidebarleft-block { | |
border-top: 1px solid currentColor; | |
} | |
.sidebarleft-block tr + tr td { | |
padding-top: 0.5em; | |
} | |
.sidebarleft-block td { | |
text-indent: 0; | |
padding: 0; | |
font-size: 1.4rem; | |
font-weight: 400; | |
} | |
.sidebarleft-block a { | |
font-weight: 400; | |
text-decoration: none; | |
} | |
.sidebarleft-block a:hover, | |
.sidebarleft-block a:active { | |
text-decoration: underline; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment