|
| 1 | +/* --------------------------------- |
| 2 | + * Dark Mode Styles |
| 3 | + * --------------------------------- */ |
| 4 | + |
| 5 | +/* Add smooth transition for theme changes */ |
| 6 | +html, body, .card, .navbar-main, .footer, a, .content, .title, p, h1, h2, h3, h4, h5, h6, span |
| 7 | + transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease |
| 8 | + |
| 9 | +/* Dark mode base styles */ |
| 10 | +.dark-mode |
| 11 | + background: #0d1117 |
| 12 | + color: #c9d1d9 |
| 13 | + |
| 14 | + body |
| 15 | + background: #0d1117 |
| 16 | + color: #c9d1d9 |
| 17 | + |
| 18 | + .navbar-main |
| 19 | + background: #161b22 |
| 20 | + border-bottom: 1px solid #30363d |
| 21 | + |
| 22 | + .card |
| 23 | + background: #161b22 |
| 24 | + border: 1px solid #30363d |
| 25 | + color: #c9d1d9 |
| 26 | + |
| 27 | + .footer |
| 28 | + background: #161b22 |
| 29 | + border-top: 1px solid #30363d |
| 30 | + color: #c9d1d9 |
| 31 | + |
| 32 | + /* Dark mode link colors - bright blue for better visibility */ |
| 33 | + a |
| 34 | + color: #58a6ff |
| 35 | + |
| 36 | + &:hover |
| 37 | + color: #79c0ff |
| 38 | + |
| 39 | + /* Dark mode text colors - ensure all text is visible */ |
| 40 | + .content |
| 41 | + color: #c9d1d9 |
| 42 | + |
| 43 | + .title |
| 44 | + color: #e6eef8 |
| 45 | + |
| 46 | + .subtitle |
| 47 | + color: #c9d1d9 |
| 48 | + |
| 49 | + p, span, div |
| 50 | + color: #c9d1d9 |
| 51 | + |
| 52 | + h1, h2, h3, h4, h5, h6 |
| 53 | + color: #e6eef8 |
| 54 | + |
| 55 | + /* Widget and card text */ |
| 56 | + .widget |
| 57 | + .menu-label |
| 58 | + color: #e6eef8 |
| 59 | + |
| 60 | + .heading |
| 61 | + color: #8b949e |
| 62 | + |
| 63 | + .card-header-title |
| 64 | + color: #e6eef8 |
| 65 | + |
| 66 | + .card-content |
| 67 | + color: #c9d1d9 |
| 68 | + |
| 69 | + /* Navbar items */ |
| 70 | + .navbar-item |
| 71 | + color: #c9d1d9 |
| 72 | + |
| 73 | + &:hover |
| 74 | + color: #e6eef8 |
| 75 | + background-color: rgba(48, 54, 61, 0.5) |
| 76 | + |
| 77 | + &.is-active |
| 78 | + color: #58a6ff |
| 79 | + background-color: rgba(48, 54, 61, 0.5) |
| 80 | + border-bottom: 2px solid #58a6ff |
| 81 | + |
| 82 | + /* Metadata and dates */ |
| 83 | + .date, .categories, .is-size-7 |
| 84 | + color: #8b949e |
| 85 | + |
| 86 | + /* Photography title/link adjustments */ |
| 87 | + .card .title a.has-link-black-ter |
| 88 | + color: #e6eef8 |
| 89 | + |
| 90 | + &:hover |
| 91 | + color: #58a6ff |
| 92 | + |
| 93 | + /* Post title styling - blue by default, white on hover */ |
| 94 | + .card .title a, |
| 95 | + .card .title a.link-muted |
| 96 | + color: #58a6ff !important |
| 97 | + |
| 98 | + &:hover |
| 99 | + color: #fff !important |
| 100 | + |
| 101 | + /* Post card separator line */ |
| 102 | + .card-content hr, |
| 103 | + .content hr |
| 104 | + background-color: #3a3a3a |
| 105 | + |
| 106 | + /* Buttons and inputs */ |
| 107 | + .button |
| 108 | + background: #21262d |
| 109 | + color: #c9d1d9 |
| 110 | + border-color: #30363d |
| 111 | + |
| 112 | + &:hover |
| 113 | + background: #30363d |
| 114 | + color: #e6eef8 |
| 115 | + |
| 116 | + input, textarea |
| 117 | + background: #0d1117 |
| 118 | + color: #c9d1d9 |
| 119 | + border-color: #30363d |
| 120 | + |
| 121 | + &::placeholder |
| 122 | + color: #8b949e |
| 123 | + |
| 124 | + /* Tags and labels */ |
| 125 | + .tag |
| 126 | + background: #21262d |
| 127 | + color: #c9d1d9 |
| 128 | + |
| 129 | + .menu-list a |
| 130 | + color: #c9d1d9 |
| 131 | + |
| 132 | + &:hover |
| 133 | + background: #21262d |
| 134 | + color: #e6eef8 |
| 135 | + |
| 136 | + /* Notifications and messages */ |
| 137 | + .notification |
| 138 | + background: #161b22 |
| 139 | + color: #c9d1d9 |
| 140 | + |
| 141 | + code |
| 142 | + background: #21262d |
| 143 | + color: #ff7b72 |
| 144 | + |
| 145 | + pre |
| 146 | + background: #161b22 |
| 147 | + color: #c9d1d9 |
| 148 | + |
| 149 | + /* Timeline (archives page) */ |
| 150 | + .timeline |
| 151 | + border-left-color: #30363d |
| 152 | + |
| 153 | + .media:before |
| 154 | + background: #30363d |
| 155 | + |
| 156 | + .media:last-child:after |
| 157 | + background: #161b22 |
| 158 | + |
| 159 | + /* Read more button and muted links */ |
| 160 | + .article-more |
| 161 | + background: #21262d !important |
| 162 | + color: #58a6ff !important |
| 163 | + border-color: #30363d !important |
| 164 | + |
| 165 | + &:hover |
| 166 | + background: #30363d !important |
| 167 | + color: #79c0ff !important |
| 168 | + border-color: #58a6ff !important |
| 169 | + |
| 170 | + .has-text-grey |
| 171 | + color: #8b949e !important |
| 172 | + |
| 173 | + .link-muted |
| 174 | + color: #8b949e |
| 175 | + |
| 176 | + &:hover |
| 177 | + color: #58a6ff |
| 178 | + |
| 179 | + /* Article navigation links */ |
| 180 | + .article-nav-prev, .article-nav-next |
| 181 | + color: #8b949e |
| 182 | + |
| 183 | + &:hover |
| 184 | + color: #58a6ff |
| 185 | + |
| 186 | + /* Code blocks in dark mode */ |
| 187 | + figure.highlight |
| 188 | + background: #1e1e1e !important |
| 189 | + border: 1px solid #404040 !important |
| 190 | + |
| 191 | + pre |
| 192 | + background: #1e1e1e !important |
| 193 | + color: #d4d4d4 !important |
| 194 | + |
| 195 | + code |
| 196 | + background: #1e1e1e !important |
| 197 | + color: #d4d4d4 !important |
| 198 | + |
| 199 | + figcaption |
| 200 | + background: #2d2d2d !important |
| 201 | + color: #cccccc !important |
| 202 | + border-bottom: 1px solid #404040 |
| 203 | + |
| 204 | + .gutter |
| 205 | + background: #2d2d2d !important |
| 206 | + color: #858585 !important |
| 207 | + |
| 208 | + pre |
| 209 | + color: #858585 !important |
| 210 | + |
| 211 | + table |
| 212 | + background: #1e1e1e !important |
| 213 | + |
| 214 | + /* Inline code in dark mode */ |
| 215 | + .content code:not(.hljs) |
| 216 | + background: #2d2d2d !important |
| 217 | + color: #f8f8f2 !important |
| 218 | + |
| 219 | + /* Article licensing in dark mode */ |
| 220 | + .article-licensing |
| 221 | + background: #21262d !important |
| 222 | + border: 1px solid #30363d !important |
| 223 | + |
| 224 | + .licensing-title, |
| 225 | + .licensing-title p |
| 226 | + color: #e6eef8 !important |
| 227 | + |
| 228 | + h6 |
| 229 | + color: #8b949e !important |
| 230 | + |
| 231 | + p |
| 232 | + color: #c9d1d9 !important |
| 233 | + |
| 234 | + a |
| 235 | + color: #58a6ff !important |
| 236 | + |
| 237 | + /* Remove button box borders in dark mode */ |
| 238 | + .button.is-transparent |
| 239 | + background: transparent !important |
| 240 | + border: none !important |
| 241 | + box-shadow: none !important |
| 242 | + |
| 243 | + .level-item.button |
| 244 | + background: transparent !important |
| 245 | + border: none !important |
| 246 | + box-shadow: none !important |
| 247 | + |
| 248 | +/* Light mode specific styles */ |
| 249 | +.card .title a.has-link-black-ter |
| 250 | + color: #111 |
| 251 | + transition: color 0.18s ease, transform 0.12s ease |
| 252 | + |
| 253 | + &:hover |
| 254 | + transform: translateY(-2px) |
| 255 | + |
| 256 | +.card .title a, |
| 257 | +.card .title a.link-muted |
| 258 | + color: #58a6ff !important |
| 259 | + transition: color 0.2s ease |
| 260 | + transform: none !important |
| 261 | + |
| 262 | + &:hover |
| 263 | + color: #111 !important |
| 264 | + transform: none !important |
| 265 | + |
| 266 | +/* Make post titles smaller */ |
| 267 | +.card .title.is-3 |
| 268 | + font-size: 1.5rem !important |
| 269 | + |
| 270 | + &.is-size-4-mobile |
| 271 | + font-size: 1.25rem !important |
| 272 | + |
| 273 | ++mobile() |
| 274 | + .card .title.is-3.is-size-4-mobile |
| 275 | + font-size: 1.1rem !important |
| 276 | + |
| 277 | +/* Make page headings (Blogs, Photography, etc.) bigger */ |
| 278 | +.card-content > .title.is-3:first-child, |
| 279 | +.content > .title.is-3:first-child |
| 280 | + font-size: 2.25rem !important |
| 281 | + |
| 282 | +/* Center share buttons */ |
| 283 | +.a2a_kit |
| 284 | + display: flex !important |
| 285 | + justify-content: center !important |
| 286 | + align-items: center !important |
| 287 | + |
| 288 | +/* Post card separator line - lighter gray */ |
| 289 | +.card-content hr, |
| 290 | +.content hr |
| 291 | + background-color: #e0e0e0 |
| 292 | + border: none |
| 293 | + height: 1px |
0 commit comments