responsiveness
This commit is contained in:
parent
3c5850706d
commit
700e9ad8f6
13
index.html
13
index.html
|
|
@ -50,6 +50,19 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
body {
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
.fenetre {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
.fenetre img.perso {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,26 @@
|
||||||
.thanks {
|
.thanks {
|
||||||
width: 450px;
|
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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -176,6 +196,7 @@
|
||||||
el.innerHTML = el.textContent.split('').map(c =>
|
el.innerHTML = el.textContent.split('').map(c =>
|
||||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||||
).join('');
|
).join('');
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in a new issue