@@ -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 {
@@ -2039,4 +2123,4 @@ html[data-theme="light"] {
20392123html [data-theme = "dark" ] {
20402124 scrollbar-width : thin !important ;
20412125 scrollbar-color : # 334155 transparent !important ;
2042- }
2126+ }
0 commit comments