|
6 | 6 | // A general wrapper for various site elements
|
7 | 7 | %wrap {
|
8 | 8 | box-sizing: border-box; // Makes life a little easier
|
9 |
| - padding: 0 $spacer 0 $spacer; |
| 9 | + padding: 0 spacer() 0 spacer(); |
10 | 10 | }
|
11 | 11 | .wrap-header {
|
12 | 12 | @extend %wrap;
|
13 |
| - background: color("header-background"); |
14 |
| - padding-bottom: $spacer/2; |
15 |
| - padding-top: $spacer/2; |
| 13 | + background: color(header-background); |
| 14 | + padding-bottom: spacer(1/2); |
| 15 | + padding-top: spacer(1/2); |
16 | 16 | @include media-above($break-large) {
|
17 |
| - padding-left: $spacer*2; |
18 |
| - padding-right: $spacer*2; |
| 17 | + padding-left: spacer(2); |
| 18 | + padding-right: spacer(2); |
19 | 19 | }
|
20 | 20 | }
|
21 | 21 | .wrap-main { // Wrapper around content and sidebar
|
22 | 22 | @extend %clearfix;
|
23 | 23 | @include media-above($break-large) {
|
24 | 24 | @include scut-center-block($width-site);
|
25 |
| - padding: 0 $spacer*2 0 $spacer*2; |
| 25 | + padding: 0 spacer(2) 0 spacer(2); |
26 | 26 | }
|
27 | 27 | }
|
28 | 28 | .wrap-content {
|
29 | 29 | @extend %wrap;
|
30 |
| - padding: $spacer; |
| 30 | + padding: spacer(); |
31 | 31 | @include media-above($break-large) {
|
32 | 32 | float: left;
|
33 | 33 | padding-left: 0;
|
34 |
| - padding-right: $spacer; |
35 |
| - width: percentage( ( $width-left + $spacer ) / $width-site ); |
| 34 | + padding-right: spacer(); |
| 35 | + width: percentage( ( $width-left + spacer() ) / $width-site ); |
36 | 36 | }
|
37 | 37 | }
|
38 | 38 | .wrap-sidebar {
|
39 | 39 | @extend %wrap;
|
40 |
| - padding: $spacer; |
| 40 | + padding: spacer(); |
41 | 41 | @include media-above($break-large) {
|
42 | 42 | float: right;
|
43 |
| - padding-left: $spacer; |
| 43 | + padding-left: spacer(); |
44 | 44 | padding-right: 0;
|
45 |
| - width: percentage( 1 - ( ( $width-left + $spacer ) / $width-site ) ); |
| 45 | + width: percentage( 1 - ( ( $width-left + spacer() ) / $width-site ) ); |
46 | 46 | }
|
47 | 47 | }
|
48 | 48 | .wrap-footer {
|
49 | 49 | @extend %wrap;
|
50 |
| - padding-bottom: $spacer; |
| 50 | + padding-bottom: spacer(); |
51 | 51 | @include media-above($break-large) {
|
52 |
| - padding-left: $spacer*2; |
53 |
| - padding-right: $spacer*2; |
| 52 | + padding-left: spacer(2); |
| 53 | + padding-right: spacer(2); |
54 | 54 | }
|
55 | 55 | }
|
56 | 56 | .site-header,
|
|
0 commit comments