-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_generators.scss
More file actions
36 lines (33 loc) · 1.06 KB
/
_generators.scss
File metadata and controls
36 lines (33 loc) · 1.06 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
@mixin column-styles($gutter,$width) {
float: left;
padding-left:#{$gutter};
padding-right:#{$gutter};
min-height:1px;
width:$width;
}
@mixin grid($columns,$affix:"") {
@for $i from 1 through $columns {
.col-#{$affix}l-#{$i} { @include column-styles($columnSpacing,percentage(1/$columns*$i)); }
.col-#{$affix}m-#{$i} { @include column-styles($columnSpacing,percentage(1/$columns*$i)); }
.col-#{$affix}s-#{$i} { @include column-styles($columnSpacing,percentage(1/$columns*$i)); }
}
.row {margin-left:-#{$columnSpacing};margin-right:-#{$columnSpacing};}
@media all and (max-width:991px) {
@for $i from 1 through $columns {
.col-#{$affix}l-#{$i} {width:100%;float:none; }
}
}
@media all and (max-width:767px) {
@for $i from 1 through $columns {
.col-#{$affix}m-#{$i} {width:100%;float:none; }
}
}
}
@mixin placeholder {
&.placeholder { @content; }
&:-moz-placeholder { @content; }
&::-moz-placeholder { @content; }
&:-ms-input-placeholder { @content; }
&::-webkit-input-placeholder { @content; }
}
@include grid(12);