summaryrefslogtreecommitdiff
path: root/gallerie.css
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-12-13 16:09:22 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-12-13 16:09:22 +0100
commit2af97b95eb3eaa061b783d0aad02cb97d707b0a4 (patch)
tree9c793ed23e49505763c9a497a55b0260c7f08781 /gallerie.css
parent8c01ce478fc3d93f43262dd5d425d082d50e2aa7 (diff)
downloadquatuorbellefeuille.com-2af97b95eb3eaa061b783d0aad02cb97d707b0a4.tar.xz
Start adding gallery
Diffstat (limited to 'gallerie.css')
-rw-r--r--gallerie.css27
1 files changed, 27 insertions, 0 deletions
diff --git a/gallerie.css b/gallerie.css
new file mode 100644
index 0000000..6706c28
--- /dev/null
+++ b/gallerie.css
@@ -0,0 +1,27 @@
+main {
+}
+
+main > div {
+ padding: 2%;
+ overflow: auto;
+}
+
+.photos {
+ display: grid;
+ grid-auto-rows: 14em;
+ grid-template-columns: repeat(auto-fit, 40%);
+ grid-gap: 0.8em;
+}
+
+.photo img {
+ object-position: center;
+ object-fit: cover;
+ height: 100%;
+ width: 100%;
+ transition: filter 0.5s;
+ filter: grayscale(0.8) brightness(0.4);
+}
+
+.photo img:hover {
+ filter: none;
+}