Skip to content

Commit

Permalink
fix: use greater width for max-width
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Dec 18, 2019
1 parent 46660e2 commit 8c4aae2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions assets/scss/_common/responsive.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@if ($postWidth > $listWidth) {
$smallerWidth: $listWidth !global;
$greaterWidth: $postWidth !global;
} @else {
$smallerWidth: $postWidth !global;
$greaterWidth: $listWidth !global;
}

// Remove the unit of a length
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_variables/max-width.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$maxWidth: $fontSize * (strip-unit($smallerWidth) + 5);
$maxWidth: $fontSize * (strip-unit($greaterWidth) + 5);

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"css/meme.min.ba4b8ce8559148e60d41318483a27f10918843df3d25c7d878a32d6ca0c8d34a.css","MediaType":"text/css","Data":{"Integrity":"sha256-ukuM6FWRSOYNQTGEg6J/EJGIQ989JcfYeKMtbKDI00o="}}
{"Target":"css/meme.min.a5649675db287fb9b9f916eb55a8dbe6dc2117280fd99742d2bbfa6deecb6363.css","MediaType":"text/css","Data":{"Integrity":"sha256-pWSWddsof7m5+RbrVajb5twhFygP2ZdC0rv6be7LY2M="}}

0 comments on commit 8c4aae2

Please sign in to comment.