Mercurial
view mrjunejune/src/base.css @ 262:0f45474c1b1a
Add cyberpunk JRPG blog browser
Show the latest posts in the JRPG preview and render the full blog archive and sanitized post details in the Inspect modal.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Thu, 06 Aug 2026 04:08:45 -0700 |
| parents | 60a876c4587a |
| children |
line wrap: on
line source
/* Reset CSS: https://meyerweb.com/eric/tools/css/reset/ */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* --- Colors ---*/ :root { --white: #ffffff; --black: hsl(224, 12%, 4%); --darkgray: #333333; --gray: #5d5d5d; --lightgray: #999999; --gray-light: var(--lightgray); --green: #c2e15f; --orange: #fda333; --purple: #d3a4f9; --red: #fb4485; --blue: #6ce0f1; --darktext: #414141; /* from astro */ --accent: #2337ff; --accent-dark: #000d8a; --gray: 96, 115, 159; --gray-light: 229, 233, 240; --gray-dark: 34, 41, 57; --gray-gradient: rgba(var(--gray-light), 50%), #fff; --box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%), 0 16px 32px rgba(var(--gray), 33%); --awesome: #dc3522; --main-width: 720px; } .dark { --white: hsl(224, 10%, 10%); --black: hsl(0, 0%, 90%); --darkgray: #cccccc; /* Inverted */ --lightgray: #666666; /* Inverted */ --gray-light: var(--lightgray); --green: #3d1ea0; /* Complementary */ --orange: #025ccc; /* Complementary */ --purple: #2b5b06; /* Complementary */ --red: #04bb7a; /* Complementary */ --blue: #932f0e; /* Complementary */ --darktext: #bebebe; /* Inverted */ --text: var(--lightgray); /* Opposite of --darkgray */ --graytext: var(--lightgray); /* Opposite of --gray */ --lighttext: var(--darkgray); /* Opposite of --lightgray */ --awesome: #23cade; /* Complementary */ /* Opposite of Astro Colors */ --accent: #ffcc00; /* Complementary */ --accent-dark: #ffb275; /* Modified complementary */ --gray: 159, 140, 96; /* Inverted */ --gray-light: 26, 22, 15; /* Inverted */ --gray-dark: 221, 214, 198; /* Inverted */ --gray-gradient: rgba(26, 22, 15, 50%), #000; /* Adjusted */ --box-shadow: 0 -2px -6px rgba(159, 140, 96, 25%), 0 -8px -24px rgba(159, 140, 96, 33%), 0 -16px -32px rgba(159, 140, 96, 33%); } @media (prefers-color-scheme: dark) { :root:not([data-zen-theme]) { --white: hsl(224, 10%, 10%); --black: hsl(0, 0%, 90%); --darkgray: #cccccc; --lightgray: #666666; --gray-light: var(--lightgray); --green: #3d1ea0; --orange: #025ccc; --purple: #2b5b06; --red: #04bb7a; --blue: #932f0e; --darktext: #bebebe; --awesome: #23cade; --accent: #ffcc00; --accent-dark: #ffb275; --gray: 159, 140, 96; --gray-light: 26, 22, 15; --gray-dark: 221, 214, 198; --gray-gradient: rgba(26, 22, 15, 50%), #000; --box-shadow: 0 -2px -6px rgba(159, 140, 96, 25%), 0 -8px -24px rgba(159, 140, 96, 33%), 0 -16px -32px rgba(159, 140, 96, 33%); } } :root { --zenbu-font-editorial: "More Thin", "Roboto", sans-serif; --zenbu-font-playful: "More", "More Thin", sans-serif; --zenbu-sys-font-family-ui: var(--zenbu-font-editorial); --zenbu-sys-font-family-content: var(--zenbu-font-editorial); } :root:not([data-zen-theme]), :root[data-zen-theme] { --white: var(--zenbu-sys-color-surface-default); --black: var(--zenbu-sys-color-text-primary); --darkgray: var(--zenbu-sys-color-border-strong); --lightgray: var(--zenbu-sys-color-border-subtle); --gray-light: var(--zenbu-sys-color-border-subtle); --green: var(--zenbu-sys-color-success-foreground); --orange: var(--zenbu-sys-color-action-primary-background-hover); --purple: var(--zenbu-sys-color-action-primary-background); --red: var(--zenbu-sys-color-danger-foreground); --blue: var(--zenbu-sys-color-info-foreground); --darktext: var(--zenbu-sys-color-text-secondary); --text: var(--zenbu-sys-color-text-primary); --graytext: var(--zenbu-sys-color-text-secondary); --lighttext: var(--zenbu-sys-color-text-tertiary); --awesome: var(--zenbu-sys-color-action-danger-background); --accent: var(--zenbu-sys-color-text-link); --accent-dark: var(--zenbu-sys-color-action-primary-background-pressed); --gray-dark: var(--zenbu-sys-color-text-primary); --gray-gradient: linear-gradient( var(--zenbu-sys-color-surface-page), var(--zenbu-sys-color-surface-default) ); --box-shadow: var(--zenbu-sys-shadow-raised); } /* --- fonts --- */ /* @font-face { font-family: "Atkinson"; src: url("/public/fonts/atkinson-regular.woff") format("woff"); font-weight: 400; font-style: normal; } @font-face { font-family: "Atkinson"; src: url("/public/fonts/atkinson-bold.woff") format("woff"); font-weight: 700; font-style: normal; } */ @font-face { font-family: "Roboto"; src: url("/public/fonts/Roboto-Regular.ttf"); } @font-face { font-family: "Roboto Light"; src: url("/public/fonts/Roboto-Thin.ttf"); } @font-face { font-family: "More Thin"; src: url("/public/fonts/more-sugar.thin.otf"); } @font-face { font-family: "More"; src: url("/public/fonts/more-sugar.regular.otf"); } /* -- HTML Tags only --*/ html { min-height: 100%; background: var(--white); } a { color: inherit; /* blue colors for links too */ text-decoration: inherit; /* no underline */ } body { min-height: 100vh; font-family: var(--zenbu-sys-font-family-content); margin: 0; padding: 0; text-align: left; background: var(--gray-gradient); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; word-wrap: break-word; overflow-wrap: break-word; color: var(--gray-dark); font-size: var(--zenbu-sys-font-size-xl); line-height: var(--zenbu-sys-line-height-lg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } main { background: transparent; width: var(--main-width); max-width: calc(100% - 2em); margin: auto; } h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5rem 0; color: var(--black); line-height: 1.2; } h1 { font-size: var(--zenbu-sys-font-size-3xl); } h2 { font-size: var(--zenbu-sys-font-size-2xl); } h3 { font-size: var(--zenbu-sys-font-size-xl); } h4 { font-size: var(--zenbu-sys-font-size-lg); } h5 { font-size: var(--zenbu-sys-font-size-md); } strong, b { font-weight: 700; } p { margin-bottom: 1em; } .prose p { margin-bottom: 2em; } textarea { width: 100%; font-size: 16px; } zen-button[appearance="plain"][size] > :where(button, a) { display: inline-flex; min-height: var(--zenbu-control-height); align-items: center; justify-content: center; gap: var(--zenbu-control-gap); padding: var(--zenbu-control-padding-block) var(--zenbu-control-padding-inline); font-size: var(--zenbu-control-font-size); line-height: var(--zenbu-control-line-height); } input { font-size: 16px; } table { width: 100%; } img { max-width: 100%; height: auto; border-radius: 8px; } code { padding: 2px 5px; background-color: var(--gray-light); border-radius: 2px; } pre { padding: 1.5em; border-radius: 8px; } blockquote { border-left: 4px solid var(--accent); padding: 0 0 0 20px; margin-bottom: 1.25em; font-size: var(--zenbu-sys-font-size-lg); line-height: var(--zenbu-sys-line-height-lg); } ul { margin-bottom: 1.25em; } hr { border: none; border-top: 1px solid var(--gray-light); } .center { display: flex; justify-content: center; } a { text-decoration: underline; } /* -- mobile -- */ @media (max-width: 720px) { body { font-size: var(--zenbu-sys-font-size-lg); line-height: var(--zenbu-sys-line-height-md); } main { padding: var(--zenbu-sys-padding-lg) var(--zenbu-sys-padding-md); } h1 { font-size: var(--zenbu-sys-font-size-2xl); } h2 { font-size: var(--zenbu-sys-font-size-xl); } h3 { font-size: var(--zenbu-sys-font-size-lg); } h4 { font-size: var(--zenbu-sys-font-size-md); } h5 { font-size: var(--zenbu-sys-font-size-sm); } p { margin-bottom: 1.25em; } /* Better touch targets for mobile */ a { padding: 0.25em 0; display: inline-block; } input, textarea, select { font-size: 16px; /* Prevents zoom on iOS */ } /* Improve blockquote readability */ blockquote { font-size: var(--zenbu-sys-font-size-md); padding: 0.5em 0 0.5em 1em; } /* Better code block sizing */ code { font-size: var(--zenbu-sys-font-size-sm); } pre { padding: 1em; overflow-x: auto; } } /* pwa icon */ #pwa-install-btn { position: fixed; bottom: 20px; right: 20px; min-height: var(--zenbu-control-height); gap: var(--zenbu-control-gap); padding: var(--zenbu-control-padding-block) var(--zenbu-control-padding-inline); background: #000000; color: #eeffee; border: none; border-radius: 8px; cursor: pointer; font-size: var(--zenbu-control-font-size); font-weight: bold; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 1000; font-family: inherit; } #pwa-install-btn zen-icon { width: var(--zenbu-control-icon-size); height: var(--zenbu-control-icon-size); }