Skip to content

Commit 125d2c6

Browse files
committed
Enhance dark mode styles for various components including AddToAny share buttons, cookie consent popup, search box, and progress bar for improved visibility and user experience
1 parent 21abf68 commit 125d2c6

File tree

1 file changed

+152
-18
lines changed

1 file changed

+152
-18
lines changed

themes/icarus/include/style/dark-mode.styl

Lines changed: 152 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -337,46 +337,180 @@ html, body, .card, .navbar-main, .footer, a, .content, .title, p, h1, h2, h3, h4
337337

338338
/* Dark mode share button styles */
339339
.dark-mode
340-
/* AddToAny share buttons in dark mode */
340+
/* AddToAny share buttons - the icons already have colors, just adjust brightness */
341341
.a2a_kit a
342-
filter: brightness(1.2)
342+
opacity: 0.9
343+
344+
&:hover
345+
opacity: 1
343346

344-
/* AddToAny menu/popup in dark mode */
345-
.a2a_menu
347+
/* Cookie Consent popup in dark mode */
348+
.cc-window
346349
background: #161b22 !important
347-
border-color: #30363d !important
350+
border: 1px solid #30363d !important
351+
color: #c9d1d9 !important
348352

349-
.a2a_menu a
353+
.cc-message
350354
color: #c9d1d9 !important
355+
356+
.cc-link
357+
color: #58a6ff !important
351358

352359
&:hover
353-
background: #21262d !important
360+
color: #79c0ff !important
361+
362+
.cc-btn
363+
background: #21262d !important
364+
color: #c9d1d9 !important
365+
border-color: #30363d !important
366+
367+
&:hover
368+
background: #30363d !important
354369
color: #e6eef8 !important
355370

356-
/* AddToAny cookie notice in dark mode */
357-
.a2a_notice
371+
.cc-allow, .cc-dismiss
372+
background: #238636 !important
373+
374+
&:hover
375+
background: #2ea043 !important
376+
377+
.cc-deny
378+
background: #da3633 !important
379+
380+
&:hover
381+
background: #e5534b !important
382+
383+
/* Gallery (lightGallery) in dark mode */
384+
.lg-backdrop
385+
background-color: rgba(13, 17, 23, 0.95) !important
386+
387+
.lg-outer
388+
background-color: #0d1117 !important
389+
390+
.lg-toolbar, .lg-actions
391+
background-color: rgba(22, 27, 34, 0.8) !important
392+
393+
.lg-sub-html
394+
background-color: rgba(22, 27, 34, 0.9) !important
395+
color: #c9d1d9 !important
396+
397+
/* Progress bar in dark mode */
398+
#nprogress .bar
399+
background: #58a6ff !important
400+
401+
#nprogress .peg
402+
box-shadow: 0 0 10px #58a6ff, 0 0 5px #58a6ff !important
403+
404+
#nprogress .spinner-icon
405+
border-top-color: #58a6ff !important
406+
border-left-color: #58a6ff !important
407+
408+
/* Back to top button in dark mode */
409+
#back-to-top
410+
background: #21262d !important
411+
color: #c9d1d9 !important
412+
border-color: #30363d !important
413+
414+
&:hover
415+
background: #30363d !important
416+
color: #58a6ff !important
417+
418+
/* Insight search in dark mode */
419+
.searchbox
358420
background: #161b22 !important
359421
border-color: #30363d !important
422+
423+
.searchbox-input
424+
background: #0d1117 !important
360425
color: #c9d1d9 !important
426+
border-color: #30363d !important
427+
428+
&::placeholder
429+
color: #8b949e !important
361430

362-
.a2a_notice a
363-
color: #58a6ff !important
431+
.searchbox-result-list
432+
background: #161b22 !important
433+
border-color: #30363d !important
434+
435+
.searchbox-result-item
436+
border-color: #30363d !important
364437

365438
&:hover
366-
color: #79c0ff !important
439+
background: #21262d !important
440+
441+
.searchbox-result-item-title
442+
color: #e6eef8 !important
367443

368-
/* AddToAny overlay background in dark mode */
369-
#a2a_overlay
370-
background: rgba(13, 17, 23, 0.8) !important
444+
.searchbox-result-item-snippet
445+
color: #8b949e !important
371446

372-
/* AddToAny modal in dark mode */
373-
#a2a_modal
447+
.ins-search
448+
background: rgba(13, 17, 23, 0.95) !important
449+
450+
.ins-search-wrapper
374451
background: #161b22 !important
375452
border-color: #30363d !important
453+
454+
.ins-section-wrapper
455+
background: #161b22 !important
456+
457+
.ins-section-header
458+
background: #21262d !important
459+
color: #e6eef8 !important
460+
border-color: #30363d !important
461+
462+
.ins-input-wrapper
463+
background: #0d1117 !important
464+
border-color: #30363d !important
465+
466+
.ins-input
467+
background: transparent !important
376468
color: #c9d1d9 !important
469+
470+
&::placeholder
471+
color: #8b949e !important
377472

378-
#a2a_modal .a2a_button_text
473+
.ins-selectable
474+
background: #161b22 !important
379475
color: #c9d1d9 !important
476+
border-color: #30363d !important
477+
478+
&:hover, &.active
479+
background: #21262d !important
480+
color: #58a6ff !important
481+
482+
.ins-slug
483+
color: #8b949e !important
484+
485+
/* TOC (Table of Contents) widget in dark mode */
486+
.toc
487+
background: #161b22 !important
488+
border-color: #30363d !important
489+
490+
.toc-link
491+
color: #8b949e !important
492+
493+
&:hover
494+
color: #58a6ff !important
495+
496+
&.is-active-link
497+
color: #58a6ff !important
498+
499+
.toc-item
500+
border-color: #30363d !important
501+
502+
/* Widget boxes in dark mode */
503+
.widget
504+
.menu-list a
505+
color: #8b949e !important
506+
507+
&:hover
508+
background: #21262d !important
509+
color: #58a6ff !important
510+
511+
&.is-active
512+
background: #21262d !important
513+
color: #58a6ff !important
380514

381515
/* Post card separator line - lighter gray */
382516
.card-content hr,

0 commit comments

Comments
 (0)