diff --git a/assets/css/custom.css b/assets/css/custom.css index 9366e48..9e2261e 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -50,90 +50,3 @@ code { justify-content: center; } } - -.option-lang { - background-color: black; -} - -.markdown-alert { - padding: 0.5rem 1rem; - margin: 1rem 0; - border-left: 0.25em solid; - background-color: transparent; -} - -.markdown-alert > :first-child { - margin-top: 0; -} - -.markdown-alert > :last-child { - margin-bottom: 0; -} - -.markdown-alert-title { - display: flex; - align-items: center; - gap: 0.35rem; - font-weight: 600; - margin-bottom: 0.5rem; -} - -.markdown-alert-icon { - fill: currentColor; - flex-shrink: 0; -} - -.markdown-alert-note { - border-left-color: #0969da; -} - -.markdown-alert-note .markdown-alert-title { - color: #0969da; -} - -.markdown-alert-tip { - border-left-color: #1a7f37; -} - -.markdown-alert-tip .markdown-alert-title { - color: #1a7f37; -} - -.markdown-alert-important { - border-left-color: #8250df; -} - -.markdown-alert-important .markdown-alert-title { - color: #8250df; -} - -.markdown-alert-warning { - border-left-color: #9a6700; -} - -.markdown-alert-warning .markdown-alert-title { - color: #9a6700; -} - -.markdown-alert-caution { - border-left-color: #cf222e; -} - -.markdown-alert-caution .markdown-alert-title { - color: #cf222e; -} - -.toc { - padding: 1rem; - margin: 1rem 0 2rem; - border-left: 0.25rem solid #30363d; - background: rgba(110, 118, 129, 0.1); -} - -.toc ul { - margin-bottom: 0; -} - -.toc a { - text-decoration: none; -} diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..4cff69e --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1,484 @@ +/* + * Use GitHub Dark Theme combined with Jekyll Theme Hacker + */ + +body { + margin: 0; + padding: 0; + background-color: #0d1117; + color: #f0f6fc; + font-size: 16px; + line-height: 1.5; + font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace +} + +.container { + width: 90%; + max-width: 1000px; + margin: 0 auto +} + +section { + display: block; + margin: 0 0 20px 0 +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 0 0 20px +} + +li { + line-height: 1.4 +} + +header { + background: rgba(0, 0, 0, 0.3); + width: 100%; + border-bottom: 1px dashed #b5e853; + padding: 20px 0; + margin: 0 0 40px 0 +} + +header h1 { + font-size: 30px; + line-height: 1.5; + margin: 0 0 0 -40px; + font-weight: bold; + font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; + color: #b5e853; + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(181, 232, 83, 0.1), 0 0 10px rgba(181, 232, 83, 0.1); + letter-spacing: -1px; + -webkit-font-smoothing: antialiased +} + +@media (max-width: 1000px) { + header h1 { + margin-left: 0 + } +} + +header h1:before { + content: "./ "; + font-size: 24px +} + +header h2 { + font-size: 18px; + font-weight: 300; + color: #666 +} + +#downloads .btn { + display: inline-block; + text-align: center; + margin: 0 +} + +#main_content { + width: 100%; + -webkit-font-smoothing: antialiased +} + +section img { + max-width: 100% +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-weight: normal; + font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; + color: #b5e853; + letter-spacing: -0.03em; + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(181, 232, 83, 0.1), 0 0 10px rgba(181, 232, 83, 0.1) +} + +#main_content h1, h2, h3, h4, h5, h6 { + font-weight: bold; +} + +#main_content h1 { + font-size: 30px; + border-bottom: 1px solid #3d444db3; + padding-bottom: .3em; +} + +#main_content h2 { + font-size: 24px; + border-bottom: 1px solid #3d444db3; + padding-bottom: .3em; +} + +#main_content h3 { + font-size: 18px +} + +#main_content h4 { + font-size: 14px +} + +#main_content h5 { + font-size: 12px; + text-transform: uppercase; + margin: 0 0 5px 0 +} + +#main_content h6 { + font-size: 12px; + text-transform: uppercase; + color: #999; + margin: 0 0 5px 0 +} + +dt { + font-style: italic; + font-weight: bold +} + +ul li { + list-style-image: url("../images/bullet.png") +} + +blockquote { + color: #9198a1; + padding: 0 1em; + border-left: .25em solid #3d444d; +} + +/* code block */ +pre { + background: #151b23; + padding: 10px; + font-size: 16px; + color: #b5e853; + border-radius: 3px; + word-wrap: normal; + overflow: auto; + overflow-y: hidden; +} + +/* inline code */ +code.highlighter-rouge { + font-size: 95%; + white-space: break-spaces; + background: #656c7633; + border: 1px solid rgba(255, 255, 255, 0.15); + padding: 0px 3px; + margin: 0; + border-radius: 6px; +} + +table { + width: 100%; + margin: 0 0 20px 0 +} + +th { + text-align: left; + border-bottom: 1px dashed #b5e853; + padding: 5px 10px +} + +td { + padding: 5px 10px +} + +hr { + height: 0; + border: 0; + border-bottom: 1px dashed #b5e853; + color: #b5e853 +} + +.btn { + display: inline-block; + background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.3), rgba(35, 35, 35, 0.3) 50%, rgba(10, 10, 10, 0.3) 50%, rgba(0, 0, 0, 0.3)); + padding: 8px 18px; + border-radius: 50px; + border: 2px solid rgba(0, 0, 0, 0.7); + border-bottom: 2px solid rgba(0, 0, 0, 0.7); + border-top: 2px solid #000; + color: rgba(255, 255, 255, 0.8); + font-family: Helvetica, Arial, sans-serif; + font-weight: bold; + font-size: 13px; + text-decoration: none; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) +} + +.btn:hover { + background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.6), rgba(35, 35, 35, 0.6) 50%, rgba(10, 10, 10, 0.8) 50%, rgba(0, 0, 0, 0.8)) +} + +.btn .icon { + display: inline-block; + width: 16px; + height: 16px; + margin: 1px 8px 0 0; + float: left +} + +.btn-github .icon { + opacity: 0.6; + background: url("../images/blacktocat.png") 0 0 no-repeat +} + +/* href */ +a { + color: #4493f8; + text-shadow: 0 0 5px rgba(80, 155, 255, 0.5); +} + +.cf:before, +.cf:after { + content: ""; + display: table +} + +.cf:after { + clear: both +} + +.cf { + zoom: 1 +} + +#a-title { + text-decoration: none +} + +/* + * Code highlighting in code block + */ + +.highlight { + color: #f0f6fc +} + +.highlight table td { + padding: 5px +} + +.highlight table pre { + margin: 0 +} + +.highlight .w { + color: #f0f6fc +} + +.highlight .err { + color: #151515; + background-color: #ed1b1d +} + +/* comment */ +.highlight .c, +.highlight .cd, +.highlight .cm, +.highlight .c1, +.highlight .cs { + color: #9198a1 +} + +/* preprocessor */ +.highlight .cp { + color: #ffa930 +} + +/* operator */ +.highlight .o, +.highlight .ow { + color: #ff7b72 +} + +/* plaintext */ +.highlight .p, +.highlight .pi { + color: #f0f6fc +} + +/* generic inserted */ +.highlight .gi { + color: #60d673 +} + +/* generic deleted */ +.highlight .gd { + color: #ff5a59 +} + +/* generic header */ +.highlight .gh { + color: #d2a8ff; + font-weight: bold +} + +/* keyword */ +.highlight .k, +.highlight .kn, +.highlight .kp, +.highlight .kr, +.highlight .kv { + color: #ff7b72 +} + +/* keyword type */ +.highlight .kc, +.highlight .kt, +.highlight .kd { + color: #ff7b72 +} + +/* string */ +.highlight .s, +.highlight .sb, +.highlight .sc, +.highlight .sd, +.highlight .s2, +.highlight .sh, +.highlight .sx, +.highlight .s1 { + color: #a5d6ff +} + +/* regex */ +.highlight .sr { + color: #99F2e3 +} + +/* string escape */ +.highlight .si, +.highlight .se { + color: #ff7b72 +} + +/* namespace / class name / ... */ +.highlight .highlight .nn, +.highlight .nc, +.highlight .no { + color: #d2a8ff +} + +/* label tag */ +.highlight .nt { + color: #7ee787 +} + +/* label attribute */ +.highlight .na { + color: #79c0ff +} + +/* literal */ +.highlight .m, +.highlight .mf, +.highlight .mh, +.highlight .mi, +.highlight .il, +.highlight .mo, +.highlight .mb, +.highlight .mx { + color: #79c0ff +} + +/* symbol / atom */ +.highlight .ss { + color: #a5d6ff +} + +.option-lang { + background-color: black; +} + +.markdown-alert { + padding: 0.5rem 1rem; + margin: 1rem 0; + border-left: 0.25em solid; + background-color: transparent; +} + +.markdown-alert > :first-child { + margin-top: 0; +} + +.markdown-alert > :last-child { + margin-bottom: 0; +} + +.markdown-alert-title { + display: flex; + align-items: center; + gap: 0.35rem; + font-weight: 600; + margin-bottom: 0.5rem; +} + +.markdown-alert-icon { + fill: currentColor; + flex-shrink: 0; +} + +.markdown-alert-note { + border-left-color: #0969da; +} + +.markdown-alert-note .markdown-alert-title { + color: #0969da; +} + +.markdown-alert-tip { + border-left-color: #1a7f37; +} + +.markdown-alert-tip .markdown-alert-title { + color: #1a7f37; +} + +.markdown-alert-important { + border-left-color: #8250df; +} + +.markdown-alert-important .markdown-alert-title { + color: #8250df; +} + +.markdown-alert-warning { + border-left-color: #9a6700; +} + +.markdown-alert-warning .markdown-alert-title { + color: #9a6700; +} + +.markdown-alert-caution { + border-left-color: #cf222e; +} + +.markdown-alert-caution .markdown-alert-title { + color: #cf222e; +} + +.toc { + padding: 1rem; + margin: 1rem 0 2rem; + border-left: 0.25rem solid #30363d; + background: rgba(110, 118, 129, 0.1); +} + +.toc ul { + margin-bottom: 0; +} + +.toc a { + text-decoration: none; +}