-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_grid.css
More file actions
86 lines (60 loc) · 1.7 KB
/
_grid.css
File metadata and controls
86 lines (60 loc) · 1.7 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
=================================================================================================
# 2 Grid
-------------------------------------------------------------------------------------------------
*/
body{margin: 0}
*{box-sizing: border-box}
.container-narrow,
.container{
width: 100%;
margin-right: auto;
margin-left: auto}
.row,
.row-reversed,
.column,
.column-reversed{
display: flex;
flex: 0 1 auto;
flex-wrap: wrap}
.column,
.column-reversed{height: 100%}
.row{flex-direction: row}
.row-reversed{flex-direction: row-reverse}
.column{flex-direction: column}
.column-reversed{flex-direction: column-reverse}
[class*='all-']{
padding: calc($gutter / 2);
flex: 0 0 auto}
.all-auto{flex-grow: 1}
@for $i from 1 to 12 {
@mixin grid-main all, $i;
@mixin grid-offset all, $i;
}
@media screen and ( min-width: $desktop-min ){
.container{max-width: $desktop-contianer-width}
[class*='desktop-']{
padding: calc($gutter / 2);
flex: 0 0 auto}
@for $i from 1 to 12 {
@mixin grid-main desktop, $i;
@mixin grid-offset desktop, $i;
}
.desktop-auto{flex-grow: 1}
.desktop-hidden{display: none}
}
@each $device in laptop, tablet, mobile{
@media screen and ( min-width: $($(device)-min) ) and ( max-width: $($(device)-max) ){
.container{max-width: $($(device)-contianer-width)}
[class*='$(device)-']{
padding: calc($gutter / 2);
flex: 0 0 auto
}
@for $i from 1 to 12 {
@mixin grid-main $device, $i;
@mixin grid-offset $device, $i;
}
.$(device)-auto{flex-grow: 1}
.$(device)-hidden{display: none}
}
}