summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorAlif Radhitya <radhitya@noreply.codeberg.org>2026-06-25 17:53:21 +0200
committerAlif Radhitya <radhitya@noreply.codeberg.org>2026-06-25 17:53:21 +0200
commite2ef625c779dffd6a580c0aa8d1d57dcf7abd7eb (patch)
tree32c9da33a864c744fede28fe11654fc7bbd479bc /static
parent829b4e3cf1e59732d0166cbd24d31c93c4095977 (diff)
parent85133d6dcaa7b02d67e243ce8df8324e46f4009f (diff)
Merge pull request 'farewell adieu rust' (#1) from exp into master
Reviewed-on: https://codeberg.org/radhitya/ahsi/pulls/1
Diffstat (limited to 'static')
-rw-r--r--static/style.css219
1 files changed, 219 insertions, 0 deletions
diff --git a/static/style.css b/static/style.css
new file mode 100644
index 0000000..3eb2fad
--- /dev/null
+++ b/static/style.css
@@ -0,0 +1,219 @@
+:root {
+ --bg: #fff;
+ --bg-alt: #eee;
+ --text: #000;
+ --link: #00b;
+ --border: #ccc;
+ --max-w: 800px;
+ --pad: 1rem;
+}
+
+@media (prefers-color-scheme: dark) {
+ :root {
+ --bg: #141414;
+ --bg-alt: #1c1c1c;
+ --text: #fff;
+ --link: #8ab4ff;
+ --border: #444;
+ }
+}
+
+* { box-sizing: border-box; }
+
+body {
+ margin: 0;
+ font-family: Helvetica, Arial, sans-serif;
+ background: var(--bg);
+ color: var(--text);
+ line-height: 1.6;
+}
+
+header, main, footer {
+ max-width: var(--max-w);
+ margin: auto;
+ padding: 0.75rem var(--pad);
+}
+
+header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top: 0.75rem;
+}
+
+header h1 {
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 600;
+}
+
+header h1 a {
+ color: var(--text);
+ text-decoration: none;
+}
+
+header nav a {
+ color: var(--link);
+ text-decoration: none;
+ font-size: 0.875rem;
+}
+
+header nav a:hover {
+ text-decoration: underline;
+}
+
+main {
+ padding-top: 1.5rem;
+ padding-bottom: 1.5rem;
+ min-height: 60vh;
+}
+
+a { color: var(--link); text-decoration: none; }
+a:hover { text-decoration: underline; }
+
+/* post list */
+.post-list {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+
+.post-list li {
+ padding: 0.25rem 0;
+}
+
+.post-list .date {
+ display: block;
+ font-size: 0.8125rem;
+ opacity: 0.7;
+ line-height: 1.4;
+}
+
+.post-list li a {
+ font-size: 0.9375rem;
+}
+
+/* pagination */
+.pagination {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+ margin-top: 1.5rem;
+ font-family: monospace;
+ align-items: center;
+}
+
+.pagination a {
+ border: 1px solid var(--border);
+ padding: 0.2rem 0.55rem;
+ color: var(--link);
+ text-decoration: none;
+}
+
+.pagination a:hover {
+ background: var(--bg-alt);
+}
+
+.pagination .disabled {
+ color: var(--border);
+}
+
+.pagination .info {
+ opacity: 0.7;
+}
+
+/* content pages */
+article h1 {
+ font-size: 1.5rem;
+ margin-bottom: 0.25rem;
+}
+
+article .meta {
+ display: block;
+ font-size: 0.875rem;
+ opacity: 0.8;
+ margin-bottom: 1rem;
+}
+
+article h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
+article h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }
+
+p, ul, ol, blockquote, pre { margin-bottom: 1rem; }
+ul, ol { padding-left: 1.5rem; }
+li { margin-bottom: 0.25rem; }
+
+pre, code {
+ font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
+ font-size: 0.9em;
+}
+
+code {
+ background: var(--bg-alt);
+ padding: 0.15em 0.4em;
+ border-radius: 3px;
+}
+
+pre {
+ padding: 0.5rem 1rem;
+ margin: 0 -1rem;
+ overflow-x: auto;
+ background: #272822;
+ border-radius: 0;
+}
+
+pre code {
+ color: #f8f8f2;
+ background: none;
+ padding: 0;
+ font-size: 0.875em;
+}
+
+blockquote {
+ border-left: 3px solid var(--border);
+ padding-left: 1rem;
+ opacity: 0.85;
+ font-style: italic;
+}
+
+hr {
+ border: none;
+ border-top: 1px solid var(--border);
+ margin: 1.5rem 0;
+}
+
+img { max-width: 100%; height: auto; }
+
+/* search */
+input[type="search"] {
+ width: 100%;
+ padding: 0.5rem 0.75rem;
+ background: var(--bg);
+ border: 1px solid var(--border);
+ color: var(--text);
+ font-size: 1rem;
+ font-family: inherit;
+ outline: none;
+ margin-bottom: 1.5rem;
+}
+
+input[type="search"]:focus {
+ border-color: var(--link);
+}
+
+footer {
+ margin-top: 2rem;
+ padding-top: 0.75rem;
+ border-top: none;
+ font-size: 0.875rem;
+ opacity: 0.8;
+}
+
+footer p { margin: 0; }
+
+@media (max-width: 767px) {
+ header, main, footer {
+ padding: 0.6rem;
+ }
+ header { margin-top: 0.6rem; }
+ article h1 { font-size: 1.3rem; }
+}