-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmixins
91 lines (86 loc) · 1.66 KB
/
mixins
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
87
88
89
90
91
$fontarial: arial;
$fontS14: 14px;
.xyz{
font-family:fontarial;
font-size:$fontS14;
}
//border-radius
@mixin border-radius($radius) {
border-radius: $radius;
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
-o-border-radius: $radius;
}
//useage
.border{
@include border-radius(10px);
}
//placeholder
@mixin placeHolder{
&::-webkit-input-placeholder {
@content;
}
&:-moz-placeholder { /* Firefox 18- */
@content;
}
&::-moz-placeholder { /* Firefox 19+ */
@content;
}
&:-ms-input-placeholder {
@content;
}
}
//useage
.classname{
@include placeHolder(){
color:$color-b3b2b2;
font-family: $font-vrdna;
font-size: 14px;
};
}
//box-shadow
@mixin box-shadow($top, $left, $blur, $color, $inset:"") {
-webkit-box-shadow:$top $left $blur $color #{$inset};
-moz-box-shadow:$top $left $blur $color #{$inset};
box-shadow:$top $left $blur $color #{$inset};
}
//useage
.test{
@include box-shadow (2px, -2px, 13px, rgba(48, 48, 48, 0.6) );
or
@include box-shadow (2px, -2px, 13px, rgba(48, 48, 48, 0.6),inset );
}
//extends
%tablecell{
display: table-cell;
vertical-align: top;
}
//usages
.ds-dctr-leftsection{
@extend %tablecell;
vertical-align:middle;
}
.ds-dctr-rightsection{
@extend %tablecell;
width: 100px;
}
//clear fix sass
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
&:before {
content: "";
display: table;
clear: both;
}
//usages of clear fix
.wrap {
@extend %clearfix;
}
.main-header {
@extend %clearfix;
}