diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-01-29 23:56:21 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-01-29 23:56:21 +0300 |
| commit | 35556dca71eafdac4eb5d2fe781ba39687d0b058 (patch) | |
| tree | d85489336dce549b08d385c45cec6ae0678b211b /src/lib/styles | |
| parent | 292d9dd4241ace94bfaf50827dcedfbd40de8032 (diff) | |
initial commit
Diffstat (limited to 'src/lib/styles')
| -rw-r--r-- | src/lib/styles/global.css | 206 |
1 files changed, 206 insertions, 0 deletions
diff --git a/src/lib/styles/global.css b/src/lib/styles/global.css new file mode 100644 index 0000000..8ec94fc --- /dev/null +++ b/src/lib/styles/global.css @@ -0,0 +1,206 @@ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +:root { + --bg: #fff; + --text: #333; + --muted: #666; + --link: #888; + --link-hover: #000; + --border: #eee; + --code-bg: #f5f5f5; + --font: "Inter", sans-serif; + --mono: "Bitstream Vera Sans Mono", "Courier New", monospace; +} + +[data-theme="dark"] { + --bg: #1a1a1a; + --text: #e0e0e0; + --muted: #999; + --link-hover: #fff; + --border: #333; + --code-bg: #2a2a2a; +} + +html { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +body { + font: 18px/1.4 var(--font); + color: var(--text); + background: var(--bg); + transition: background 0.2s, color 0.2s; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 2rem; +} + +.container { + max-width: 900px; + margin: 0 auto; + padding: 0 2rem; +} + +p { + margin-bottom: 1rem; +} + +a { + color: var(--link); + text-decoration: none; + transition: color 0.2s; +} + +a:hover { + color: var(--link-hover); +} + +ul, +ol { + margin-bottom: 1rem; + padding-left: 1.5rem; +} + +li { + margin-bottom: 0.25rem; +} + +blockquote { + border-left: 2px solid var(--muted); + padding-left: 1em; + margin: 1.5rem 0; + font-style: italic; +} + +code { + font-family: var(--mono); + font-size: 0.9em; + background: var(--code-bg); + padding: 0.2em 0.4em; + border-radius: 3px; +} + +pre { + font-family: var(--mono); + background: var(--code-bg); + padding: 1rem; + border-radius: 4px; + overflow-x: auto; + margin: 1.5rem 0; + box-shadow: 3px 3px rgba(0, 0, 0, 0.1); +} + +pre code { + background: none; + padding: 0; +} + +img { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid var(--border); + margin: 2rem 0; +} + +small, +time { + font-size: 15px; + color: var(--muted); +} + +/* Layout */ +.wrapper-masthead { + margin: 0 2rem 3rem; +} + +.masthead { + padding: 1.25rem 0; + border-bottom: 1px solid var(--border); + display: flex; + justify-content: space-between; + align-items: center; +} + +.site-info { + display: flex; + flex-direction: column; + margin-left: 2rem; +} + +.site-info h1 { + margin: 0; + font-size: 1.75rem; + font-weight: 300; + letter-spacing: 1px; +} + +.site-description { + margin: -0.25rem 0 0 0; + color: var(--muted); + font-size: 1rem; +} + +header nav { + display: flex; + align-items: center; + gap: 1.25rem; + font-size: 18px; +} + +footer { + margin-top: 4rem; + text-align: center; +} + +article { + margin-bottom: 2rem; +} + +.theme-toggle { + background: transparent; + border: none; + padding: 0.5rem; + cursor: pointer; + color: var(--muted); + display: flex; + align-items: center; + justify-content: center; + transition: color 0.2s; +} + +.theme-toggle:hover { + color: var(--link-hover); +} + +.giscus-container { + margin-top: 3rem; +} + +@media (max-width: 640px) { + .masthead { + flex-direction: column; + text-align: center; + gap: 1rem; + } + + header nav { + gap: 0.75rem; + } +}
\ No newline at end of file |
