27
27
28
28
/* Navbar */
29
29
--ifm-navbar-background-color : var (--ifm-background-color );
30
- --ifm-navbar-height : 70 px ;
30
+ --ifm-navbar-height : 60 px ;
31
31
--ifm-navbar-item-padding-horizontal : 1rem ;
32
32
33
33
/* Announcement Bar */
34
- --docusaurus-announcement-bar-height : 48 px !important ;
34
+ --docusaurus-announcement-bar-height : 45 px !important ;
35
35
36
36
/* Rule */
37
37
--ifm-hr-border-width : 1px 0 0 0 ;
@@ -104,71 +104,98 @@ main>h1 {
104
104
/* Announcement Bar */
105
105
106
106
div [class ^= " announcementBar" ] {
107
- z-index : calc (var (--ifm-z-index-fixed ) - 1 );
107
+ z-index : 9999 !important ;
108
+ position : fixed !important ;
109
+ top : 0 ;
110
+ left : 0 ;
111
+ right : 0 ;
112
+ height : var (--docusaurus-announcement-bar-height );
113
+ font-size : 0.9rem ;
108
114
109
115
div {
116
+ height : 100% ;
110
117
display : flex ;
111
118
align-items : center ;
112
- padding : 0 .5 rem ;
113
- justify-content : space-between ;
119
+ justify-content : center ;
120
+ padding : 0 ;
114
121
font-size : 1rem ;
115
122
116
- >div {
123
+ .shimmer-banner {
124
+ width : 100% ;
125
+ height : 100% ;
117
126
display : flex ;
127
+ justify-content : center ;
118
128
align-items : center ;
119
- > div {
120
- @media (max-width : 580px ) {
121
- display : none ;
122
- }
123
- }
124
- a >span {
125
- @media (max-width : 580px ) {
126
- display : none ;
127
- }
128
- }
129
+ background : linear-gradient (
130
+ 45deg ,
131
+ #4C39BE 0% , /* Primary violet-600 */
132
+ #5B4AC7 25% , /* Slightly lighter */
133
+ #6A5BD0 50% , /* Mid-point */
134
+ #5B4AC7 75% , /* Slightly lighter */
135
+ #4C39BE 100% /* Primary violet-600 */
136
+ );
137
+ background-size : 200% 200% ;
138
+ animation : shimmer 3s ease-in-out infinite ;
139
+ font-size : 1rem ;
129
140
130
- >p {
131
- text-align : left ;
132
- line-height : 1.1rem ;
141
+ p {
133
142
margin : 0 ;
143
+ padding : 0 ;
144
+ color : white ;
145
+ font-weight : 500 ;
146
+ }
134
147
135
- @media (max-width : 580px ) {
136
- font-size : .9rem ;
148
+ .button {
149
+ background : rgba (241 , 243 , 253 , 0.2 ); /* violet-0 with transparency */
150
+ border : 1px solid rgba (241 , 243 , 253 , 0.4 ); /* violet-0 with transparency */
151
+ border-radius : 50px ;
152
+ padding : 4px 12px ;
153
+ margin-left : 12px ;
154
+ color : white ;
155
+ font-size : 0.8rem ;
156
+ text-decoration : none ;
157
+ transition : all 0.2s ease ;
158
+
159
+ & :hover {
160
+ background : rgba (241 , 243 , 253 , 0.3 );
161
+ border-color : rgba (241 , 243 , 253 , 0.6 );
137
162
}
138
- // >span {
139
- // @media (max-width: 780px) {
140
- // display: none;
141
- // }
142
- // }
143
-
144
- // @media (max-width: 480px) {
145
- // display: none;
146
- // }
147
163
}
148
164
}
165
+ }
166
+ }
149
167
150
- img {
151
- width : 24px ;
152
- height : auto ;
153
- margin-right : 1rem ;
154
- }
155
-
156
- a {
157
- color : #EFB300 ;
158
- text-decoration : none ;
159
- font-size : 1rem ;
160
- padding-right : 0 ;
161
- padding-left : 12px ;
162
- min-width : 108px ;
163
- }
168
+ @keyframes shimmer {
169
+ 0% {
170
+ background-position : 0% 50% ;
171
+ }
172
+ 50% {
173
+ background-position : 100% 50% ;
174
+ }
175
+ 100% {
176
+ background-position : 0% 50% ;
164
177
}
165
178
}
166
179
167
- /* * Navbar */
180
+ /* Add padding to body to prevent content from hiding under fixed elements */
181
+ body {
182
+ padding-top : calc (var (--docusaurus-announcement-bar-height ) + var (--ifm-navbar-height ));
183
+ }
168
184
185
+ /* * Navbar */
169
186
.navbar {
187
+ position : fixed !important ;
188
+ top : var (--docusaurus-announcement-bar-height );
189
+ left : 0 ;
190
+ right : 0 ;
191
+ margin : 0 ;
192
+ height : var (--ifm-navbar-height );
193
+ z-index : 9998 ;
194
+ background-color : var (--ifm-navbar-background-color );
195
+ box-shadow : 0 1px 2px 0 rgba (0 , 0 , 0 , 0.1 );
196
+
170
197
.navbar__logo {
171
- height : 3 rem ;
198
+ height : 2.5 rem ;
172
199
}
173
200
174
201
.navbar__link {
@@ -524,6 +551,54 @@ div[class^="announcementBar"] {
524
551
}
525
552
}
526
553
554
+ /* Media queries for responsive design */
555
+ @media (max-width : 768px ) {
556
+ div [class ^= " announcementBar" ] {
557
+ div {
558
+ font-size : 0.8rem ;
559
+
560
+ .shimmer-banner {
561
+ font-size : 0.6rem ;
562
+ flex-direction : column ; /* Stack items vertically on very small screens */
563
+
564
+ p {
565
+ font-size : 0.8rem ;
566
+ }
567
+
568
+ .button {
569
+ font-size : 0.6rem ;
570
+ margin-top : 1px ;
571
+ }
572
+ }
573
+ }
574
+ }
575
+ }
576
+
577
+ /* Extra small screens */
578
+ @media (max-width : 480px ) {
579
+ div [class ^= " announcementBar" ] {
580
+ div {
581
+ font-size : 0.6rem ;
582
+
583
+ .shimmer-banner {
584
+ font-size : 0.6rem ;
585
+ justify-content : left ;
586
+ flex-direction : column ; /* Stack items vertically on very small screens */
587
+
588
+
589
+ p {
590
+ font-size : 0.6rem ;
591
+ justify-content : left ;
592
+ }
593
+
594
+ .button {
595
+ font-size : 0.6rem ;
596
+ padding : 3px 10px ;
597
+ }
598
+ }
599
+ }
600
+ }
601
+ }
527
602
528
603
529
604
@keyframes expand-on-scroll {
@@ -534,3 +609,7 @@ div[class^="announcementBar"] {
534
609
transform : scaleY (1 );
535
610
}
536
611
}
612
+
613
+ .announcementBar .button {
614
+ border-radius : 50px ;
615
+ }
0 commit comments