-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmidt-option-menu-item-shared-style.html
58 lines (49 loc) · 1.66 KB
/
cmidt-option-menu-item-shared-style.html
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
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<dom-module id="cmidt-option-menu-item-shared-styles">
<template>
<style>
:host {
display: inline-block;
position: relative;
--inner-item-width: calc(var(--cmidt-option-menu-item-size, 40px) - 16px);
--inner-item-height: calc(var(--cmidt-option-menu-item-size, 40px) - 16px);
outline: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
z-index: 0;
line-height: 1;
padding: 8px;
background: transparent;
width: var(--cmidt-option-menu-item-size, 40px);
height: var(--cmidt-option-menu-item-size, 40px);
/* NOTE: Both values are needed, since some phones require the value to be `transparent`. */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
/* Because of polymer/2558, this style has lower specificity than * */
box-sizing: border-box !important;
@apply(--cmidt-option-menu-item);
}
:host #ink {
color: var(--paper-icon-button-ink-color, --primary-text-color);
opacity: 0.6;
}
:host([disabled]) {
color: var(--paper-icon-button-disabled-text, --disabled-text-color);
pointer-events: none;
cursor: auto;
@apply(--cmidt-option-menu-item-disabled);
}
:host[show-title] {
width: 100%;
height: auto;
min-width: var(--inner-item-width);
padding: 12px;
display: block;
border-radius: 0;
}
</style>
</template>
</dom-module>