1
1
// assets/scss/_typography-custom.scss
2
2
3
+ // Define link colors as variables
4
+ $link-underline-color : #d7c7e3 ;
5
+ $link-underline-hover-color : #200435 ;
6
+ $dark-link-underline-color : #288b8c ;
7
+ $dark-link-underline-hover-color : #bcfbff ;
8
+
3
9
// Gradient text class
4
10
.gradient-text {
5
11
background : linear-gradient (135deg , var (--color-primary-new ) 0% , var (--color-secondary-new ) 100% );
@@ -111,15 +117,23 @@ a {
111
117
overflow-wrap : break-word ;
112
118
}
113
119
120
+ // REFACTORED: Centralized Link Styling
114
121
.styled-link ,
115
122
.content :is(:where(a ):not (:where([class ~= " not-prose" ], [class ~= " not-prose" ] * , .btn ))),
116
- section a :not (.breadcrumb-link-parent , .social-link-container , .btn , .hardware-card-wide-link , .social-icon ) {
123
+ section a :not (.breadcrumb-link-parent , .social-link-container , .btn , .hardware-card-wide-link , .social-icon , .no-style ),
124
+ section a .social-link-container .social-link-text ,
125
+ .breadcrumb-link-text ,
126
+ .author-card-compact h4 a ,
127
+ .hardware-card-wide-link h3 {
117
128
font-weight : inherit ;
118
129
color : inherit !important ;
119
- @include styled-link (#d7c7e3 , #200435 , #288b8c , #bcfbff );
120
- & .social-link-container { text-decoration-line : none !important ; }
130
+ @include styled-link ($link-underline-color , $link-underline-hover-color , $dark-link-underline-color , $dark-link-underline-hover-color );
121
131
}
122
132
133
+ // Container for hardware card link, which contains the h3 we want styled
134
+ .hardware-card-wide-link {
135
+ text-decoration : none !important ;
136
+ }
123
137
124
138
h1 a , h2 a , h3 a , h4 a , h5 a {
125
139
text-decoration : none !important ;
@@ -135,19 +149,6 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
135
149
color : #FFF ;
136
150
}
137
151
138
- .dark .content :is (:where(a ):not (:where([class~= " not-prose" ] , [class~= " btn" ] , [class~= " not-prose" ] * ))),
139
- .dark section a :not (.breadcrumb-link-parent , .social-link-container , .btn , .hardware-card-wide-link , .social-icon ) {
140
- color : inherit !important ;
141
- }
142
-
143
- // --- Social Link Text (within a container) ---
144
- section a .social-link-container .social-link-text {
145
- @include styled-link (#d7c7e3 , #200435 , #288b8c , #bcfbff );
146
- }
147
- .dark section a .social-link-container {
148
- color : #bcfbff !important ;
149
- }
150
-
151
152
h1 a , h2 a , h3 a , h4 a , h5 a {
152
153
color : #ffffff !important ;
153
154
}
@@ -163,14 +164,9 @@ section a.social-link-container .social-link-text {
163
164
color : #000 !important ;
164
165
}
165
166
166
- // --- Author Card Compact Links ---
167
- .author-card-compact h4 a {
168
- @include styled-link (#d7c7e3 , #200435 , #288b8c , #bcfbff );
169
- color : #200435 !important ;
170
- .dark & {
171
- color : #bcfbff !important ;
167
+ .author-card-compact h4 a {
168
+ color : #bcfbff !important ;
172
169
}
173
- }
174
170
175
171
.role-compact {
176
172
@apply text-sm text-text dark :text- darkmode- text mt- 1;
@@ -196,9 +192,6 @@ section a.social-link-container .social-link-text {
196
192
a .breadcrumb-link-parent {
197
193
text-decoration-line : none !important ;
198
194
}
199
- .breadcrumb-link-text {
200
- @include styled-link (#d7c7e3 , #200435 , #288b8c , #bcfbff );
201
- }
202
195
203
196
.image-attribution-caption {
204
197
// Positioning for the container div
0 commit comments