@@ -370,21 +370,67 @@ html[data-theme="dark"] .menu__link--active::after {
370370}
371371
372372/* ======= SECTION 9 :Smooth theme transitions ========== */
373- html ,
374- body {
375- transition :
376- background-color 150ms ease,
377- color 150ms ease;
378- }
379373
374+ /* Global smooth theme transitions for all color-related properties */
375+ html ,
376+ body ,
380377.navbar ,
378+ .navbar__inner ,
379+ .navbar__brand ,
380+ .navbar__link ,
381+ .navbar__item ,
381382.footer ,
383+ .footer__link ,
382384.sidebar ,
383- .main-wrapper {
385+ .sidebar__link ,
386+ .main-wrapper ,
387+ .theme-doc-sidebar-container ,
388+ .theme-doc-toc-desktop ,
389+ .theme-doc-sidebar-item ,
390+ .article-card ,
391+ .blog-card ,
392+ .card ,
393+ .menu__link ,
394+ .menu__caret ,
395+ .pagination ,
396+ .pagination__item ,
397+ .breadcrumbs ,
398+ [class *= "breadcrumb" ],
399+ [class *= "button" ],
400+ [class *= "btn" ],
401+ .badge ,
402+ .pill ,
403+ .tag ,
404+ .button-group ,
405+ .admonition ,
406+ .alert ,
407+ .docusaurus-highlight-code-line ,
408+ pre ,
409+ code ,
410+ input ,
411+ textarea ,
412+ select ,
413+ [role = "button" ] {
414+ transition :
415+ background-color 300ms ease-in-out,
416+ color 300ms ease-in-out,
417+ border-color 300ms ease-in-out,
418+ box-shadow 300ms ease-in-out,
419+ fill 300ms ease-in-out,
420+ stroke 300ms ease-in-out,
421+ opacity 300ms ease-in-out !important ;
422+ }
423+
424+ /* SVG and icon transitions */
425+ svg ,
426+ i ,
427+ [class *= "icon" ] {
384428 transition :
385- background-color 150ms ease,
386- color 150ms ease,
387- border-color 150ms ease;
429+ fill 300ms ease-in-out,
430+ stroke 300ms ease-in-out,
431+ color 300ms ease-in-out,
432+ filter 300ms ease-in-out,
433+ opacity 300ms ease-in-out !important ;
388434}
389435
390436/* Navbar icon styling */
@@ -395,6 +441,7 @@ body {
395441 margin-right : 4px ;
396442 min-width : 18px ;
397443 min-height : 18px ;
444+ transition : all 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 );
398445}
399446
400447/* Navbar social icon styles */
@@ -406,8 +453,45 @@ body {
406453 border-radius : 6px ;
407454 color : var (--ifm-navbar-link-color );
408455 transition :
409- color 0.2s ease,
410- background-color 0.2s ease;
456+ color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
457+ background-color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
458+ filter 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 );
459+ }
460+
461+ /* Form elements smooth transitions */
462+ input ,
463+ textarea ,
464+ select ,
465+ button ,
466+ [role = "button" ] {
467+ transition :
468+ background-color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
469+ color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
470+ border-color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
471+ box-shadow 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 );
472+ }
473+
474+ /* Code block transitions */
475+ code ,
476+ pre ,
477+ .code-block ,
478+ .highlight ,
479+ [class *= "hljs" ] {
480+ transition :
481+ background-color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
482+ color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
483+ border-color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 );
484+ }
485+
486+ /* Icon transitions */
487+ svg ,
488+ i ,
489+ [class *= "icon" ] {
490+ transition :
491+ fill 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
492+ stroke 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
493+ color 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 ),
494+ filter 250ms cubic-bezier (0.4 , 0 , 0.2 , 1 );
411495}
412496
413497.navbar-social-icon : hover {
@@ -1970,75 +2054,6 @@ main>div:not(.m-0) {
19702054 margin-top : 1.5rem ;
19712055 margin-bottom : 1.5rem ;
19722056 }
1973-
1974- .blog-carousel-section {
1975- padding : 1.5rem 0 !important ;
1976- margin : 1.5rem 0 !important ;
1977- }
1978-
1979- /* Reduce section padding on mobile */
1980- section ,
1981- [role = "region" ] {
1982- padding : 1.5rem 0 ;
1983- margin : 1.5rem 0 ;
1984- }
1985- }
1986-
1987- /* Typography spacing for consistency */
1988- h1 : not (: first-child ),
1989- h2 : not (: first-child ),
1990- h3 : not (: first-child ) {
1991- margin-top : 2rem ;
1992- margin-bottom : 1rem ;
1993- }
1994-
1995- h1 : first-child ,
1996- h2 : first-child ,
1997- h3 : first-child {
1998- margin-top : 0 ;
1999- margin-bottom : 1rem ;
2000- }
2001-
2002- /* --- CUSTOM MODERN SCROLLBAR --- */
2003-
2004- ::-webkit-scrollbar {
2005- width : 6px !important ;
2006- height : 6px !important ;
2007- }
2008-
2009- ::-webkit-scrollbar-track {
2010- background : transparent !important ;
2011- }
2012-
2013- /* --- LIGHT THEME --- */
2014- html [data-theme = "light" ] ::-webkit-scrollbar-thumb {
2015- background-color : rgba (203 , 213 , 225 , 1 ) !important ;
2016- border-radius : 10px !important ;
2017- }
2018-
2019- html [data-theme = "light" ] ::-webkit-scrollbar-thumb : hover {
2020- background-color : rgba (148 , 163 , 184 , 1 ) !important ;
2021- }
2022-
2023- /* --- DARK THEME --- */
2024- html [data-theme = "dark" ] ::-webkit-scrollbar-thumb {
2025- background-color : rgba (51 , 65 , 85 , 0.8 ) !important ;
2026- border-radius : 10px !important ;
2027- }
2028-
2029- html [data-theme = "dark" ] ::-webkit-scrollbar-thumb : hover {
2030- background-color : # 06b6d4 !important ;
2031- }
2032-
2033- /* --- FIREFOX CORRECTIONS --- */
2034- html [data-theme = "light" ] {
2035- scrollbar-width : thin !important ;
2036- scrollbar-color : # cbd5e1 transparent !important ;
2037- }
2038-
2039- html [data-theme = "dark" ] {
2040- scrollbar-width : thin !important ;
2041- scrollbar-color : # 334155 transparent !important ;
20422057}
20432058
20442059/* =====================================================
0 commit comments