|
55 | 55 | font-weight: 600; |
56 | 56 | } |
57 | 57 |
|
58 | | -/* Dark mode adjustments */ |
59 | | -.dark .cv-page h1 { |
60 | | - color: #7ab8e8 !important; |
61 | | - border-bottom-color: #7ab8e8 !important; |
62 | | -} |
| 58 | +/* Dark mode adjustments using prefers-color-scheme */ |
| 59 | +@media (prefers-color-scheme: dark) { |
| 60 | + .cv-page h1 { |
| 61 | + color: #7ab8e8 !important; |
| 62 | + border-bottom-color: #7ab8e8 !important; |
| 63 | + } |
63 | 64 |
|
64 | | -.dark .cv-page h2 { |
65 | | - color: #7ab8e8 !important; |
66 | | - border-bottom-color: #7ab8e8 !important; |
67 | | -} |
| 65 | + .cv-page h2 { |
| 66 | + color: #7ab8e8 !important; |
| 67 | + border-bottom-color: #7ab8e8 !important; |
| 68 | + } |
68 | 69 |
|
69 | | -.dark .cv-page h3 { |
70 | | - color: #7ab8e8 !important; |
71 | | -} |
| 70 | + .cv-page h3 { |
| 71 | + color: #7ab8e8 !important; |
| 72 | + } |
72 | 73 |
|
73 | | -.dark .cv-page .cv-contact { |
74 | | - border-left-color: #7ab8e8 !important; |
75 | | -} |
| 74 | + .cv-page .cv-contact { |
| 75 | + border-left-color: #7ab8e8 !important; |
| 76 | + } |
76 | 77 |
|
77 | | -.dark .cv-page strong { |
78 | | - color: #7ab8e8 !important; |
| 78 | + .cv-page strong { |
| 79 | + color: #7ab8e8 !important; |
| 80 | + } |
79 | 81 | } |
80 | 82 |
|
81 | | -/* Additional dark mode selectors for PaperMod theme */ |
| 83 | +/* Dark mode adjustments using class selectors */ |
| 84 | +.dark .cv-page h1, |
82 | 85 | body.dark .cv-page h1, |
83 | | -html.dark .cv-page h1 { |
| 86 | +html.dark .cv-page h1, |
| 87 | +[data-theme="dark"] .cv-page h1 { |
84 | 88 | color: #7ab8e8 !important; |
85 | 89 | border-bottom-color: #7ab8e8 !important; |
86 | 90 | } |
87 | 91 |
|
| 92 | +.dark .cv-page h2, |
88 | 93 | body.dark .cv-page h2, |
89 | | -html.dark .cv-page h2 { |
| 94 | +html.dark .cv-page h2, |
| 95 | +[data-theme="dark"] .cv-page h2 { |
90 | 96 | color: #7ab8e8 !important; |
91 | 97 | border-bottom-color: #7ab8e8 !important; |
92 | 98 | } |
93 | 99 |
|
| 100 | +.dark .cv-page h3, |
94 | 101 | body.dark .cv-page h3, |
95 | | -html.dark .cv-page h3 { |
| 102 | +html.dark .cv-page h3, |
| 103 | +[data-theme="dark"] .cv-page h3 { |
96 | 104 | color: #7ab8e8 !important; |
97 | 105 | } |
98 | 106 |
|
| 107 | +.dark .cv-page .cv-contact, |
| 108 | +body.dark .cv-page .cv-contact, |
| 109 | +html.dark .cv-page .cv-contact, |
| 110 | +[data-theme="dark"] .cv-page .cv-contact { |
| 111 | + border-left-color: #7ab8e8 !important; |
| 112 | +} |
| 113 | + |
| 114 | +.dark .cv-page strong, |
99 | 115 | body.dark .cv-page strong, |
100 | | -html.dark .cv-page strong { |
| 116 | +html.dark .cv-page strong, |
| 117 | +[data-theme="dark"] .cv-page strong { |
101 | 118 | color: #7ab8e8 !important; |
102 | 119 | } |
103 | 120 |
|
|
0 commit comments