Skip to content

Commit d331465

Browse files
committed
Update styles.css
1 parent dc591e0 commit d331465

File tree

1 file changed

+86
-19
lines changed

1 file changed

+86
-19
lines changed

Website/styles.css

Lines changed: 86 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* General Styles */
12
body {
23
font-family: Arial, sans-serif;
34
margin: 0;
@@ -6,31 +7,15 @@ body {
67
overflow-y: auto; /* Ensure vertical scrollbar appears if needed */
78
}
89

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-
}
2510

11+
/* Header Styles */
2612
header {
2713
background-color: #333;
2814
color: white;
29-
padding: 10px 0;
15+
padding: 20px 20px;
3016
display: flex;
3117
justify-content: space-between;
3218
align-items: center;
33-
padding: 20px 20px;
3419
}
3520

3621
header h1 {
@@ -55,6 +40,7 @@ nav ul li a {
5540
font-weight: bold;
5641
}
5742

43+
/* Main Section Styles */
5844
main {
5945
padding: 20px;
6046
text-align: center;
@@ -70,6 +56,77 @@ main {
7056
margin-top: 20px;
7157
}
7258

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 */
73130
footer {
74131
background-color: #333;
75132
color: white;
@@ -140,4 +197,14 @@ footer a {
140197
flex: 1 1 100%;
141198
max-width: 100%;
142199
}
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

Comments
 (0)