Skip to content

Commit

Permalink
Change flex direction of top stories in tablet mode, change homepage …
Browse files Browse the repository at this point in the history
…resizing to be based on tablet size
  • Loading branch information
SamuelmdLow committed Nov 19, 2024
1 parent b3c8983 commit 811eca5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
padding: 0;
}

@media ($bp-smaller-than-phablet) {
@media ($bp-smaller-than-tablet) {
display:none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ubyssey/static_src/src/styles/modules/_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ html.hairlines {
width: 100%;
padding-bottom: 3em;

@media ($bp-larger-than-phablet) {
@media ($bp-larger-than-tablet) {
margin-right: 20px;
width: 50%;
padding-right: 20px;
Expand Down
10 changes: 10 additions & 0 deletions ubyssey/static_src/src/styles/objects/_article_top.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,16 @@
}
}

@media ($bp-smaller-than-tablet) {
.o-article--top_article {
flex-direction: row-reverse;
justify-content: left;
.o-article__right {
margin-left: 0;
margin-right: 1em;
}
}
}

[color-css-theme="light"] {
.o-article--top_article {
Expand Down

0 comments on commit 811eca5

Please sign in to comment.