-
Notifications
You must be signed in to change notification settings - Fork 16
/
vaadin-select-styles.html
71 lines (59 loc) · 1.86 KB
/
vaadin-select-styles.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
59
60
61
62
63
64
65
66
67
68
69
70
71
<link rel="import" href="../../../vaadin-item/theme/material/vaadin-item.html">
<link rel="import" href="../../../vaadin-list-box/theme/material/vaadin-list-box.html">
<link rel="import" href="../../../vaadin-text-field/theme/material/vaadin-text-field.html">
<link rel="import" href="../../../vaadin-material-styles/color.html">
<link rel="import" href="../../../vaadin-material-styles/font-icons.html">
<link rel="import" href="../../../vaadin-material-styles/mixins/menu-overlay.html">
<link rel="import" href="../../../vaadin-material-styles/mixins/field-button.html">
<dom-module id="material-select" theme-for="vaadin-select">
<template>
<style include="material-field-button">
:host {
display: inline-flex;
-webkit-tap-highlight-color: transparent;
}
[part="toggle-button"]::before {
content: var(--material-icons-dropdown);
}
:host([opened]) [part="toggle-button"] {
transform: rotate(180deg);
}
/* Disabled */
:host([disabled]) {
pointer-events: none;
}
</style>
</template>
</dom-module>
<dom-module id="material-select-text-field" theme-for="vaadin-select-text-field">
<template>
<style>
:host {
width: 100%;
}
:host([disabled]) [part="input-field"],
[part="input-field"],
[part="value"] {
cursor: default;
}
[part="input-field"]:focus {
outline: none;
}
::slotted([part="value"]) {
display: flex;
}
</style>
</template>
</dom-module>
<dom-module id="material-select-overlay" theme-for="vaadin-select-overlay">
<template>
<style include="material-menu-overlay">
:host([bottom-aligned]) {
justify-content: flex-end;
}
[part="overlay"] {
min-width: var(--vaadin-select-text-field-width);
}
</style>
</template>
</dom-module>