aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/nuldoc/static/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'services/nuldoc/static/style.css')
-rw-r--r--services/nuldoc/static/style.css423
1 files changed, 423 insertions, 0 deletions
diff --git a/services/nuldoc/static/style.css b/services/nuldoc/static/style.css
new file mode 100644
index 0000000..3ce6f23
--- /dev/null
+++ b/services/nuldoc/static/style.css
@@ -0,0 +1,423 @@
+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;
+}
+
+a:hover {
+ color: #666;
+}
+
+a.url {
+ word-break: break-all;
+}
+
+.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;
+}
+
+.entry-tags {
+ display: block;
+ list-style: none;
+ padding: 0;
+ margin: 0.5rem 0 0;
+}
+
+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: center;
+ align-items: center;
+ gap: 1rem;
+ margin: 2rem 0;
+ padding: 1rem 0;
+ border-top: 1px solid #d1d1d1;
+ border-bottom: 1px solid #d1d1d1;
+}
+
+.pagination-page {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border: 1px solid #ddd;
+ text-align: center;
+ box-sizing: border-box;
+}
+
+.pagination a {
+ color: #000;
+ background: #fff;
+ text-decoration: none;
+ border: none;
+}
+
+.pagination-page a,
+.pagination-page span {
+ display: block;
+ padding: 0.5rem 1rem;
+ width: 100%;
+ height: 100%;
+}
+
+.pagination-page-current {
+ background: #000;
+ color: #fff;
+}
+
+.pagination-elipsis {
+ color: #999;
+}
+
+@media screen and (max-width: 768px) {
+ .pagination {
+ font-size: 0.8rem;
+ gap: 0.5rem;
+ margin: 1rem 0;
+ padding: 0.5rem;
+ }
+
+ .pagination-page a,
+ .pagination-page span {
+ padding: 0.4rem 0.6rem;
+ min-width: 0;
+ }
+}
+
+/* Table of Contents */
+.toc {
+ background-color: #f5f5f5;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ padding: 1.5rem;
+ margin: 2rem 0;
+}
+
+.toc h2 {
+ font-size: 1.2rem;
+ margin: 0 0 1rem 0;
+}
+
+.toc ul {
+ list-style: none;
+ padding-left: 0;
+ margin: 0;
+}
+
+.toc ul ul {
+ padding-left: 1.5rem;
+ margin-top: 0.25rem;
+}
+
+.toc li {
+ margin: 0.25rem 0;
+}
+
+.toc a {
+ color: #333;
+ text-decoration: none;
+ border-bottom: 1px dotted #999;
+}
+
+.toc a:hover {
+ color: #000;
+ border-bottom-color: #000;
+}