Skip to content

Commit

Permalink
Update media query
Browse files Browse the repository at this point in the history
wrapper, menu, center orientation and mobile width
  • Loading branch information
DamianS-eng authored Feb 1, 2024
1 parent 139955a commit 524c8eb
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions docs/index.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,53 @@
:root {
--border-img: rgba(120, 120, 120, .6);
--border-img: rgba(120, 120, 120, .6); }
body {
}
header {
}
h1 {
text-align: center; }
main {
text-align: center;
}
.wrapper {
display: grid; }
menu {
list-style: none;
margin: 0;
padding: 0; }
main { }
p {
margin-inline: 2.5%; }
.p-center {
text-align: center; }
text-align: center;
}
footer {
height: 10%;
background: red;
}
.center {
width: fit-content;
margin: 3em auto; }

.center img {
border: 2px solid var(--border-img);
padding: 2em; }
.important {
text-decoration: underline;
font-weight: 600;}
@media (orientation: landscape) {
body {
max-width: 80%;
margin-inline: 10%;}
.wrapper {
grid-template-columns: 20% 1fr;
grid-gap: 3rem;
}
menu {
border: 2px solid silver;
height: fit-content;
display: grid;
place-items: center;
}
nav { }
}
@media (width < 38rem) {
.center {
display: grid;
grid-gap: 1rem;
}
}

0 comments on commit 524c8eb

Please sign in to comment.