-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_layout.scss
46 lines (35 loc) · 1.25 KB
/
_layout.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@import '../../T1000.scss';
$space-s: 4px;
$space-m: 8px;
$space-l: 12px;
$mq-s: "only screen and (max-width:689px)";
$mq-m: "only screen and (min-width:690px)";
$mq-l: "only screen and (min-width:1000px)";
$scalable-props-single: (padding-top, padding-bottom);
$scalable-props-double: (padding, padding-top, padding-bottom);
@include reset-properties((padding, padding-top, padding-bottom, margin-bottom));
@media #{$mq-s} {
@include grid(s, 2, $space-s, prefix);
@include properties($space-s, $scalable-props-single);
@include properties($space-s, $scalable-props-double, double);
@include properties-for-layout(s, $space-s, padding-top, half);
@include reset-properties-for-layout(s, padding-bottom);
.row { padding-top: ($space-s * 4); padding-bottom: ($space-s * 4); }
}
@media #{$mq-m} {
@include grid(m, 6, $space-m, prefix);
@include properties($space-m, $scalable-props-single);
@include properties($space-m, $scalable-props-double, double);
.row { width: 98%; }
}
@media #{$mq-l} {
@include grid(l, 12, $space-l, prefix);
@include properties($space-l, $scalable-props-single);
@include properties($space-l, $scalable-props-double, double);
.row { width: 90%; }
}
.row {
margin: 0 auto;
min-width: 240px;
max-width: 1600px;
}