Skip to content

Commit

Permalink
Merge pull request #91 from Goutamchoudhary907/main
Browse files Browse the repository at this point in the history
Update CSS for landscape mode
  • Loading branch information
nfoert authored Oct 15, 2024
2 parents 03e5e84 + 4e56c4d commit db01796
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion cardie/static/main/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ body, html {

}

@media (max-width: 1000px) {
@media (max-width: 1000px) {
/* Small Screens */

#home_card {
Expand Down Expand Up @@ -210,4 +210,38 @@ body, html {
margin-left: clamp(2vh, 20px, 2vw);
}

}

/* Properties for landscape mode */

@media (orientation: landscape) and (max-width: 1000px) {

body, html {
scroll-snap-type: none;
scroll-snap-points-y: none;
overflow: auto;
}

#welcome_box{
padding-top: 10em;
scroll-snap-align: none;
}
#home_card{
padding-top: 14em;
scroll-snap-align: none;
}
#home_editor{
padding-top: 40em;
scroll-snap-align: none;
}
#home_editor_image{
padding-top: 10em;
scroll-snap-align: none;
}

#index_top_account_signin {
font-size: 0.8rem;
padding: 5px 10px;
margin-top: 20px;
}
}

0 comments on commit db01796

Please sign in to comment.