Skip to content

Commit

Permalink
Fixed a scoping issue in main.scss that caused the full-size grid par…
Browse files Browse the repository at this point in the history
…ameters to be used in the mobile section.

Changes to the compiled main.css file are mostly just spacing & indentation changes.  Some of the calculated color values have changed slightly (probably due to rounding differences in Sass?).
  • Loading branch information
anthonykozar committed Mar 28, 2019
1 parent 169f0f3 commit 5a1ea49
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 110 deletions.
175 changes: 72 additions & 103 deletions style/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $tile-border-radius: 3px;

$mobile-threshold: $field-width + 20px;

$text-color: #776E65;
$text-color: #776e65;
$bright-text-color: #f9f6f2;

$tile-color: #eee4da;
Expand Down Expand Up @@ -504,12 +504,11 @@ hr {

@include smaller($mobile-threshold) {
// Redefine variables for smaller screens
$field-width: 280px;
$grid-spacing: 10px;
$grid-row-cells: 4;
$tile-size: ($field-width - $grid-spacing * ($grid-row-cells + 1)) / $grid-row-cells;
$tile-border-radius: 3px;
$game-container-margin-top: 15px;
$field-width: 280px !global;
$grid-spacing: 10px !global;
$tile-size: ($field-width - $grid-spacing * ($grid-row-cells + 1)) / $grid-row-cells !global;
$tile-border-radius: 3px !global;
$game-container-margin-top: 15px !global;

html, body {
font-size: 15px;
Expand Down

0 comments on commit 5a1ea49

Please sign in to comment.