-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathassets.scss
executable file
·54 lines (52 loc) · 1.38 KB
/
assets.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
/*
* Mixin for placeholder styling
*/
@mixin placeHolder($color) {
&::-webkit-input-placeholder { color:$color; }
&:-moz-placeholder { color:$color; }
}
/*
* Mixin for basic CSS triangles
*/
@mixin triangle($direction:up, $color:#000, $size:100px) {
@if($direction == up) {
border-color: transparent transparent $color;
border-style: solid;
border-width: 0 $size $size;
height: 0;
width: 0;
}
@if($direction == down) {
border-color: $color transparent transparent transparent;
border-style: solid;
border-width: $size;
height:0;
width:0;
}
@if($direction == left) {
border-color: transparent $color transparent transparent;
border-style: solid;
border-width: $size $size $size 0;
height: 0;
width: 0;
}
@if($direction == right) {
border-color: transparent transparent transparent $color;
border-style: solid;
border-width: $size 0 $size $size;
height:0;
width:0;
}
}
/*
* Mixin for selection markup
*/
@mixin selection($background, $color, $element:false) {
@if($element) {
&::-moz-selection{ background:$background; color:$color; text-shadow:none; }
&::selection { background:$background; color:$color; text-shadow:none; }
} @else {
::-moz-selection{ background:$background; color:$color; text-shadow:none; }
::selection { background:$background; color:$color; text-shadow:none; }
}
}