forked from googlearchive/paper-shadow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paper-shadow.css
66 lines (53 loc) · 1.78 KB
/
paper-shadow.css
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
/*
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
html /deep/ paper-shadow,
html /deep/ paper-animated-shadow {
display: block;
position: relative;
}
html /deep/ paper-shadow::shadow #shadow-bottom,
html /deep/ paper-shadow::shadow #shadow-top {
border-radius: inherit;
pointer-events: none;
}
html /deep/ paper-shadow::shadow #shadow-bottom[animated],
html /deep/ paper-shadow::shadow #shadow-top[animated] {
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
html /deep/ .paper-shadow-top-z-1 {
box-shadow: none;
}
html /deep/ .paper-shadow-bottom-z-1 {
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}
html /deep/ .paper-shadow-top-z-2 {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}
html /deep/ .paper-shadow-bottom-z-2 {
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3);
}
html /deep/ .paper-shadow-top-z-3 {
box-shadow: 0 11px 7px 0 rgba(0, 0, 0, 0.19);
}
html /deep/ .paper-shadow-bottom-z-3 {
box-shadow: 0 13px 25px 0 rgba(0, 0, 0, 0.3);
}
html /deep/ .paper-shadow-top-z-4 {
box-shadow: 0 14px 12px 0 rgba(0, 0, 0, 0.17);
}
html /deep/ .paper-shadow-bottom-z-4 {
box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
}
html /deep/ .paper-shadow-top-z-5 {
box-shadow: 0 17px 17px 0 rgba(0, 0, 0, 0.15);
}
html /deep/ .paper-shadow-bottom-z-5 {
box-shadow: 0 27px 55px 0 rgba(0, 0, 0, 0.3);
}