diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-01-17 22:51:10 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-01-17 22:51:10 +0100 |
| commit | eb9f6de104f099233b55504e0bba6cbcc7e8f295 (patch) | |
| tree | c11a747298ba126c173366b809206aef0f1529ab /gallerie.css | |
| parent | fd12ca3baa0cf7c419f41f216bdb0f015bcc9212 (diff) | |
| parent | 5f983bd19a422ae515bd19df061f2f03801e4694 (diff) | |
| download | quatuorbellefeuille.com-eb9f6de104f099233b55504e0bba6cbcc7e8f295.tar.xz | |
Merge branch 'mobile'
Diffstat (limited to 'gallerie.css')
| -rw-r--r-- | gallerie.css | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/gallerie.css b/gallerie.css index f8f6369..a75faf7 100644 --- a/gallerie.css +++ b/gallerie.css @@ -1,18 +1,9 @@ -main { - padding-top: 2%; - padding-bottom: 2%; - padding-right: 2%; -} - .mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mosaic-side), 1fr)); grid-gap: 0.8em; } -.mosaic.photos { - --mosaic-side: 14em; -} .mosaic .photo { position: relative; width: 100%; @@ -38,9 +29,6 @@ main { filter: none; } -.mosaic.videos { - --mosaic-side: 25em; -} .mosaic .video { position: relative; width: 100%; @@ -54,3 +42,27 @@ main { width: 100%; height: 100%; } + +@media (min-width: 40em) { + main { + padding-top: 2%; + padding-bottom: 2%; + padding-right: 2%; + } + + .mosaic.photos { + --mosaic-side: 14em; + } + .mosaic.videos { + --mosaic-side: 25em; + } +} + +@media (max-width: 40em) { + .mosaic.photos { + --mosaic-side: 8em; + } + .mosaic.videos { + --mosaic-side: 10em; + } +} |
