@@ -52,7 +52,7 @@ h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
52
52
position : absolute;
53
53
left : 50% ;
54
54
transform : translateX (-50% );
55
- width : 60 % ;
55
+ width : 80 % ;
56
56
height : 4px ;
57
57
border-radius : 10px ;
58
58
background : var (--drac-rainbow-gradient );
@@ -286,10 +286,54 @@ html[data-theme="dark"] h3,
286
286
html [data-theme = "dark" ] h4 ,
287
287
html [data-theme = "dark" ] h5 ,
288
288
html [data-theme = "dark" ] h6 {
289
- color : var (--light-purple ) !important ;
290
289
text-align : center;
291
- padding : 0 ; /* Ensure padding is reset */
292
- margin : 0.5em 0 ; /* Add consistent margins */
290
+ padding : 0 ;
291
+ margin : 0.5em 0 ;
292
+ position : relative;
293
+ }
294
+
295
+ /* Gradient underline */
296
+ html [data-theme = "dark" ] h1 ::after ,
297
+ html [data-theme = "dark" ] h2 ::after ,
298
+ html [data-theme = "dark" ] h3 ::after ,
299
+ html [data-theme = "dark" ] h4 ::after ,
300
+ html [data-theme = "dark" ] h5 ::after ,
301
+ html [data-theme = "dark" ] h6 ::after {
302
+ content : "" ;
303
+ position : absolute;
304
+ left : 50% ;
305
+ transform : translateX (-50% );
306
+ width : 60% ;
307
+ height : 4px ;
308
+ border-radius : 10px ;
309
+ background : var (--drac-rainbow-gradient );
310
+ bottom : -0.3em ;
311
+ }
312
+
313
+ /* Specific colors per heading */
314
+ html [data-theme = "dark" ] h1 { color : rgb (var (--drac-pink-rgb )); font-size : 2.25em ; font-weight : 600 ; }
315
+ html [data-theme = "dark" ] h2 { color : rgb (var (--drac-purple-rgb )); font-size : 2em ; font-weight : 600 ; }
316
+ html [data-theme = "dark" ] h3 { color : rgb (var (--drac-cyan-rgb )); font-size : 1.75em ; font-weight : 600 ; }
317
+ html [data-theme = "dark" ] h4 { color : rgb (var (--drac-green-rgb )); font-size : 1.5em ; font-weight : 500 ; }
318
+ html [data-theme = "dark" ] h5 { color : rgb (var (--drac-yellow-rgb )); font-size : 1.25em ; font-weight : 500 ; }
319
+ html [data-theme = "dark" ] h6 { color : rgb (var (--drac-pink-rgb )); font-size : 1em ; font-weight : 400 ; }
320
+
321
+ /* Rainbow HR with Emoji */
322
+ html [data-theme = "dark" ] hr {
323
+ border : none;
324
+ height : 4px ;
325
+ border-radius : 4px ;
326
+ background : var (--drac-rainbow-gradient );
327
+ position : relative;
328
+ margin : 3em auto;
329
+ width : 80% ;
330
+ }
331
+ html [data-theme = "dark" ] hr ::after {
332
+ content : "🌈" ;
333
+ display : block;
334
+ text-align : center;
335
+ margin-top : -1.5em ;
336
+ font-size : 1.2em ;
293
337
}
294
338
295
339
html [data-theme = "dark" ] img : not (.only-dark , .dark-light ) {
0 commit comments