summaryrefslogtreecommitdiff
path: root/stylesheets/concerts.css
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-14 12:19:45 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-14 12:19:45 +0100
commitaf1ef910f5d57fc585f819ad06d8af2d5f10824d (patch)
treec4ee8f925f6d846316b354f100e3ac91b06b331e /stylesheets/concerts.css
parented18f9d48c7c57ad9e96d9354bf58a2df9c5c161 (diff)
downloadquatuorbellefeuille.com-af1ef910f5d57fc585f819ad06d8af2d5f10824d.tar.xz
Always display copyright beneath concert photos on mobile
Diffstat (limited to 'stylesheets/concerts.css')
-rw-r--r--stylesheets/concerts.css31
1 files changed, 21 insertions, 10 deletions
diff --git a/stylesheets/concerts.css b/stylesheets/concerts.css
index ac96122..7e04261 100644
--- a/stylesheets/concerts.css
+++ b/stylesheets/concerts.css
@@ -24,7 +24,6 @@ main h1 {
.events {
display: grid;
- grid-auto-rows: var(--cell-height);
grid-template-columns: repeat(auto-fit, minmax(var(--cell-width), 0.5fr));
grid-gap: 0.8em;
}
@@ -38,7 +37,7 @@ a.event {
justify-content: center;
align-items: center;
width: 100%;
- height: 100%;
+ height: var(--cell-height);
text-decoration: none;
}
@@ -60,12 +59,7 @@ a.event {
content: '© ';
}
.credits {
- position: absolute;
- bottom: 0;
- right: 0;
color: white;
- background: #0008;
- border-top-left-radius: 0.5em;
padding: 0 0.2em;
font-size: small;
}
@@ -147,6 +141,14 @@ a.event {
transition: 0.5s;
}
+ .credits {
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ background: #0008;
+ border-top-left-radius: 0.5em;
+ }
+
.eventcontainer:not(.active):hover img,
.eventcontainer:not(.active):focus-within img,
.eventcontainer.active img {
@@ -180,6 +182,10 @@ a.event {
--cell-height: 8em;
}
+ .eventcontainer {
+ display: grid;
+ }
+
.event .summary {
align-self: flex-end;
@@ -191,11 +197,16 @@ a.event {
background: #0008;
}
.eventcontainer.active > a.event .summary {
- height: 100%;
+ align-self: stretch;
+ /* No idea why "100%" does not work here: */
+ height: var(--cell-height);
justify-content: center;
}
- .eventcontainer:not(.active) .credits > span:only-child {
- display: none;
+ .credits {
+ justify-self: end;
+ color: white;
+ background: #444;
+ border-radius: 0 0 0.5em 0.5em;
}
}