UX: switch categories-boxes layouts from flexbox to grid (#19501)
This commit is contained in:
parent
f66e798ed7
commit
2fb2b0a538
|
@ -43,9 +43,8 @@
|
||||||
|
|
||||||
.category-boxes,
|
.category-boxes,
|
||||||
.category-boxes-with-topics {
|
.category-boxes-with-topics {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
gap: 1.5em;
|
||||||
justify-content: flex-start;
|
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -117,9 +116,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-boxes {
|
.category-boxes {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
|
||||||
.category-box {
|
.category-box {
|
||||||
width: 23%;
|
|
||||||
margin: 0 1% 1.5em 1%;
|
|
||||||
> a {
|
> a {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -253,9 +251,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-boxes-with-topics {
|
.category-boxes-with-topics {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
|
||||||
.category-box {
|
.category-box {
|
||||||
width: 31%;
|
|
||||||
margin: 0 1% 1.5em 1%;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue