New Sass variable $content-width instead of hardcoded value
This commit is contained in:
parent
7aa43f37fb
commit
8e481cdf8e
|
@ -154,8 +154,8 @@ pre {
|
||||||
* Wrapper
|
* Wrapper
|
||||||
*/
|
*/
|
||||||
.wrapper {
|
.wrapper {
|
||||||
max-width: -webkit-calc(800px - (#{$spacing-unit} * 2));
|
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
|
||||||
max-width: calc(800px - (#{$spacing-unit} * 2));
|
max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
padding-right: $spacing-unit;
|
padding-right: $spacing-unit;
|
||||||
|
@ -163,8 +163,8 @@ pre {
|
||||||
@extend %clearfix;
|
@extend %clearfix;
|
||||||
|
|
||||||
@include media-query($on-laptop) {
|
@include media-query($on-laptop) {
|
||||||
max-width: -webkit-calc(800px - (#{$spacing-unit}));
|
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
|
||||||
max-width: calc(800px - (#{$spacing-unit}));
|
max-width: calc(#{$content-width} - (#{$spacing-unit}));
|
||||||
padding-right: $spacing-unit / 2;
|
padding-right: $spacing-unit / 2;
|
||||||
padding-left: $spacing-unit / 2;
|
padding-left: $spacing-unit / 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,9 @@ $grey-color: #828282;
|
||||||
$grey-color-light: lighten($grey-color, 40%);
|
$grey-color-light: lighten($grey-color, 40%);
|
||||||
$grey-color-dark: darken($grey-color, 25%);
|
$grey-color-dark: darken($grey-color, 25%);
|
||||||
|
|
||||||
|
// Width of the content area
|
||||||
|
$content-width: 800px;
|
||||||
|
|
||||||
$on-palm: 600px;
|
$on-palm: 600px;
|
||||||
$on-laptop: 800px;
|
$on-laptop: 800px;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue