responsiveness

This commit is contained in:
ewen 2026-03-30 13:19:10 +02:00
parent 3c5850706d
commit 700e9ad8f6
2 changed files with 34 additions and 0 deletions

View file

@ -50,6 +50,19 @@
width: auto;
display: block;
}
@media (max-width: 600px) {
body {
font-size: 17px;
}
.fenetre {
grid-template-columns: 1fr;
}
.fenetre img.perso {
width: 100%;
height: auto;
}
}
</style>
</head>
<body>

View file

@ -112,6 +112,26 @@
.thanks {
width: 450px;
}
@media (max-width: 600px) {
body {
font-size: 17px;
}
.fenetre {
grid-template-columns: 1fr;
}
.col-cover {
position: static; /* désactive le sticky sur mobile */
padding-top: 0;
}
.fenetre img.cover {
width: 100%;
height: auto;
}
.thanks {
width: 100%;
}
}
</style>
</head>
<body>
@ -176,6 +196,7 @@
el.innerHTML = el.textContent.split('').map(c =>
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
).join('');
</script>
</body>
</html>