-
Notifications
You must be signed in to change notification settings - Fork 7
/
vaadin-item.html
55 lines (47 loc) · 1.28 KB
/
vaadin-item.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
<link rel="import" href="font-icons.html">
<link rel="import" href="color.html"
<link rel="import" href="typography.html">
<link rel="import" href="../vaadin-item/src/vaadin-item.html">
<dom-module id="material-item" theme-for="vaadin-item">
<template>
<style>
:host {
display: flex;
align-items: center;
box-sizing: border-box;
line-height: 24px;
border-radius: 0;
overflow: hidden;
}
/* It's the list-box's responsibility to add the focus style */
:host([focused]) {
outline: none;
}
/* Selected item has an icon */
:host::before {
display: var(--_valo-item-selected-icon-display, none);
content: "";
font-family: valo-icons;
font-size: 24px;
line-height: 1;
font-weight: 400;
width: 24px;
margin-right: 4px;
color: var(--material-primary-text-color);
flex: none;
}
:host([selected])::before {
content: "\e902";
}
:host(:hover) {
background-color: transparent;
}
/* Disabled item */
:host([disabled]) {
color: var(--material-disabled-text-color);
cursor: default;
pointer-events: none;
}
</style>
</template>
</dom-module>