-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuserlist.css
More file actions
106 lines (91 loc) · 2.51 KB
/
Copy pathuserlist.css
File metadata and controls
106 lines (91 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
ol.cards {
display: flex;
flex-wrap: wrap; /* Allows items to wrap to the next line */
gap: 2rem;
padding: 2rem;
margin: 0;
list-style: none;
justify-content: center; /* Centers items horizontally */
}
ol.cards > .card img {
width: 100px; /* Adjust size as needed */
height: 100px; /* Ensure equal width and height */
border-radius: 50%; /* Makes the image circular */
object-fit: cover; /* Ensures the image fits well */
margin-bottom: 1rem; /* Adds spacing below the image */
}
ol.cards > .card {
flex: 1 1 calc(33.333% - 2rem); /* Adjust width, considering gap */
max-width: 300px; /* Ensures cards don't get too wide */
min-width: min(250px, 100%); /* Prevents overflow on narrow viewports */
color: var(--text-secondary);
background-color: var(--bg-card);
text-align: center;
padding: 2rem;
border-radius: .5rem;
box-shadow: .5rem .5rem 1rem var(--shadow-card);
position: relative;
counter-increment: cardCount;
}
/* Numbering */
ol.cards > .card::before {
color: hsl(0 0% 100%);
padding: 0.5rem 1rem;
background-color: var(--accent-color);
border-radius: .5rem .5rem 0 0;
box-shadow: 0.125rem -0.125rem 0.25rem hsl(0 0% 0% / .25);
position: absolute;
top: 100%;
left: 50%;
transform: translate(-50%, -100%);
white-space: nowrap;
}
ol.cards > .card > i {
color: var(--accent-color);
font-size: 2rem;
}
ol.cards > .card > h2 {
font-weight: 400;
color: var(--accent-color);
margin-top: 0;
}
/* Header styling */
header {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 1rem;
}
header h1 {
font-weight: 300;
text-align: center;
}
/* Responsive adjustments */
@media (max-width: 768px) {
ol.cards {
justify-content: center;
}
ol.cards > .card {
flex: 1 1 calc(50% - 2rem); /* Two items per row */
}
}
@media (max-width: 480px) {
ol.cards > .card {
flex: 1 1 100%; /* One item per row */
}
}
/* Make the card rounded */
ol.cards > .card {
flex: 1 1 calc(33.333% - 2rem);
max-width: 300px;
min-width: min(250px, 100%);
color: var(--text-secondary);
background-color: var(--bg-card);
text-align: center;
padding: 2rem;
border-radius: 1rem; /* Rounded corners */
box-shadow: .5rem .5rem 1rem var(--shadow-card);
position: relative;
counter-increment: cardCount;
}