/
_mixins.scss
50 lines (46 loc) · 1.06 KB
/
_mixins.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
@mixin grid {
.wrapper {
width: $grid_width + $gutter;
line-height:1.5;
font-size: 16px;
margin: 0 auto;
position: relative;
@include pie-clearfix;
&.grid {
background: url('http://griddle.it/#{$_grid_width}-#{$grid_columns}-#{$_gutter}') repeat-y center;
}
}
.column {
float: left;
margin: ($gutter / 2);
}
}
@mixin grid-block($cols) {
width: ($columnwidth * $cols + (($cols - 1) * $gutter));
@extend .column;
}
@mixin button($text_color, $start_color, $end_color, $border_color) {
@include border-radius(5px);
@include linear-gradient(color-stops($start_color, $end_color));
border: 1px solid $border_color;
color: $text_color;
display: inline-block;
font-size: 13px;
font-weight: bold;
height: 31px;
line-height: 31px;
padding: 0 14px;
text-decoration: none;
}
@mixin flash($background) {
@include opacity(0.8);
border-top: 1px solid #555;
color: #fff;
font-weight: bold;
line-height: 22px;
margin-bottom: 20px;
margin-top: -40px;
right: 0;
text-align: center;
background: $background;
}