|
327 | 327 | } |
328 | 328 |
|
329 | 329 | /* disable highlighting in dark mode */ |
330 | | -[data-theme='dark'] .notion-red_background, |
331 | | -[data-theme='dark'] .notion-pink_background, |
332 | | -[data-theme='dark'] .notion-blue_background, |
333 | | -[data-theme='dark'] .notion-purple_background, |
334 | | -[data-theme='dark'] .notion-teal_background, |
335 | | -[data-theme='dark'] .notion-yellow_background, |
336 | | -[data-theme='dark'] .notion-orange_background, |
337 | | -[data-theme='dark'] .notion-brown_background, |
338 | | -[data-theme='dark'] .notion-gray_background { |
| 330 | +.dark-mode .notion-red_background, |
| 331 | +.dark-mode .notion-pink_background, |
| 332 | +.dark-mode .notion-blue_background, |
| 333 | +.dark-mode .notion-purple_background, |
| 334 | +.dark-mode .notion-teal_background, |
| 335 | +.dark-mode .notion-yellow_background, |
| 336 | +.dark-mode .notion-orange_background, |
| 337 | +.dark-mode .notion-brown_background, |
| 338 | +.dark-mode .notion-gray_background { |
339 | 339 | padding: 0; |
340 | 340 | margin: 0; |
341 | 341 | border-radius: 0; |
|
357 | 357 | backdrop-filter: saturate(180%) blur(16px); |
358 | 358 | } |
359 | 359 |
|
360 | | -[data-theme='dark'] .notion-header { |
| 360 | +.dark-mode .notion-header { |
361 | 361 | background: transparent; |
362 | 362 | box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1); |
363 | 363 | backdrop-filter: saturate(180%) blur(8px); |
364 | 364 | } |
365 | 365 |
|
366 | 366 | /* Workaround for Firefox not supporting backdrop-filter yet */ |
367 | 367 | @-moz-document url-prefix() { |
368 | | - [data-theme='dark'] .notion-header { |
| 368 | + .dark-mode .notion-header { |
369 | 369 | background: hsla(203, 8%, 20%, 0.8); |
370 | 370 | } |
371 | 371 | } |
|
0 commit comments