-
Notifications
You must be signed in to change notification settings - Fork 0
/
_grid.scss
65 lines (56 loc) · 1.58 KB
/
_grid.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*~~~~~~~~~~~ GRID ~~~~~~~~~~~~~~*/
// Media Queries
@mixin breakpoint($point) {
@if $point == extra-large {
@media (max-width: 1200px) { @content; }
} @else if $point == large {
@media (max-width: 1000px) { @content; }
} @else if $point == medium {
@media (max-width: 800px) { @content; }
} @else if $point == medium-step {
@media (max-width: 600px) { @content; }
} @else if $point == small {
@media (max-width: 400px) { @content; }
} @else if $point == dang-small {
@media (max-width: 380px) { @content; }
}
}
// Media Query Syntax: // @include breakpoint(small) { width: 60%; }
// drop in a div with this class to visualize your breakpoints as you scale the page
.breakpoint-tester {
position: fixed;
top: 50px;
right: 0;
background: $orange;
font-size: 20px;
padding: 10px 15px;
z-index: 1001;
&:before { content: 'default'; }
@include breakpoint(extra-large) { &:before { content: 'extra-large'; } }
@include breakpoint(large) { &:before { content: 'large'; } }
@include breakpoint(medium) { &:before { content: 'medium'; } }
@include breakpoint(medium-step) { &:before { content: 'medium-step'; } }
@include breakpoint(small) { &:before { content: 'small'; } }
@include breakpoint(dang-small) { &:before { content: 'dang-small'; } }
}
/*
* * * * * * * * * * * * * * * * * * *
* GRID
* * * * * * * * * * * * * * * * * * *
*/
.container {
position: relative;
display: block;
width: 100%;
max-width: 1200px;
height: auto;
margin: 0 auto;
@include clearfix();
padding: 0 15px;
}
.column {
float: left;
width: 100%;
padding: 0 15px;
@include clearfix();
}