Skip to content

Commit

Permalink
Adjusted media rules
Browse files Browse the repository at this point in the history
Added separate CSS code for views on pads and mobile phones
  • Loading branch information
Gunvor4 committed Sep 8, 2023
1 parent e63f66c commit 523424a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/internal/static/internal/css/make_lore.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ul.lore-article-links {
left: 15%;
}

@media screen and (max-width: 991.98px) {
@media screen and (max-width: 992px) {

#lore-burger-icon {
visibility: visible;
Expand All @@ -119,6 +119,7 @@ ul.lore-article-links {
clip-path: polygon(15% 0%, 0% 15%, 35% 50%, 0% 85%, 15% 100%, 50% 65%, 85% 100%, 100% 85%, 65% 50%, 100% 15%, 85% 0%, 50% 35%);
background: black;
}

#burger-input:checked + #lore-burger-icon ~ #lore-burger-menu {
visibility: visible;
top: 6rem;
Expand All @@ -135,6 +136,23 @@ ul.lore-article-links {
float: none;
width: 100%;
padding: 3rem 15% 2rem 15%;
position: relative;
}

#lore-article .lore-img {
width: 50%;
float: right;
margin: 7px 0 15px 35px;
}
}

@media screen and (max-width: 450px) {

#lore-article {
float: none;
width: 100%;
padding: 3rem 15% 2rem 15%;
position: relative;
}

#lore-article .lore-img {
Expand Down

0 comments on commit 523424a

Please sign in to comment.