mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-07 22:02:00 +08:00
fileserver: browse: Better grid layout (#5564)
* feat: better implementation of grid layout * fix: vertical alignment
This commit is contained in:
parent
4ba03c9d38
commit
56af1ceb32
|
@ -547,17 +547,16 @@ td .go-up {
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
display: flex;
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
|
||||||
|
justify-items: center;
|
||||||
|
align-items: start;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid .entry {
|
.grid .entry {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 20%;
|
width: 100%;
|
||||||
min-width: 250px;
|
|
||||||
max-width: 400px;
|
|
||||||
flex: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid .entry a {
|
.grid .entry a {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user