Commit e1619c95 authored by Pascal Hartig's avatar Pascal Hartig

Replace CSS columns with flexbox

Columns are a bloody nightmare with a horribly broken implementation in Chrome.
This allows us to get rid of a bunch of fixed media queries (yay!) and instead
dynamically reflows into columns if the space allows.
parent 3a72068e
...@@ -126,18 +126,18 @@ header nav a:not(:last-child) { ...@@ -126,18 +126,18 @@ header nav a:not(:last-child) {
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
column-count: 1;
font-size: 17px; font-size: 17px;
display: flex;
flex-wrap: wrap;
} }
.applist li { .applist li {
padding: 10px 0; padding: 10px 0;
column-break-inside: avoid; width: 160px;
} }
.applist a { .applist a {
position: relative; /* popover */ position: relative; /* popover */
column-break-inside: avoid;
} }
.applist-intro { .applist-intro {
...@@ -342,10 +342,6 @@ a.zocial { ...@@ -342,10 +342,6 @@ a.zocial {
} }
@media (max-width: 480px) { @media (max-width: 480px) {
body .applist {
column-count: auto !important;
}
.credit a { .credit a {
display: block; display: block;
} }
...@@ -372,26 +368,6 @@ a.zocial { ...@@ -372,26 +368,6 @@ a.zocial {
} }
} }
@media (min-width: 480px) {
.applist {
column-count: 2;
}
}
@media (min-width: 640px) and (max-width: 770px) {
.applist {
column-count: 3;
}
}
@media (min-width: 771px) {
.js,
.ctojs {
column-count: 4;
}
}
@media (min-width: 992px) { @media (min-width: 992px) {
.logo-icon { .logo-icon {
display: block; display: block;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment