diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-02-27 23:47:13 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-02-27 23:47:13 +0100 |
| commit | 9fb0bb0d17df91e939b2198f4ea2fa5948e4a272 (patch) | |
| tree | ed36d027bf1113cf1aaa58d1641b6bf22d1c9432 /stylesheets/galerie.css | |
| parent | d46b50a2087921100138901bb29a0afcc9b8741d (diff) | |
| download | quatuorbellefeuille.com-9fb0bb0d17df91e939b2198f4ea2fa5948e4a272.tar.xz | |
Simplify gallery structure
Diffstat (limited to 'stylesheets/galerie.css')
| -rw-r--r-- | stylesheets/galerie.css | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/stylesheets/galerie.css b/stylesheets/galerie.css index dc974a9..28166b8 100644 --- a/stylesheets/galerie.css +++ b/stylesheets/galerie.css @@ -4,20 +4,14 @@ grid-gap: 0.8em; } -.mosaic .photo { +.mosaic a.photo { position: relative; width: 100%; height: 0; padding-bottom: 100%; } -.mosaic .photo > * { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} .mosaic img { + position: absolute; object-position: center; object-fit: cover; height: 100%; |
