This repository has been archived by the owner on Feb 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshadows.less
55 lines (47 loc) · 1.45 KB
/
shadows.less
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
// Shadows
// =======
// less mixins for Shadows
// In this file
// ------------
// * Text Shadow
// * Box shadpw
// * Inset Box Shadow
// * Drop Shadow
// * Inner Shadow
// Text Shadow
// ~~~~~~~~~~~
.text-shadow (@string : 0 1px 3px rgba(0, 0, 0, 0.25)) {
text-shadow : @string;
}
// Box Shadow
// ~~~~~~~~~~
.box-shadow (@string) {
-webkit-box-shadow : @string;
-moz-box-shadow : @string;
box-shadow : @string;
}
// Inset Box Shadow
// ~~~~~~~~~~~~~~~~
.inset-box-shadow(@horizontal: 0px, @vertical: 1px, @blur: 2px, @color: #CCC) {
-webkit-box-shadow : inset @horizontal @vertical @blur @color;
-moz-box-shadow : inset @horizontal @vertical @blur @color;
box-shadow : inset @horizontal @vertical @blur @color;
}
// Drop Shadow
// ~~~~~~~~~~~
.drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
-webkit-box-shadow : @x @y @blur @spread rgba(0, 0, 0, @alpha);
-moz-box-shadow : @x @y @blur @spread rgba(0, 0, 0, @alpha);
box-shadow : @x @y @blur @spread rgba(0, 0, 0, @alpha);
}
// Inner Shadow
// ~~~~~~~~~~~~
.inner-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
-webkit-box-shadow : inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
-moz-box-shadow : inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
box-shadow : inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
}
// Notes
// -----
// Credits
// :Listed in Credits in (lessbag)[https://www.github.com/kadimisetty/lessbag]