diff options
Diffstat (limited to 'services/blog/public/style.css')
| -rw-r--r-- | services/blog/public/style.css | 365 |
1 files changed, 365 insertions, 0 deletions
diff --git a/services/blog/public/style.css b/services/blog/public/style.css new file mode 100644 index 00000000..fda139d7 --- /dev/null +++ b/services/blog/public/style.css @@ -0,0 +1,365 @@ +html { + box-sizing: border-box; +} + +*, *:before, *:after { + box-sizing: inherit; +} + +body { + font-family: 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif; + color: #000; + background-color: #fff; + line-height: 1.8; + height: 100vh; + margin: 0; + padding: 0; + display: flex; + flex-direction: column; + justify-content: space-between; +} + +header.header { + display: flex; + flex-direction: column; + align-items: center; + padding: 1rem 15%; + background-color: #000; +} + +main { + max-width: 800px; + margin: 2rem auto; + flex-grow: 1; +} + +body > footer { + padding: 1rem 20%; + text-align: center; + background-color: #000; + color: #fff; +} + +.site-logo { + font-size: 1.5rem; + font-weight: bold; +} + +.site-logo a { + border: none; + color: #fff; +} + +nav { + padding: 0; + margin: 0.5rem 0 0; + width: 100%; +} + +nav ul { + list-style-type: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: row; + justify-content: center; +} + +nav ul li { + text-transform: uppercase; + font-size: 1.1rem; + margin: 0 1rem; + display: flex; + align-items: center; +} + +nav ul li a { + border: none; + color: #fff; +} + +h1, h2, h3, h4, h5, h6 { + font-weight: bold; +} + +p { + font-size: 1rem; + line-height: 1.8; + margin-bottom: 1.2rem; +} + +a { + text-decoration: none; + color: #000; + border-bottom: 1px solid #000; + word-break: break-all; +} + +a:hover { + color: #666; +} + +.codeblock { + background-color: #f5f5f5; + position: relative; + margin: 1rem 0; + border-radius: 3px; + overflow: hidden; + tab-size: 4; +} + +.codeblock .filename { + background-color: #e0e0e0; + color: #333; + font-family: Monaco, Consolas, 'Courier New', Courier, monospace; + font-size: 0.9rem; + padding: 0.5rem 1rem; + border-bottom: 1px solid #ccc; +} + +pre { + background-color: #f5f5f5; + padding: 1rem; + margin: 0; + overflow-x: auto; + font-family: Monaco, Consolas, 'Courier New', Courier, monospace; + font-size: 0.9rem; +} + +blockquote { + background-color: #f5f5f5; + border-left: 5px solid #555; + padding: 1rem; + margin: 1rem 0; +} + +.tag { + display: inline-block; + padding: 3px 8px; + font-size: 0.9rem; + margin-right: 5px; + margin-bottom: 5px; + border: 1px solid #000; +} + +.tag a { + border: none; +} + +code { + background-color: #f5f5f5; + padding: 2px 5px; + font-family: Monaco, Consolas, 'Courier New', Courier, monospace; + font-size: 0.9rem; +} + +.shiki code { + background-color: unset; + padding: 0; +} + +/* https://github.com/shikijs/shiki/issues/3 */ +.shiki code { + counter-reset: codeblock-line-number; + counter-increment: codeblock-line-number 0; +} + +.numbered .shiki code .line::before { + content: counter(codeblock-line-number); + counter-increment: codeblock-line-number; + width: 2rem; + margin-right: 1.5rem; + display: inline-block; + text-align: right; + color: #777; +} + +li.revision { + list-style: inside; +} + +h1 { + font-size: 2.2rem; +} + +.post-content h2, +.post-content h3, +.post-content h4, +.post-content h5, +.post-content h6 { + border-bottom: 1px solid #555; + margin-bottom: 1.2rem; +} + +.post-content h2 a, +.post-content h3 a, +.post-content h4 a, +.post-content h5 a, +.post-content h6 a { + border: none; +} + +.post-content h2:before { + content: "#"; + padding-right: 0.3rem; + color: #555; + font-weight: bold; +} + +.post-content h3:before { + content: "##"; + padding-right: 0.3rem; + color: #555; + font-weight: bold; +} + +.post-content h4:before { + content: "###"; + padding-right: 0.3rem; + color: #555; + font-weight: bold; +} + +.post-content h5:before { + content: "####"; + padding-right: 0.3rem; + color: #555; + font-weight: bold; +} + +.post-content h6:before { + content: "#####"; + padding-right: 0.3rem; + color: #555; + font-weight: bold; +} + +.post-entry { + min-width: calc(min(800px, 100vw - 4rem)); + padding: 1.5rem; + margin: 2rem 0; + border: 2px solid #000; +} + +.post-entry header { + border: none; +} + +.post-entry header h2 { + margin: 0; +} + +.post-entry section { + color: #666; +} + +.post-entry footer { + padding: 0; + text-align: left; + color: #666; +} + +.admonition { + background-color: #f5f5f5; + border: 1px solid #d1d1d1; + padding: 1rem 1.5rem; + margin: 1rem 0; +} + +.admonition-label { + font-weight: bold; + color: #333; + margin-right: 1rem; +} + +.admonition-content { + font-size: 1rem; +} + +img { + max-width: 100%; + height: auto; +} + +.not-found { + font-size: 8rem; + font-weight: bold; +} + +@media screen and (max-width: 768px) { + main { + padding: 0 1rem; + margin: 2rem 1rem; + } +} + +@media screen and (max-width: 768px) { + header.header { + padding: 1rem 0; + } + + nav ul { + display: none; + } +} + +.my-icon { + display: flex; + justify-content: center; + align-items: center; +} + +.footnotes { + border-top: 1px solid #000; +} + +.pagination { + display: flex; + justify-content: space-between; + align-items: center; + margin: 2rem 0; + padding: 1rem 0; + border-top: 1px solid #d1d1d1; + border-bottom: 1px solid #d1d1d1; +} + +.pagination-prev, +.pagination-next { + flex: 1; +} + +.pagination-prev { + text-align: left; +} + +.pagination-next { + text-align: right; +} + +.pagination-info { + flex: 0 0 auto; + text-align: center; + color: #000; + font-size: 0.9rem; +} + +.pagination a { + text-decoration: none; + color: #000; + padding: 0.5rem 1rem; + border: none; +} + +.pagination a:hover { + color: #666; +} + +@media screen and (max-width: 768px) { + .pagination { + font-size: 0.9rem; + } + + .pagination a { + padding: 0.5rem; + } +} |
