summaryrefslogtreecommitdiff
path: root/sass/_article.scss
diff options
context:
space:
mode:
authortanaka takashi <isazaka@gmail.com>2026-08-22 00:18:56 +0900
committertanaka takashi <isazaka@gmail.com>2026-08-22 00:19:26 +0900
commit9f2fb3bda733c32995c008bd0f40365e43c348da (patch)
tree663a6b48ec83b2b6ba2c998dcfed89e0bb29f172 /sass/_article.scss
parent31b19ee74469c23633bbea4e021d91ddd8c34e3a (diff)
feat: Zolaで「たかしの記録」を構築
Specifications.mdとDesign.mdを実装の基準として、個人アーカイブサイトをZola 0.23.3向けに構築する。 - Home、Notes、Software、About、Tagsの情報設計と専用URLを追加 - Notesの年別アーカイブ、タグ分類、目次、脚注、参考文献、更新日表示を実装 - Softwareの一覧・詳細、cgit/GitHub情報、Notesとの明示的な相互参照を実装 - Tera 2 componentによる再帰TOCと共通partialsを追加 - Minimal Editorial ArchiveのSCSS、レスポンシブ表示、アクセシビリティ対応を追加 - OS設定とlocalStorageに対応するLight/Darkテーマ切替を外部JavaScriptで実装 - Atom/RSS、sitemap、robots.txt、404、favicon、syntax highlightingを設定 - メールアドレスをzola.tomlへ一元化し、AboutとFooterから参照 - 表示名・内部ディレクトリ・変数・URLをSoftware/softwareへ統一 - public/をGit管理対象外とし、外部CDNやNode.js依存を導入しない - zola checkおよびzola buildの成功を確認
Diffstat (limited to 'sass/_article.scss')
-rw-r--r--sass/_article.scss159
1 files changed, 159 insertions, 0 deletions
diff --git a/sass/_article.scss b/sass/_article.scss
new file mode 100644
index 0000000..91a0ac4
--- /dev/null
+++ b/sass/_article.scss
@@ -0,0 +1,159 @@
+.article-header {
+ margin-bottom: 2.5rem;
+}
+
+.article-header h1 {
+ margin-block: 0.7rem 1.25rem;
+}
+
+.article-dates {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem 1.5rem;
+ margin-bottom: 1.5rem;
+ color: var(--color-muted);
+ font-size: 0.78rem;
+}
+
+.article-dates div {
+ display: flex;
+ gap: 0.65rem;
+}
+
+.toc {
+ margin-bottom: 3.5rem;
+ padding: 1.25rem 1.5rem;
+ border-block: var(--rule);
+ background: var(--color-surface);
+}
+
+.toc h2 {
+ margin-bottom: 0.6rem;
+ font-size: 0.95rem;
+}
+
+.toc ul {
+ padding-left: 1.2rem;
+}
+
+.toc > ul {
+ padding-left: 0;
+ list-style: none;
+}
+
+.toc li + li {
+ margin-top: 0.25rem;
+}
+
+.toc a {
+ font-size: 0.9rem;
+}
+
+.prose {
+ font-size: 1.03rem;
+}
+
+.prose > * + * {
+ margin-top: 1.45em;
+}
+
+.prose h2,
+.prose h3 {
+ scroll-margin-top: 2rem;
+}
+
+.prose h2 {
+ margin-top: 3.2em;
+ padding-top: 0.8em;
+ border-top: var(--rule);
+}
+
+.prose h3 {
+ margin-top: 2.3em;
+}
+
+.prose .zola-anchor {
+ color: inherit;
+ text-decoration: none;
+}
+
+.prose ul,
+.prose ol {
+ padding-left: 1.5rem;
+}
+
+.prose li + li {
+ margin-top: 0.35rem;
+}
+
+.prose blockquote {
+ padding-left: 1.25rem;
+ border-left: 3px solid var(--color-border);
+ color: var(--color-muted);
+}
+
+.prose table {
+ display: block;
+ width: max-content;
+ max-width: 100%;
+ overflow-x: auto;
+ border-collapse: collapse;
+}
+
+.prose th,
+.prose td {
+ padding: 0.5rem 0.75rem;
+ border: var(--rule);
+ text-align: left;
+}
+
+.prose figure,
+.prose img {
+ margin-inline: auto;
+}
+
+.prose img {
+ height: auto;
+ border: var(--rule);
+}
+
+.footnote-definition,
+[role="doc-endnotes"] {
+ color: var(--color-muted);
+ font-size: 0.9rem;
+}
+
+.footnote-definition {
+ display: grid;
+ grid-template-columns: auto 1fr;
+ gap: 0.5rem;
+}
+
+.footnote-definition p {
+ margin: 0;
+}
+
+.related-content {
+ margin-top: 4rem;
+ padding-top: 1.5rem;
+ border-top: var(--rule);
+}
+
+.related-content h2 {
+ margin-bottom: 1rem;
+ font-size: 1.1rem;
+}
+
+.related-content ul {
+ list-style: none;
+}
+
+.related-content li + li {
+ margin-top: 0.75rem;
+}
+
+.related-content span {
+ display: block;
+ color: var(--color-muted);
+ font-size: 0.9rem;
+}