This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
paper-menu-button.css
101 lines (86 loc) · 1.73 KB
/
paper-menu-button.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
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
92
93
94
95
96
97
98
99
100
101
/*
Copyright 2013 The Polymer Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
*/
:host {
display: inline-block;
padding: 8px;
position: relative;
background-image: none;
outline: none;
user-select: none;
-webkit-user-select: none;
cursor: pointer;
}
:host([disabled]) {
cursor: auto;
}
core-icon {
position: relative;
}
core-icon::shadow svg {
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
-webkit-transition: -webkit-transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
transform-origin: 50% 50%;
-webkit-transform-origin: 50% 50%;
}
:host(:hover) core-icon::shadow svg {
transform: scale(1.2);
-webkit-transform: scale(1.2);
}
:host([disabled]:hover) core-icon::shadow svg {
transform: none;
-webkit-transform: none;
}
:host([disabled]) core-icon::shadow path {
fill: #c9c9c9;
}
#dropdown {
background-color: transparent;
margin: 12px;
color: #000;
overflow: visible;
}
#menu {
padding-top: 8px;
padding-bottom: 8px;
margin: 0;
}
.paper-menu-button-overlay-ink {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 40px;
border-radius: 20px;
opacity: 0;
transform: scale(0);
-webkit-transform: scale(0);
}
:host([halign="right"]) .paper-menu-button-overlay-ink {
left: auto;
right: 0;
}
:host([valign="bottom"]) .paper-menu-button-overlay-ink {
top: auto;
bottom: 0;
}
.paper-menu-button-overlay-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-radius: 3px;
opacity: 0;
z-index: -1;
}
:host([noTransition]) .paper-menu-button-overlay-bg {
opacity: 1;
}
.paper-menu-button-menu-container {
overflow: auto;
max-height: 100%;
max-width: 100%;
}