Skip to content

Commit 952869b

Browse files
committed
add css transitions to page assisted bt Cursor
1 parent e76dfbd commit 952869b

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/css/custom.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
--ifm-color-primary-lightest: #70c8ff;
5353
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
5454
--ifm-pre-background: #1ba8ff;
55-
background-color: #262626;
55+
background-color: #0B192C;
5656
}
5757

5858
/* Global layout styles for components */
@@ -61,11 +61,32 @@
6161
box-sizing: border-box;
6262
}
6363

64+
html {
65+
scroll-behavior: smooth;
66+
}
67+
6468
ul {
6569
list-style: none;
6670
padding: 0;
6771
}
6872

73+
/* Smooth transitions for theme switching */
74+
* {
75+
transition: background-color 0.3s ease, color 0.3s ease;
76+
}
77+
78+
/* Better focus states for accessibility */
79+
button:focus-visible,
80+
a:focus-visible {
81+
outline: 2px solid var(--ifm-color-primary);
82+
outline-offset: 2px;
83+
}
84+
6985
.footer--dark {
70-
--ifm-footer-background-color: #262626 !important;
86+
--ifm-footer-background-color: #0B192C !important;
87+
}
88+
89+
/* Improve main content area */
90+
main {
91+
overflow-x: hidden;
7192
}

0 commit comments

Comments
 (0)