@@ -41,23 +41,18 @@ nav#TableOfContents {
41
41
a {
42
42
@apply block rounded-md text-sm transition-all duration-200 ease-in-out ;
43
43
padding : 0.4rem 0.75rem ;
44
- color : theme (' colors.light' );
45
44
text-decoration : none !important ;
46
- font-weight : 500 !important ;
47
45
border-left : 3px solid transparent ;
48
46
line-height : 1.4 ;
49
47
50
48
& :hover {
51
49
background-color : theme (' colors.body' );
52
- color : var (--color-primary-new );
53
50
border-left-color : theme (' colors.border' );
54
51
}
55
52
}
56
53
57
54
li .active > a {
58
- color : var (--color-primary-new ) !important ;
59
55
background-color : rgba (102 , 126 , 234 , 0.1 ); // Tint of primary color
60
- font-weight : 600 !important ;
61
56
border-left-color : var (--color-primary-new );
62
57
}
63
58
@@ -71,17 +66,14 @@ nav#TableOfContents {
71
66
.dark {
72
67
nav #TableOfContents {
73
68
a {
74
- color : theme (' colors.darkmode.light' );
75
69
76
70
& :hover {
77
71
background-color : rgba (255 , 255 , 255 , 0.05 );
78
- color : theme (' colors.darkmode.primary' );
79
72
border-left-color : theme (' colors.darkmode.border' );
80
73
}
81
74
}
82
75
83
76
li .active > a {
84
- color : theme (' colors.darkmode.primary' ) !important ;
85
77
background-color : rgba (188 , 251 , 255 , 0.1 ); // Tint of dark primary
86
78
border-left-color : theme (' colors.darkmode.primary' );
87
79
}
@@ -119,43 +111,18 @@ a {
119
111
overflow-wrap : break-word ;
120
112
}
121
113
122
- .content :is(:where(a ):not (:where([class ~= " not-prose" ], [class ~= " not-prose" ] * ))),
123
- section a :not (.breadcrumb-link-parent , .social-link-container ) { // Exclude social link containers
124
- text-decoration-color : #d7c7e3 ;
125
- text-decoration-thickness : 0.115em ;
126
- text-underline-offset : 2.6px ;
127
- text-decoration-line : underline ;
128
- font-weight : 550 !important ;
129
- transition : text-decoration-color 0.3s ease-in-out ;
130
- }
131
-
132
- .content :is(:where(a ):not (:where([class ~= " not-prose" ], [class ~= " not-prose" ] * )):hover ),
133
- section a :not (.breadcrumb-link-parent , .social-link-container ):hover {
134
- text-decoration-color : #200435 ;
135
- }
136
-
137
- // New rules for social links
138
- section a .social-link-container {
139
- text-decoration-line : none !important ; // Remove underline from the container <a>
140
- font-weight : 550 !important ;
141
- }
142
-
143
- section a .social-link-container .social-link-text {
144
- text-decoration-line : underline ;
145
- text-decoration-color : #d7c7e3 ;
146
- text-decoration-thickness : 0.115em ;
147
- text-underline-offset : 2.6px ;
148
- transition : text-decoration-color 0.3s ease-in-out ;
149
- }
150
-
151
- section a .social-link-container :hover .social-link-text {
152
- text-decoration-color : #200435 ;
114
+ .content :is(:where(a ):not (:where([class ~= " not-prose" ], [class ~= " not-prose" ] * , .btn ))),
115
+ section a :not (.breadcrumb-link-parent , .social-link-container , .btn , .hardware-card-wide-link , .social-icon ) {
116
+ font-weight : inherit ;
117
+ color : inherit !important ;
118
+ @include styled-link (#d7c7e3 , #200435 , #288b8c , #bcfbff );
119
+ & .social-link-container { text-decoration-line : none !important ; }
153
120
}
154
121
155
122
156
123
h1 a , h2 a , h3 a , h4 a , h5 a {
157
124
text-decoration : none !important ;
158
- font-weight : 550 !important ;
125
+ font-weight : inherit !important ;
159
126
}
160
127
161
128
.social-icons a {
@@ -167,29 +134,18 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
167
134
color : #FFF ;
168
135
}
169
136
170
- .content :is (:where(a ):not (:where([class~= " not-prose" ] , [class~= " btn" ] , [class~= " not-prose" ] * ))),
171
- section a :not (.breadcrumb-link-parent , .social-link-container ) { // Exclude social link containers
172
- color : #bcfbff !important ;
173
- text-decoration-color : #288b8c ;
174
- }
175
-
176
- .content :is (:where(a ):not (:where([class~= " not-prose" ] , [class~= " not-prose" ] * )):hover ),
177
- section a :not (.breadcrumb-link-parent , .social-link-container ):hover {
178
- text-decoration-color : #bcfbff !important ;
179
- }
180
-
181
- // New rules for dark mode social links
182
- .dark section a .social-link-container {
183
- color : #bcfbff !important ;
184
- }
137
+ .dark .content :is (:where(a ):not (:where([class~= " not-prose" ] , [class~= " btn" ] , [class~= " not-prose" ] * ))),
138
+ .dark section a :not (.breadcrumb-link-parent , .social-link-container , .btn , .hardware-card-wide-link , .social-icon ) {
139
+ color : inherit !important ;
140
+ }
185
141
186
- .dark section a .social-link- container .social-link-text {
187
- text-decoration-color : #288b8c ;
188
- }
189
-
190
- .dark section a .social-link-container :hover .social-link-text {
191
- text-decoration- color : #bcfbff !important ;
192
- }
142
+ // --- Social Link Text (within a container) ---
143
+ section a .social-link-container .social-link-text {
144
+ @include styled-link ( #d7c7e3 , #200435 , #288b8c , #bcfbff );
145
+ }
146
+ .dark section a .social-link-container {
147
+ color : #bcfbff !important ;
148
+ }
193
149
194
150
h1 a , h2 a , h3 a , h4 a , h5 a {
195
151
color : #ffffff !important ;
@@ -205,37 +161,16 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
205
161
.social-icons a {
206
162
color : #000 !important ;
207
163
}
208
-
209
- .author-card-compact {
210
- h4 a {
211
- color : #bcfbff !important ;
212
- text-decoration-color : #288b8c !important ;
213
164
214
- & :hover {
215
- text-decoration-color : #bcfbff !important ;
216
- }
217
- }
165
+ // --- Author Card Compact Links ---
166
+ .author-card-compact h4 a {
167
+ @include styled-link (#d7c7e3 , #200435 , #288b8c , #bcfbff );
168
+ color : #200435 !important ;
169
+ .dark & {
170
+ color : #bcfbff !important ;
218
171
}
219
172
}
220
173
221
- .author-card-compact {
222
- h4 {
223
- @apply text-lg font-semibold ;
224
- a {
225
- color : #200435 !important ;
226
- text-decoration-line : underline !important ;
227
- text-decoration-color : #d7c7e3 !important ;
228
- text-decoration-thickness : 0.115em !important ;
229
- text-underline-offset : 2.6px !important ;
230
- font-weight : 550 !important ;
231
- transition : text-decoration-color 0.3s ease-in-out ;
232
-
233
- & :hover {
234
- text-decoration-color : #200435 !important ;
235
- }
236
- }
237
- }
238
-
239
174
.role-compact {
240
175
@apply text-sm text-text dark :text- darkmode- text mt- 1;
241
176
}
@@ -256,24 +191,12 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
256
191
}
257
192
}
258
193
}
259
- // New rules for contributor page social links
260
- .contributor-socials a {
261
- text-decoration : none !important ;
262
- font-weight : normal !important ;
263
- color : #444444 ;
264
- transition : color 0.2s ease-in-out ;
265
-
266
- & :hover {
267
- color : #121212 ;
268
- }
194
+ // --- Breadcrumb Links ---
195
+ a .breadcrumb-link-parent {
196
+ text-decoration-line : none !important ;
269
197
}
270
-
271
- .dark .contributor-socials a {
272
- color : #B4AFB6 ;
273
-
274
- & :hover {
275
- color : #bcfbff ;
276
- }
198
+ .breadcrumb-link-text {
199
+ @include styled-link (#d7c7e3 , #200435 , #288b8c , #bcfbff );
277
200
}
278
201
279
202
.image-attribution-caption {
@@ -300,7 +223,4 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
300
223
}
301
224
}
302
225
}
303
- }
304
-
305
- // NOTE: We no longer need a separate .dark rule for this,
306
- // as the dark semi-transparent background works well in both light and dark modes.
226
+ }
0 commit comments