mobile compatibility on chromium browsers fix

main
Midnight 3 years ago
parent fb5458692f
commit d1948c5fe9

@ -29,7 +29,9 @@ export default function Index() {
<section className="card"> <section className="card">
<div className={styles.avatar}> <div className={styles.avatar}>
<div className={styles.icon}>
<img src="/trickwow.png"></img> <img src="/trickwow.png"></img>
</div>
<div> <div>
<h1>Hi, I'm Trick!</h1> <h1>Hi, I'm Trick!</h1>
<h4><RandomMotto /></h4> <h4><RandomMotto /></h4>

@ -12,21 +12,24 @@
font-weight: normal; font-weight: normal;
} }
.avatar > img { .avatar > .icon {
width: 25%;
transition-duration: 0.3s;
}
.avatar > .icon > img {
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
border-radius: 100%; border-radius: 100%;
max-width: 100%;
transition-duration: 0.3s;
} }
.avatar > img:hover { .avatar > .icon:hover {
transition-duration: 0.3s; transition-duration: 0.3s;
transform: scale(1.1) rotate(-20deg); transform: scale(1.1) rotate(-20deg);
} }
/* mobile */ /* mobile */
@media (max-aspect-ratio: 1/1) { @media (max-aspect-ratio: 4/5) {
.avatar { .avatar {
flex-direction: column; flex-direction: column;
height: unset; height: unset;
@ -34,6 +37,10 @@
gap: unset; gap: unset;
} }
.avatar > .icon {
width: 100%;
}
.avatar h1 { .avatar h1 {
font-size: 1.5em; font-size: 1.5em;
} }

@ -55,7 +55,7 @@ hr {
} }
.container { .container {
width: 1200px; width: 100%;
margin: 0 auto; margin: 0 auto;
} }
@ -87,10 +87,13 @@ hr {
.content { .content {
flex-direction: column; flex-direction: column;
} }
.container {
width: 100%;
}
} }
@media(max-width: 1200px) { @media(min-width: 1200px) {
.container { .container {
width: 100%; max-width: 1200px;
} }
} }
Loading…
Cancel
Save