-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcenter.css
More file actions
42 lines (36 loc) · 1.19 KB
/
center.css
File metadata and controls
42 lines (36 loc) · 1.19 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
/* --- Center the last row of the 'research' grid listing --- */
/* Case 1: id="research" on the listing container */
#research.quarto-listing-container-grid .list.grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
}
#research.quarto-listing-container-grid .list.grid > div {
flex: 0 0 calc(25% - 1.5rem); /* ~4 columns */
max-width: 260px;
}
/* Case 2: some Quarto versions use id="listing-research" */
#listing-research.quarto-listing-container-grid .list.grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
}
#listing-research.quarto-listing-container-grid .list.grid > div {
flex: 0 0 calc(25% - 1.5rem);
max-width: 260px;
}
/* Responsive tweaks */
@media (max-width: 992px) {
#research.quarto-listing-container-grid .list.grid > div,
#listing-research.quarto-listing-container-grid .list.grid > div {
flex: 0 0 calc(50% - 1.5rem); /* 2 per row */
}
}
@media (max-width: 576px) {
#research.quarto-listing-container-grid .list.grid > div,
#listing-research.quarto-listing-container-grid .list.grid > div {
flex: 0 0 100%; /* 1 per row */
}
}