summaryrefslogtreecommitdiff
path: root/actualités.css
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-01-01 23:52:32 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-01-01 23:52:32 +0100
commit870e6a2c435ed45c965d18c055f458d3ecbe9357 (patch)
treeefdb80929d68bb9146a9df9dae740a4ab174464f /actualités.css
parent3158afcb7ec574878140254e87b5d50220ec61b1 (diff)
downloadquatuorbellefeuille.com-870e6a2c435ed45c965d18c055f458d3ecbe9357.tar.xz
Unpin event descriptions and make grid scrollable instead
Make grid scrollbar less conspicuous and more in-line with the rest of the website.
Diffstat (limited to 'actualités.css')
-rw-r--r--actualités.css30
1 files changed, 24 insertions, 6 deletions
diff --git a/actualités.css b/actualités.css
index 24a8108..ea439ac 100644
--- a/actualités.css
+++ b/actualités.css
@@ -1,16 +1,35 @@
main {
display: grid;
- grid-template-columns: 65% 35%;
+ grid-template-columns: 60% 40%;
}
main > div {
padding: 1em;
+ overflow: auto;
+}
+
+#event-list {
+ max-height: 60vh;
+ scrollbar-width: thin;
+ scrollbar-color: darkblue #8ad;
+}
+
+#event-list::-webkit-scrollbar {
+ width: 0.25em;
+}
+
+#event-list::-webkit-scrollbar-track {
+ background: #8ad;
+}
+
+#event-list::-webkit-scrollbar-thumb {
+ background: darkblue;
}
.events {
display: grid;
- grid-auto-rows: 14em;
- grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
+ grid-auto-rows: 12em;
+ grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
grid-gap: 0.8em;
}
@@ -54,7 +73,6 @@ main > div {
opacity: 1;
}
-.details.active {
- position: sticky;
- top: 0;
+.details.active > *:first-child {
+ margin-top: 0;
}