-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsharedStyle.ts
88 lines (78 loc) · 1.73 KB
/
sharedStyle.ts
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
import { css } from 'lit-element';
const sharedStyle = css`
:host {
overflow: visible !important;
display: block;
--mmp-scale: var(--mini-media-player-scale, 1);
--mmp-unit: calc(var(--mmp-scale) * 40px);
}
:host ::slotted(.card-content) {
padding: 16px;
}
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.label {
margin: 0 8px;
}
ha-icon {
width: calc(var(--mmp-unit) * .6);
height: calc(var(--mmp-unit) * .6);
}
ha-icon-button {
width: var(--mmp-unit);
height: var(--mmp-unit);
color: var(--mmp-text-color, var(--primary-text-color));
transition: color .25s;
}
ha-icon-button[color] {
color: var(--mmp-accent-color, var(--accent-color)) !important;
opacity: 1 !important;
}
ha-icon-button[inactive] {
opacity: .5;
}
ha-icon-button[outlined] {
color: var(--accent-color) !important;
}
.play-pause {
display: flex;
align-items: center;
justify-content: center;
}
.activities {
display: flex;
flex-wrap: wrap;
}
.activities-icons {
justify-content: space-evenly;
}
.activities>mwc-button:not(:first-child) {
flex-grow: 1;
}
.remote {
display: grid;
grid-template-columns: auto auto auto;
grid-template-rows: auto auto auto;
align-items: center;
justify-content: center;
text-align: center;
}
.xbox-buttons {
display: grid;
grid-template-columns: auto auto 10px auto auto auto auto;
align-items: center;
justify-content: center;
text-align: center;
}
.volume-controls {
display: flex;
justify-content: center;
}
.volume-controls>paper-slider {
flex: 1;
}
`;
export default sharedStyle;