Skip to content

Commit 35db3d2

Browse files
committed
goueliou: dynamic height only on desktop
1 parent afc60e4 commit 35db3d2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

frugal.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,11 @@ span.gouel-ville-proche {
625625
#title-text {
626626
font-size: 7vw;
627627
}
628+
629+
.gouel {
630+
min-height: calc(var(--duree) * 100px);
631+
}
632+
628633
}
629634

630635

goueliou/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ <h1>Kerlandrier.cc</h1>
120120
for (let i = 0; i < fest.length; i++) {
121121
const div = document.createElement('div');
122122
div.classList.add('gouel');
123-
div.style.height = `${value[i].duration * 140}px`;
123+
// Hauteur de div selon la duree du festival
124+
div.style.setProperty('--duree', fest[i].Duree);
125+
//div.style.minHeight = `${fest[i].Duree * 100}px`;
124126
const tagsdiv = document.createElement('div');
125127

126128
// Mots clés en style Kerlandrier

0 commit comments

Comments
 (0)