Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at a1e6ead60fb44c152fefa3a86179bcf2b84d6249 207 lines 5.4 kB view raw
1@import './fonts.css'; 2@import './post.css'; 3 4:root { 5 /* Min Content Width */ 6 --content-width: 25rem; 7 8 /* Typography */ 9 --sans: Inter, -apple-system, BlinkMacSystemFont, sans-serif; 10 --serif: Besley, Baskerville, Georgia, 'Times New Roman', Times, serif; 11 --mono: 'SF Mono', SFMono-Regular, monospace; 12 13 --font-size-s: 0.8125rem; 14 --font-size-m: 0.9375rem; 15 --font-size-l: 1.0625rem; 16 17 --font-weight-light: 350; 18 --font-weight-regular: 400; 19 --font-weight-bold: 500; 20 21 --spacing-s: -0.08em; 22 --spacing-m: -0.02em; 23 24 /* Light Mode Colors (Default) */ 25 --bg: #ffffff; 26 --text-primary: rgba(0, 0, 0, 0.85); 27 --text-secondary: rgba(0, 0, 0, 0.4); 28 --text-tertiary: rgba(0, 0, 0, 0.24); 29 --border: rgba(0, 0, 0, 0.1); 30 --selection: rgba(0, 0, 0, 0.08); 31 --code-bg: rgba(0, 0, 0, 0.04); 32 --mark: #f3ffc4; 33 34 /* Syntax Theme */ 35 --astro-code-foreground: rgba(0, 0, 0, 0.85); 36 --astro-code-background: rgba(0, 0, 0, 0.03); 37 --astro-code-token-constant: rgba(0, 0, 0, 0.85); 38 --astro-code-token-string: rgba(0, 0, 0, 0.85); 39 --astro-code-token-comment: rgba(0, 0, 0, 0.35); 40 --astro-code-token-keyword: rgba(0, 0, 0, 0.55); 41 --astro-code-token-parameter: rgba(0, 0, 0, 0.85); 42 --astro-code-token-function: rgba(0, 0, 0, 0.85); 43 --astro-code-token-string-expression: rgba(0, 0, 0, 0.55); 44 --astro-code-token-punctuation: rgba(0, 0, 0, 0.55); 45 --astro-code-token-link: rgba(0, 0, 0, 0.55); 46} 47 48/* Light Mode (Explicit) */ 49html.light { 50 --bg: #ffffff; 51 --text-primary: rgba(0, 0, 0, 0.85); 52 --text-secondary: rgba(0, 0, 0, 0.4); 53 --text-tertiary: rgba(0, 0, 0, 0.24); 54 --border: rgba(0, 0, 0, 0.1); 55 --selection: rgba(0, 0, 0, 0.08); 56 --code-bg: rgba(0, 0, 0, 0.04); 57 --mark: #f3ffc4; 58 59 /* Syntax Theme */ 60 --astro-code-foreground: rgba(0, 0, 0, 0.85); 61 --astro-code-background: rgba(0, 0, 0, 0.03); 62 --astro-code-token-constant: rgba(0, 0, 0, 0.85); 63 --astro-code-token-string: rgba(0, 0, 0, 0.85); 64 --astro-code-token-comment: rgba(0, 0, 0, 0.35); 65 --astro-code-token-keyword: rgba(0, 0, 0, 0.5); 66 --astro-code-token-parameter: rgba(0, 0, 0, 0.85); 67 --astro-code-token-function: rgba(0, 0, 0, 0.85); 68 --astro-code-token-string-expression: rgba(0, 0, 0, 0.55); 69 --astro-code-token-punctuation: rgba(0, 0, 0, 0.55); 70 --astro-code-token-link: rgba(0, 0, 0, 0.55); 71} 72 73/* Dark Mode (Explicit) */ 74html.dark { 75 --bg: #1c1c1c; 76 --text-primary: rgba(255, 255, 255, 0.9); 77 --text-secondary: rgba(255, 255, 255, 0.4); 78 --text-tertiary: rgba(255, 255, 255, 0.24); 79 --border: rgba(255, 255, 255, 0.1); 80 --selection: rgba(255, 255, 255, 0.08); 81 --code-bg: rgba(255, 255, 255, 0.04); 82 --mark: #545b37; 83 84 /* Syntax Theme */ 85 --astro-code-foreground: rgba(255, 255, 255, 0.9); 86 --astro-code-background: rgba(255, 255, 255, 0.03); 87 --astro-code-token-constant: rgba(255, 255, 255, 0.9); 88 --astro-code-token-string: rgba(255, 255, 255, 0.9); 89 --astro-code-token-comment: rgba(255, 255, 255, 0.35); 90 --astro-code-token-keyword: rgba(255, 255, 255, 0.55); 91 --astro-code-token-parameter: rgba(255, 255, 255, 0.9); 92 --astro-code-token-function: rgba(255, 255, 255, 0.9); 93 --astro-code-token-string-expression: rgba(255, 255, 255, 0.55); 94 --astro-code-token-punctuation: rgba(255, 255, 255, 0.55); 95 --astro-code-token-link: rgba(255, 255, 255, 0.55); 96} 97 98html { 99 background-color: var(--bg); 100 scroll-behavior: smooth; 101 scrollbar-gutter: stable; 102 overscroll-behavior-y: contain; 103 -webkit-overflow-scrolling: touch; 104 -webkit-tap-highlight-color: transparent; 105 transition: background-color 0.2s ease-out; 106} 107 108body { 109 font-family: var(--sans); 110 font-feature-settings: 'ss03' 1; 111 font-size: var(--font-size-m); 112 line-height: 1.75; 113 color: var(--text-primary); 114 margin: 0; 115 min-height: 100vh; 116 display: flex; 117 flex-direction: column; 118 box-sizing: border-box; 119 letter-spacing: var(--spacing-m); 120 padding: 6rem 1.5rem 1.5rem 1.5rem; 121 overscroll-behavior-y: contain; 122 text-autospace: normal; 123 text-spacing-trim: space-first; 124 text-rendering: optimizeLegibility; 125 font-synthesis: none; 126 word-wrap: break-word; 127 overflow-wrap: break-word; 128} 129 130@media (max-width: 768px) { 131 body { 132 padding: 4rem 1.35rem 1.35rem 1.35rem; 133 } 134} 135 136@media (prefers-reduced-motion: reduce) { 137 * { 138 animation-duration: 0.01ms !important; 139 transition-duration: 0.01ms !important; 140 animation-iteration-count: 1 !important; 141 scroll-behavior: auto !important; 142 } 143} 144 145::selection { 146 background-color: var(--selection); 147} 148 149:focus:not(:focus-visible) { 150 outline: none; 151} 152 153:focus-visible { 154 outline: 1.5px dashed var(--text-tertiary); 155 border-radius: 0.25rem; 156} 157 158body[data-width] { 159 max-width: var(--content-width); 160} 161 162body[data-centered='true'] { 163 margin: 0 auto; 164} 165 166main { 167 flex: 1; 168 display: flex; 169 flex-direction: column; 170 box-sizing: border-box; 171} 172 173.date { 174 margin: 0; 175 font-weight: var(--font-weight-light); 176 color: var(--text-secondary); 177 opacity: 0.75; 178 flex-shrink: 0; 179 letter-spacing: var(--spacing-s); 180 font-variant-numeric: tabular-nums; 181 font-feature-settings: 182 'tnum' 1, 183 'zero' 0, 184 'cv01' 1, 185 'cv02' 1, 186 'calt' 1, 187 'ss03' 1, 188 'ordn' 1; 189} 190 191.date .month { 192 letter-spacing: var(--spacing-m); 193} 194 195.sr-only { 196 border: 0; 197 padding: 0; 198 margin: 0; 199 position: absolute !important; 200 height: 1px; 201 width: 1px; 202 overflow: hidden; 203 clip: rect(1px 1px 1px 1px); 204 clip: rect(1px, 1px, 1px, 1px); 205 clip-path: inset(50%); 206 white-space: nowrap; 207}