1
+ /* General Styles */
1
2
body {
2
3
font-family : Arial, sans-serif;
3
4
margin : 0 ;
6
7
overflow-y : auto; /* Ensure vertical scrollbar appears if needed */
7
8
}
8
9
9
- ::-webkit-scrollbar {
10
- width : 10px ; /* Set the width of the scrollbar */
11
- }
12
-
13
- ::-webkit-scrollbar-track {
14
- background : # f4f4f4 ; /* Background color of the track */
15
- }
16
-
17
- ::-webkit-scrollbar-thumb {
18
- background : # 007bff ; /* Color of the scrollbar thumb */
19
- border-radius : 5px ; /* Round the corners of the scrollbar thumb */
20
- }
21
-
22
- ::-webkit-scrollbar-thumb : hover {
23
- background : # 0056b3 ; /* Darker color on hover */
24
- }
25
10
11
+ /* Header Styles */
26
12
header {
27
13
background-color : # 333 ;
28
14
color : white;
29
- padding : 10 px 0 ;
15
+ padding : 20 px 20 px ;
30
16
display : flex;
31
17
justify-content : space-between;
32
18
align-items : center;
33
- padding : 20px 20px ;
34
19
}
35
20
36
21
header h1 {
@@ -55,6 +40,7 @@ nav ul li a {
55
40
font-weight : bold;
56
41
}
57
42
43
+ /* Main Section Styles */
58
44
main {
59
45
padding : 20px ;
60
46
text-align : center;
@@ -70,6 +56,77 @@ main {
70
56
margin-top : 20px ;
71
57
}
72
58
59
+ /* Statistics Cards Styles */
60
+ .stats-grid {
61
+ display : grid;
62
+ grid-template-columns : repeat (4 , 1fr ); /* 4 columns in desktop view */
63
+ gap : 1rem ;
64
+ margin-top : 2rem ;
65
+ padding : 20px ;
66
+ }
67
+
68
+ .stat-card {
69
+ background-color : # fff ;
70
+ padding : 20px ;
71
+ border-radius : 10px ;
72
+ text-align : center;
73
+ box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.1 );
74
+ }
75
+
76
+ .stat-card h3 {
77
+ margin-bottom : 0.5rem ;
78
+ color : # 007bff ;
79
+ }
80
+
81
+ /* Contributors Grid Styles */
82
+ .contributors-grid {
83
+ display : grid;
84
+ grid-template-columns : repeat (4 , 1fr ); /* 4 columns in desktop view */
85
+ gap : 1rem ;
86
+ margin-top : 1rem ;
87
+ padding : 20px ;
88
+ background-color : # fff ;
89
+ border-radius : 10px ;
90
+ box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.1 );
91
+ }
92
+
93
+ .contributors-grid img {
94
+ border-radius : 50% ;
95
+ width : 80px ;
96
+ height : 80px ;
97
+ object-fit : cover;
98
+ }
99
+
100
+ /* Responsive Adjustments */
101
+ @media (max-width : 768px ) {
102
+ .stats-grid ,
103
+ .contributors-grid {
104
+ grid-template-columns : 1fr ; /* 1 column in mobile view */
105
+ }
106
+ }
107
+
108
+ /* Language List Styles */
109
+ # languages ul {
110
+ list-style : none;
111
+ padding : 0 ;
112
+ margin : 0 ;
113
+ }
114
+
115
+ # languages li {
116
+ margin-bottom : 0.5rem ;
117
+ display : flex;
118
+ align-items : center;
119
+ }
120
+
121
+ .language-bar {
122
+ flex-grow : 1 ;
123
+ height : 10px ;
124
+ border-radius : 5px ;
125
+ margin-left : 0.5rem ;
126
+ background-color : # 007bff ;
127
+ }
128
+
129
+ /* Footer Styles */
73
130
footer {
74
131
background-color : # 333 ;
75
132
color : white;
@@ -140,4 +197,14 @@ footer a {
140
197
flex : 1 1 100% ;
141
198
max-width : 100% ;
142
199
}
143
- }
200
+ }
201
+ /* Additional Styles for Responsiveness */
202
+ @media (max-width : 768px ) {
203
+ .stats-grid {
204
+ grid-template-columns : repeat (auto-fit, minmax (150px , 1fr ));
205
+ }
206
+
207
+ .contributors-grid {
208
+ grid-template-columns : repeat (auto-fit, minmax (80px , 1fr ));
209
+ }
210
+ }
0 commit comments