|  | 
| 153 | 153 |     border-radius: var(--radius); | 
| 154 | 154 | } | 
| 155 | 155 | 
 | 
|  | 156 | +/* 하이라이트 코드 블록 스타일링 */ | 
| 156 | 157 | .post-content .highlight:not(table) { | 
| 157 | 158 |     margin: 10px auto; | 
| 158 |  | -    background: var(--hljs-bg) !important; | 
| 159 | 159 |     border-radius: var(--radius); | 
| 160 | 160 |     direction: ltr; | 
| 161 | 161 | } | 
| 162 | 162 | 
 | 
|  | 163 | +/* 라이트 모드 하이라이트 */ | 
|  | 164 | +:root:not(.dark) .post-content .highlight:not(table) { | 
|  | 165 | +    background: #f6f8fa !important; | 
|  | 166 | +} | 
|  | 167 | + | 
|  | 168 | +/* 다크 모드 하이라이트 */ | 
|  | 169 | +.dark .post-content .highlight:not(table) { | 
|  | 170 | +    background: var(--hljs-bg) !important; | 
|  | 171 | +} | 
|  | 172 | + | 
| 163 | 173 | .post-content li > .highlight { | 
| 164 | 174 |     margin-inline-end: 0; | 
| 165 | 175 | } | 
|  | 
| 193 | 203 |     display: none; | 
| 194 | 204 | } | 
| 195 | 205 | 
 | 
|  | 206 | +/* 인라인 코드 스타일링 */ | 
| 196 | 207 | .post-content code { | 
| 197 | 208 |     margin: auto 4px; | 
| 198 | 209 |     padding: 4px 6px; | 
| 199 | 210 |     font-size: 0.78em; | 
| 200 | 211 |     line-height: 1.5; | 
| 201 |  | -    background: rgb(241, 241, 241); | 
| 202 | 212 |     border-radius: 2px; | 
| 203 | 213 | } | 
| 204 | 214 | 
 | 
|  | 215 | +/* 라이트 모드 인라인 코드 */ | 
|  | 216 | +:root:not(.dark) .post-content code { | 
|  | 217 | +    background: #f6f8fa; | 
|  | 218 | +    color: #24292e; | 
|  | 219 | +} | 
|  | 220 | + | 
|  | 221 | +/* 다크 모드 인라인 코드 */ | 
|  | 222 | +.dark .post-content code { | 
|  | 223 | +    background: var(--code-bg); | 
|  | 224 | +    color: rgb(213, 213, 214); | 
|  | 225 | +} | 
|  | 226 | + | 
|  | 227 | +/* 코드 블록 기본 스타일 */ | 
| 205 | 228 | .post-content pre code { | 
| 206 | 229 |     display: block; | 
| 207 | 230 |     margin: auto 0; | 
| 208 | 231 |     padding: 10px; | 
| 209 |  | -    color: rgb(213, 213, 214); | 
| 210 |  | -    background: var(--hljs-bg) !important; | 
| 211 | 232 |     border-radius: var(--radius); | 
| 212 | 233 |     overflow-x: auto; | 
| 213 | 234 |     word-break: break-all; | 
| 214 | 235 | } | 
| 215 | 236 | 
 | 
|  | 237 | +/* 라이트 모드 코드 블록 */ | 
|  | 238 | +:root:not(.dark) .post-content pre code { | 
|  | 239 | +    color: #24292e; | 
|  | 240 | +    background: #f6f8fa !important; | 
|  | 241 | +} | 
|  | 242 | + | 
|  | 243 | +/* 다크 모드 코드 블록 */ | 
|  | 244 | +.dark .post-content pre code { | 
|  | 245 | +    color: rgb(213, 213, 214); | 
|  | 246 | +    background: var(--hljs-bg) !important; | 
|  | 247 | +} | 
|  | 248 | + | 
| 216 | 249 | .post-content blockquote { | 
| 217 | 250 |     margin: 20px 0; | 
| 218 | 251 |     padding: 0 14px; | 
| @@ -368,12 +401,24 @@ h6:hover .anchor { | 
| 368 | 401 |     user-select: none; | 
| 369 | 402 | } | 
| 370 | 403 | 
 | 
| 371 |  | -.post-content :not(table) ::-webkit-scrollbar-thumb { | 
|  | 404 | +/* 스크롤바 스타일링 */ | 
|  | 405 | +/* 라이트 모드 스크롤바 */ | 
|  | 406 | +:root:not(.dark) .post-content :not(table) ::-webkit-scrollbar-thumb { | 
|  | 407 | +    border: 2px solid #f6f8fa; | 
|  | 408 | +    background: #959da5; | 
|  | 409 | +} | 
|  | 410 | + | 
|  | 411 | +:root:not(.dark) .post-content :not(table) ::-webkit-scrollbar-thumb:hover { | 
|  | 412 | +    background: #24292e; | 
|  | 413 | +} | 
|  | 414 | + | 
|  | 415 | +/* 다크 모드 스크롤바 */ | 
|  | 416 | +.dark .post-content :not(table) ::-webkit-scrollbar-thumb { | 
| 372 | 417 |     border: 2px solid var(--hljs-bg); | 
| 373 | 418 |     background: rgb(113, 113, 117); | 
| 374 | 419 | } | 
| 375 | 420 | 
 | 
| 376 |  | -.post-content :not(table) ::-webkit-scrollbar-thumb:hover { | 
|  | 421 | +.dark .post-content :not(table) ::-webkit-scrollbar-thumb:hover { | 
| 377 | 422 |     background: rgb(163, 163, 165); | 
| 378 | 423 | } | 
| 379 | 424 | 
 | 
|  | 
0 commit comments