File tree Expand file tree Collapse file tree 2 files changed +65
-5
lines changed Expand file tree Collapse file tree 2 files changed +65
-5
lines changed Original file line number Diff line number Diff line change 50
50
}
51
51
52
52
.navbar-right-links {
53
- display : none;
53
+ display : none !important ;
54
54
position : absolute;
55
55
top : 70px ; /* adjust depending on navbar height */
56
56
right : 10px ;
68
68
}
69
69
70
70
.navbar-right-links .show {
71
- display : flex;
71
+ display : flex !important ;
72
72
}
73
73
74
74
.nav-item {
@@ -1347,7 +1347,11 @@ <h4>Connect</h4>
1347
1347
< script >
1348
1348
function toggleMenu ( ) {
1349
1349
const nav = document . querySelector ( ".navbar-right-links" ) ;
1350
- nav . classList . toggle ( "show" ) ;
1350
+ if ( nav . classList . contains ( "show" ) ) {
1351
+ nav . classList . remove ( "show" ) ;
1352
+ } else {
1353
+ nav . classList . add ( "show" ) ;
1354
+ }
1351
1355
}
1352
1356
1353
1357
// Dark mode functionality
Original file line number Diff line number Diff line change @@ -178,12 +178,19 @@ body {
178
178
font-size : 1.5rem ;
179
179
}
180
180
.contributions {
181
- background-color : # 1a1c29 ;
182
- color : # 00ff90 ;
181
+ background : linear-gradient ( 135 deg , var ( --primary ) , var ( --primary-dark )) ;
182
+ color : # fff ;
183
183
padding : 5px 10px ;
184
184
border-radius : 12px ;
185
185
font-weight : bold;
186
186
text-align : center;
187
+ transition : transform 0.25s ease , box-shadow 0.25s ease;
188
+ box-shadow : 0 4px 12px rgba (30 , 33 , 63 , 0.05 );
189
+ }
190
+ .contributions : hover {
191
+ background : # 1d4ed8 ;
192
+ transform : translateY (-2px );
193
+ box-shadow : 0 6px 14px rgba (99 , 102 , 241 , 0.3 );
187
194
}
188
195
.level {
189
196
padding : 5px 10px ;
@@ -196,3 +203,52 @@ body {
196
203
text-decoration : none;
197
204
font-size : 18px ;
198
205
}
206
+ /* add responsive ness */
207
+ @media (max-width : 900px ) {
208
+ .leaderboard {
209
+ max-width : 700px ;
210
+ }
211
+ th : nth-child (3 ),
212
+ td : nth-child (3 ) {
213
+ display : none; /* hide contributions count column for small screens */
214
+ }
215
+ }
216
+ @media (max-width : 720px ) {
217
+ th : nth-child (5 ) , td : nth-child (5 ){
218
+ display : none;
219
+ }
220
+ .contributor-info img {
221
+ width : 32px ;
222
+ height : 32px ;
223
+ }
224
+ }
225
+ @media (max-width : 606px ) {
226
+ .leaderboard {
227
+ max-width : 200px ;
228
+ text-align : center;
229
+ }
230
+ th : nth-child (4 ) , td : nth-child (4 ){
231
+ display : none;
232
+ }
233
+ .contributor-info img {
234
+ width : 30px ;
235
+ height : 30px ;
236
+ }
237
+ }
238
+
239
+ @media (max-width : 467px ) {
240
+ .leaderboard {
241
+ max-width : 150px ;
242
+ }
243
+ .contributor-info .name {
244
+ font-size : 1rem ;
245
+ }
246
+ }
247
+ @media (max-width : 369px ) {
248
+ th : nth-child (1 ), td : nth-child (1 ){
249
+ display : none;
250
+ }
251
+ .leaderboard {
252
+ max-width : 100px ;
253
+ }
254
+ }
You can’t perform that action at this time.
0 commit comments