set mobile threshold slightly wider than the board size

This commit is contained in:
Gabriele Cirulli
2014-03-14 18:31:04 +01:00
parent f732d4f547
commit 01264c3252
2 changed files with 13 additions and 11 deletions
+6 -4
View File
@@ -7,6 +7,8 @@ $grid-row-cells: 4;
$tile-size: ($field-width - $grid-spacing * ($grid-row-cells + 1)) / $grid-row-cells;
$tile-border-radius: 3px;
$mobile-threshold: $field-width + 20px;
$text-color: #776E65;
$bright-text-color: #f9f6f2;
@@ -379,13 +381,13 @@ hr {
font-size: 45px;
// Media queries placed here to avoid carrying over the rest of the logic
@include smaller(480px) {
@include smaller($mobile-threshold) {
font-size: 25px;
}
} @else if $power >= 1000 {
font-size: 35px;
@include smaller(480px) {
@include smaller($mobile-threshold) {
font-size: 15px;
}
}
@@ -401,7 +403,7 @@ hr {
font-size: 30px;
@include smaller(480px) {
@include smaller($mobile-threshold) {
font-size: 10px;
}
}
@@ -452,7 +454,7 @@ hr {
margin-top: 50px;
}
@include smaller(480px) {
@include smaller($mobile-threshold) {
// Redefine variables for smaller screens
$field-width: 280px;
$grid-spacing: 10px;