responsiveness
This commit is contained in:
parent
3c5850706d
commit
700e9ad8f6
13
index.html
13
index.html
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Reference in a new issue