summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-17 23:53:37 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-17 23:53:37 +0100
commitedce726ba24a41a0f6d825446864b781187ceef4 (patch)
tree2f4dd8ac3c295df8576be6b2a4f2be7d605d58f0
parenta2d75c2b59f192e7c78dae64d7a87338bc6a3107 (diff)
downloadquatuorbellefeuille.com-edce726ba24a41a0f6d825446864b781187ceef4.tar.xz
Implement portraits as grid elements with relative offsets
-rw-r--r--artistes.css33
1 files changed, 28 insertions, 5 deletions
diff --git a/artistes.css b/artistes.css
index 6e2007f..cc7b62b 100644
--- a/artistes.css
+++ b/artistes.css
@@ -14,10 +14,15 @@
}
.main #photos {
- flex: 1;
- align-self: flex-start;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr 1fr;
+
position: sticky;
top: 0;
+
+ height: 80vh;
+
background: #eee;
}
@@ -27,11 +32,15 @@
}
#photos img {
- width: 25%;
+ position: relative;
+ width: 14vw;
+ height: 40vh;
+ object-fit: cover;
+ object-position: center;
border-color: #ddd;
- border-width: 1vw;
+ border-width: 1vh;
border-style: solid;
- border-radius: 10%;
+ border-radius: 2vw;
filter: grayscale(1);
transition: filter 1s;
}
@@ -39,3 +48,17 @@
#photos img:hover {
filter: none;
}
+
+#photos img:nth-of-type(2) {
+ top: 2.8vw;
+ left: -2.8vw;
+}
+
+#photos img:nth-of-type(3) {
+ top: -1.8vw;
+ left: 2.8vw;
+}
+
+#photos img:nth-of-type(4) {
+ top: 1.0vw;
+}