-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMMM-SceneSelector.css
More file actions
145 lines (128 loc) · 2.94 KB
/
MMM-SceneSelector.css
File metadata and controls
145 lines (128 loc) · 2.94 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* Scene Selector Overlay - GPU optimized */
.scene-selector-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.65);
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.15s ease;
}
.scene-selector-overlay.active {
opacity: 1;
pointer-events: auto;
}
.scene-selector-panel {
background: rgba(20, 20, 30, 0.97);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 30px 20px;
width: 620px;
max-height: 70vh;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
display: flex;
flex-direction: column;
will-change: transform;
}
.scene-selector-title {
text-align: center;
font-size: 1.4em;
font-weight: 600;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.scene-selector-title i {
font-size: 1.1em;
color: #42A5F5;
}
.scene-selector-list {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: repeat(10, auto);
grid-auto-flow: column;
gap: 2px;
overflow: hidden;
}
/* Single highlight element - GPU composited via transform */
.scene-selector-highlight {
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
border-radius: 10px;
background: rgba(66, 165, 245, 0.15);
border: 2px solid rgba(66, 165, 245, 0.5);
box-shadow: 0 2px 12px rgba(66, 165, 245, 0.2);
transition: transform 16ms linear;
will-change: transform;
pointer-events: none;
z-index: 0;
opacity: 0;
}
.scene-selector-overlay.active .scene-selector-highlight {
opacity: 1;
}
/* Items: only opacity transitions (compositor-only, no repaint) */
.scene-selector-item {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: 10px;
cursor: pointer;
opacity: 0.5;
transition: opacity 16ms linear;
color: #fff;
font-size: 0.9em;
}
.scene-selector-overlay.active .scene-selector-item {
will-change: opacity;
}
.scene-selector-item i {
font-size: 1.3em;
min-width: 28px;
text-align: center;
}
.scene-selector-item .scene-num {
font-size: 0.7em;
min-width: 18px;
text-align: center;
opacity: 0.6;
font-weight: 600;
}
.scene-selector-item .scene-name {
flex: 1;
font-weight: 500;
}
.scene-selector-item.current {
opacity: 0.7;
}
.scene-selector-item.current .scene-name::after {
content: " \2022";
color: #42A5F5;
font-size: 1.2em;
}
.scene-selector-item.selected {
opacity: 1;
}
.scene-selector-item.selected i {
color: #42A5F5;
}
.scene-selector-item.selected .scene-num {
color: #42A5F5;
}