-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…on-mobile-views Fix for gutters and vertical pacing on mobiles
- Loading branch information
Showing
19 changed files
with
82 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
@mixin container { | ||
padding: 0 $minimum_gutter_width; | ||
padding: 0 $gutter_unit; | ||
margin: auto; | ||
|
||
@media (min-width: $grid__breakpoint-small) { | ||
max-width: $grid__breakpoint-small - ($minimum_gutter_width * 2); | ||
} | ||
max-width: $grid__breakpoint-small - ($gutter_unit * 1); | ||
|
||
@media (min-width: $grid__breakpoint-medium) { | ||
max-width: $grid__breakpoint-medium - ($minimum_gutter_width * 2); | ||
max-width: $grid__breakpoint-medium - ($gutter_unit * 1.5); | ||
} | ||
|
||
@media (min-width: $grid__breakpoint-large) { | ||
max-width: $grid__breakpoint-large - ($minimum_gutter_width * 2); | ||
max-width: $grid__breakpoint-large - ($gutter_unit * 2); | ||
} | ||
|
||
@media (min-width: $grid__breakpoint-extra-large) { | ||
max-width: $grid__breakpoint-extra-large - ($minimum_gutter_width * 2); | ||
max-width: $grid__breakpoint-extra-large - ($gutter_unit * 2); | ||
} | ||
} | ||
|
||
body { | ||
margin: 0; | ||
font-family: $font__open-sans; | ||
} | ||
|
||
.container { | ||
@include container; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@for $i from 1 through 3 { | ||
.my-#{$i} { | ||
margin-top: $spacer__unit * $i; | ||
margin-bottom: $spacer__unit * $i; | ||
} | ||
.mt-#{$i} { | ||
margin-top: $spacer__unit * $i; | ||
} | ||
.mb-#{$i} { | ||
margin-top: $spacer__unit * $i; | ||
} | ||
.py-#{$i} { | ||
padding-top: $spacer__unit * $i; | ||
padding-bottom: $spacer__unit * $i; | ||
} | ||
.pt-#{$i} { | ||
padding-top: $spacer__unit * $i; | ||
} | ||
.pb-#{$i} { | ||
padding-bottom: $spacer__unit * $i; | ||
} | ||
} |
4 changes: 0 additions & 4 deletions
4
ds_judgements_public_ui/sass/includes/_standard_text_template.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
.standard-text-template { | ||
@include container; | ||
|
||
font-size: 1.1rem; | ||
line-height: 1.4em; | ||
|
||
margin-top: calc($spacer__unit * 4); | ||
margin-bottom: calc($spacer__unit * 4); | ||
min-height: 18rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ds_judgements_public_ui/templates/includes/how_can_this_service_be_improved.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters