Commit 2927c264f4
Verified · cmc
Layout: unified · split
theme/static/styles.css +7 −7
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | --w-regular: 400; --w-medium: 500; --w-semi: 600; --w-heading: 650; --w-bold: 700; | 22 | --w-regular: 400; --w-medium: 500; --w-semi: 600; --w-heading: 650; --w-bold: 700; |
| 23 | 23 | ||
| 24 | --r-xs: 6px; --r-sm: 16px; --r-md: 20px; --r-lg: 30px; --r-icon: 22%; --r-pill: 999px; --r-device: 54px; | 24 | --r-xs: 4px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-icon: 22%; --r-pill: 999px; --r-device: 54px; |
| 25 | --ease-out: cubic-bezier(.2, .7, .2, 1); | 25 | --ease-out: cubic-bezier(.2, .7, .2, 1); |
| 26 | } | 26 | } |
| 27 | @media (prefers-color-scheme: dark) { | 27 | @media (prefers-color-scheme: dark) { |
| @@ -61,7 +61,7 @@ h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; font-weight: var(--w | |||
| 61 | .meta { color: var(--soft); margin: 0 0 var(--s-4); } | 61 | .meta { color: var(--soft); margin: 0 0 var(--s-4); } |
| 62 | time { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; } | 62 | time { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; } |
| 63 | .page ul.tags { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2); } | 63 | .page ul.tags { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2); } |
| 64 | ul.tags a { display: inline-block; padding: var(--hit) var(--s-4); border-radius: var(--r-pill); background: var(--raise); color: var(--fg); text-decoration: none; font-size: var(--t-sm); } | 64 | ul.tags a { display: inline-block; padding: var(--hit) var(--s-4); border-radius: var(--r-sm); background: var(--raise); color: var(--fg); text-decoration: none; font-size: var(--t-sm); } |
| 65 | ul.tags a:hover { background: var(--fg); color: var(--bg); } | 65 | ul.tags a:hover { background: var(--fg); color: var(--bg); } |
| 66 | .page ul, .page ol { padding-left: var(--s-5); } | 66 | .page ul, .page ol { padding-left: var(--s-5); } |
| 67 | .page li { margin: var(--s-1) 0; } | 67 | .page li { margin: var(--s-1) 0; } |
| @@ -115,8 +115,8 @@ pre code { color: #323232; } | |||
| 115 | .detour-list a:hover { text-decoration: underline; } | 115 | .detour-list a:hover { text-decoration: underline; } |
| 116 | .detour-meta { display: block; color: var(--soft); font-size: var(--t-sm); } | 116 | .detour-meta { display: block; color: var(--soft); font-size: var(--t-sm); } |
| 117 | .tag-toc { display: flex; flex-wrap: wrap; gap: var(--s-2); } | 117 | .tag-toc { display: flex; flex-wrap: wrap; gap: var(--s-2); } |
| 118 | .tag-toc li { margin: 0 !important; display: flex; align-items: baseline; border-radius: var(--r-pill); background: var(--raise); } | 118 | .tag-toc li { margin: 0 !important; display: flex; align-items: baseline; border-radius: var(--r-sm); background: var(--raise); } |
| 119 | .tag-toc a { display: inline-block; padding: var(--hit) var(--s-1) var(--hit) var(--s-4); border-radius: var(--r-pill); color: var(--fg); text-decoration: none; } | 119 | .tag-toc a { display: inline-block; padding: var(--hit) var(--s-1) var(--hit) var(--s-4); border-radius: var(--r-sm); color: var(--fg); text-decoration: none; } |
| 120 | .tag-toc li:hover { background: var(--fg); } | 120 | .tag-toc li:hover { background: var(--fg); } |
| 121 | .tag-toc li:hover a, .tag-toc li:hover .tag-count { color: var(--bg); } | 121 | .tag-toc li:hover a, .tag-toc li:hover .tag-count { color: var(--bg); } |
| 122 | .tag-count { color: var(--soft); font-size: var(--t-sm); padding-right: var(--s-4); font-variant-numeric: tabular-nums; } | 122 | .tag-count { color: var(--soft); font-size: var(--t-sm); padding-right: var(--s-4); font-variant-numeric: tabular-nums; } |
| @@ -141,7 +141,7 @@ pre code { color: #323232; } | |||
| 141 | .screen .apps a:hover img { transform: scale(1.06); } | 141 | .screen .apps a:hover img { transform: scale(1.06); } |
| 142 | .screen .apps span:not(.blank) { margin-top: var(--s-2); white-space: nowrap; } | 142 | .screen .apps span:not(.blank) { margin-top: var(--s-2); white-space: nowrap; } |
| 143 | .screen .blank { display: block; background: rgba(255, 255, 255, .18); border: 1px dashed rgba(255, 255, 255, .5); } | 143 | .screen .blank { display: block; background: rgba(255, 255, 255, .18); border: 1px dashed rgba(255, 255, 255, .5); } |
| 144 | .screen .dock { margin-top: auto; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: var(--r-lg); padding: var(--s-4); display: flex; justify-content: space-around; } | 144 | .screen .dock { margin-top: auto; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: calc(var(--r-device) - var(--s-3) - var(--s-5)); padding: var(--s-4); display: flex; justify-content: space-around; } |
| 145 | .screen .dock a { color: #fff; text-decoration: none; font-size: var(--t-xs); display: flex; flex-direction: column; align-items: center; gap: var(--s-1); } | 145 | .screen .dock a { color: #fff; text-decoration: none; font-size: var(--t-xs); display: flex; flex-direction: column; align-items: center; gap: var(--s-1); } |
| 146 | .screen .dock i { width: 56px; height: 56px; border-radius: var(--r-icon); display: grid; place-items: center; font-style: normal; font-weight: var(--w-bold); font-size: var(--t-md); color: #fff; } | 146 | .screen .dock i { width: 56px; height: 56px; border-radius: var(--r-icon); display: grid; place-items: center; font-style: normal; font-weight: var(--w-bold); font-size: var(--t-md); color: #fff; } |
| 147 | .d-blog { background: #f3efe6; color: #1c1e24 !important; } | 147 | .d-blog { background: #f3efe6; color: #1c1e24 !important; } |
| @@ -220,7 +220,7 @@ pre code { color: #323232; } | |||
| 220 | .w-hosted .w-num { margin: 0; font-size: var(--t-title); line-height: 1; font-weight: var(--w-bold); letter-spacing: -.04em; color: #fff; } | 220 | .w-hosted .w-num { margin: 0; font-size: var(--t-title); line-height: 1; font-weight: var(--w-bold); letter-spacing: -.04em; color: #fff; } |
| 221 | .w-hosted p { margin: var(--s-1) 0 var(--s-4); font-size: var(--t-sm); } | 221 | .w-hosted p { margin: var(--s-1) 0 var(--s-4); font-size: var(--t-sm); } |
| 222 | .w-hosted ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; } | 222 | .w-hosted ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; } |
| 223 | .w-hosted ul a { display: inline-block; padding: var(--hit) var(--s-3); border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: var(--t-xs); } | 223 | .w-hosted ul a { display: inline-block; padding: var(--hit) var(--s-3); border-radius: var(--r-sm); background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: var(--t-xs); } |
| 224 | .w-hosted ul a:hover { background: rgba(255, 255, 255, .24); } | 224 | .w-hosted ul a:hover { background: rgba(255, 255, 255, .24); } |
| 225 | .w-elsewhere li { padding: var(--s-1) 0; } | 225 | .w-elsewhere li { padding: var(--s-1) 0; } |
| 226 | .w-elsewhere a { color: var(--fg); text-decoration: none; font-weight: var(--w-medium); } | 226 | .w-elsewhere a { color: var(--fg); text-decoration: none; font-weight: var(--w-medium); } |
| @@ -243,7 +243,7 @@ pre code { color: #323232; } | |||
| 243 | .blog-head p { margin: var(--s-4) 0 0; color: var(--soft); font-size: var(--t-md); max-width: 38rem; } | 243 | .blog-head p { margin: var(--s-4) 0 0; color: var(--soft); font-size: var(--t-md); max-width: 38rem; } |
| 244 | kbd { font-family: var(--mono); font-size: .85em; background: var(--raise); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: var(--r-xs); padding: .05em .4em; color: var(--fg); } | 244 | kbd { font-family: var(--mono); font-size: .85em; background: var(--raise); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: var(--r-xs); padding: .05em .4em; color: var(--fg); } |
| 245 | .chips { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); } | 245 | .chips { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); } |
| 246 | .chips a { display: inline-block; padding: var(--hit) var(--s-4); border-radius: var(--r-pill); background: var(--raise); color: var(--fg); text-decoration: none; font-weight: var(--w-medium); font-size: var(--t-sm); } | 246 | .chips a { display: inline-block; padding: var(--hit) var(--s-4); border-radius: var(--r-sm); background: var(--raise); color: var(--fg); text-decoration: none; font-weight: var(--w-medium); font-size: var(--t-sm); } |
| 247 | .chips a:hover { background: var(--fg); color: var(--bg); } | 247 | .chips a:hover { background: var(--fg); color: var(--bg); } |
| 248 | .post-cards { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); } | 248 | .post-cards { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); } |
| 249 | .post-cards a { display: flex; flex-direction: column; height: 100%; padding: var(--s-5) var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--raise); color: var(--fg); text-decoration: none; transition: transform .25s var(--ease-out); } | 249 | .post-cards a { display: flex; flex-direction: column; height: 100%; padding: var(--s-5) var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--raise); color: var(--fg); text-decoration: none; transition: transform .25s var(--ease-out); } |