ywana-core8 0.2.5 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1134 -54
- package/dist/index.js +293 -90
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +293 -90
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +293 -90
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/desktop/ApplicationMenu.css +153 -54
- package/src/desktop/ApplicationMenu.js +75 -69
- package/src/desktop/Desktop.stories.jsx +256 -11
- package/src/desktop/WindowContext.js +4 -0
- package/src/desktop/WindowManager.js +54 -9
- package/src/desktop/desktop-linux.css +287 -0
- package/src/desktop/desktop-macos.css +317 -0
- package/src/desktop/desktop-windows.css +244 -0
- package/src/desktop/desktop.css +30 -0
- package/src/desktop/desktop.js +107 -67
- package/src/desktop/window.css +98 -0
- package/src/desktop/window.js +172 -4
- package/src/html/button.css +5 -0
- package/src/html/button.js +2 -1
@@ -0,0 +1,287 @@
|
|
1
|
+
/* Linux Desktop Theme (GNOME/Ubuntu inspired) */
|
2
|
+
|
3
|
+
.desktop--linux {
|
4
|
+
background: linear-gradient(135deg, #2c001e 0%, #4c2c92 50%, #0e4b99 100%);
|
5
|
+
font-family: 'Ubuntu', 'Cantarell', 'DejaVu Sans', sans-serif;
|
6
|
+
}
|
7
|
+
|
8
|
+
.desktop--linux .desktop__background {
|
9
|
+
background-image:
|
10
|
+
radial-gradient(circle at 30% 70%, rgba(233, 84, 32, 0.2) 0%, transparent 50%),
|
11
|
+
radial-gradient(circle at 70% 30%, rgba(119, 41, 83, 0.3) 0%, transparent 50%),
|
12
|
+
radial-gradient(circle at 50% 50%, rgba(14, 75, 153, 0.2) 0%, transparent 50%);
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Linux-style windows (GNOME) */
|
16
|
+
.desktop--linux .window {
|
17
|
+
border: 1px solid #2d2d2d;
|
18
|
+
border-radius: 12px 12px 0 0;
|
19
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
20
|
+
background: #ffffff;
|
21
|
+
overflow: hidden;
|
22
|
+
}
|
23
|
+
|
24
|
+
.desktop--linux .window__header {
|
25
|
+
background: linear-gradient(180deg, #f6f5f4 0%, #e6e5e4 100%);
|
26
|
+
border-bottom: 1px solid #d0cfce;
|
27
|
+
border-radius: 12px 12px 0 0;
|
28
|
+
height: 38px;
|
29
|
+
padding: 0 16px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.desktop--linux .window__title {
|
33
|
+
font-size: 14px;
|
34
|
+
font-weight: 500;
|
35
|
+
color: #2e3436;
|
36
|
+
}
|
37
|
+
|
38
|
+
.desktop--linux .window__control {
|
39
|
+
width: 24px;
|
40
|
+
height: 24px;
|
41
|
+
border: none;
|
42
|
+
border-radius: 50%;
|
43
|
+
font-size: 12px;
|
44
|
+
color: #2e3436;
|
45
|
+
display: flex;
|
46
|
+
align-items: center;
|
47
|
+
justify-content: center;
|
48
|
+
transition: all 0.2s ease;
|
49
|
+
margin-left: 8px;
|
50
|
+
}
|
51
|
+
|
52
|
+
.desktop--linux .window__control--minimize {
|
53
|
+
background: #f6d32d;
|
54
|
+
border: 1px solid #f5c211;
|
55
|
+
}
|
56
|
+
|
57
|
+
.desktop--linux .window__control--maximize {
|
58
|
+
background: #33d17a;
|
59
|
+
border: 1px solid #2ec27e;
|
60
|
+
}
|
61
|
+
|
62
|
+
.desktop--linux .window__control--close {
|
63
|
+
background: #e01b24;
|
64
|
+
border: 1px solid #c01c28;
|
65
|
+
color: white;
|
66
|
+
}
|
67
|
+
|
68
|
+
.desktop--linux .window__control:hover {
|
69
|
+
transform: scale(1.1);
|
70
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
71
|
+
}
|
72
|
+
|
73
|
+
.desktop--linux .window__control--minimize::before {
|
74
|
+
content: '−';
|
75
|
+
font-weight: bold;
|
76
|
+
}
|
77
|
+
|
78
|
+
.desktop--linux .window__control--maximize::before {
|
79
|
+
content: '□';
|
80
|
+
font-weight: bold;
|
81
|
+
}
|
82
|
+
|
83
|
+
.desktop--linux .window__control--close::before {
|
84
|
+
content: '×';
|
85
|
+
font-weight: bold;
|
86
|
+
}
|
87
|
+
|
88
|
+
/* Linux taskbar styling (GNOME Activities) */
|
89
|
+
.desktop--linux .desktop-taskbar {
|
90
|
+
background: rgba(0, 0, 0, 0.85);
|
91
|
+
backdrop-filter: blur(10px);
|
92
|
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
93
|
+
}
|
94
|
+
|
95
|
+
.desktop--linux .taskbar-button {
|
96
|
+
background: rgba(255, 255, 255, 0.08);
|
97
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
98
|
+
border-radius: 8px;
|
99
|
+
color: #ffffff;
|
100
|
+
font-family: 'Ubuntu', sans-serif;
|
101
|
+
font-size: 13px;
|
102
|
+
font-weight: 400;
|
103
|
+
transition: all 0.3s ease;
|
104
|
+
}
|
105
|
+
|
106
|
+
.desktop--linux .taskbar-button:hover {
|
107
|
+
background: rgba(255, 255, 255, 0.15);
|
108
|
+
border-color: rgba(255, 255, 255, 0.25);
|
109
|
+
transform: translateY(-1px);
|
110
|
+
}
|
111
|
+
|
112
|
+
.desktop--linux .taskbar-button--active {
|
113
|
+
background: rgba(53, 132, 228, 0.3);
|
114
|
+
border-color: rgba(53, 132, 228, 0.5);
|
115
|
+
}
|
116
|
+
|
117
|
+
/* Linux Start Button Styling (GNOME Activities) */
|
118
|
+
.desktop--linux .toggle-button {
|
119
|
+
/* Reset selector styles and apply Linux button styling */
|
120
|
+
position: relative;
|
121
|
+
padding: 8px 16px;
|
122
|
+
display: flex;
|
123
|
+
align-items: center;
|
124
|
+
justify-content: center;
|
125
|
+
gap: 8px;
|
126
|
+
overflow: hidden;
|
127
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
128
|
+
outline: none;
|
129
|
+
transition: all 0.3s ease;
|
130
|
+
color: #ffffff;
|
131
|
+
background: linear-gradient(180deg, rgba(53, 132, 228, 0.9) 0%, rgba(26, 95, 180, 0.9) 100%);
|
132
|
+
min-height: 40px;
|
133
|
+
border-radius: 8px;
|
134
|
+
cursor: pointer;
|
135
|
+
font-family: 'Ubuntu', 'Cantarell', sans-serif;
|
136
|
+
font-weight: 500;
|
137
|
+
text-decoration: none;
|
138
|
+
white-space: nowrap;
|
139
|
+
list-style: none;
|
140
|
+
margin: 0;
|
141
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
142
|
+
}
|
143
|
+
|
144
|
+
.desktop--linux .toggle-button:hover:not(.toggle-button--disabled) {
|
145
|
+
background: linear-gradient(180deg, rgba(53, 132, 228, 1) 0%, rgba(26, 95, 180, 1) 100%);
|
146
|
+
border-color: rgba(255, 255, 255, 0.25);
|
147
|
+
transform: translateY(-1px);
|
148
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
|
149
|
+
}
|
150
|
+
|
151
|
+
.desktop--linux .toggle-button.selected {
|
152
|
+
background: linear-gradient(180deg, rgba(26, 95, 180, 0.9) 0%, rgba(15, 70, 140, 0.9) 100%);
|
153
|
+
color: #ffffff;
|
154
|
+
border-color: rgba(255, 255, 255, 0.3);
|
155
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(53, 132, 228, 0.4);
|
156
|
+
}
|
157
|
+
|
158
|
+
.desktop--linux .toggle-button:focus {
|
159
|
+
outline: 2px solid rgba(53, 132, 228, 0.6);
|
160
|
+
outline-offset: 2px;
|
161
|
+
}
|
162
|
+
|
163
|
+
.desktop--linux .toggle-button--disabled {
|
164
|
+
background: rgba(255, 255, 255, 0.1) !important;
|
165
|
+
color: rgba(255, 255, 255, 0.4) !important;
|
166
|
+
border-color: rgba(255, 255, 255, 0.05) !important;
|
167
|
+
cursor: not-allowed;
|
168
|
+
opacity: 1;
|
169
|
+
box-shadow: none;
|
170
|
+
}
|
171
|
+
|
172
|
+
/* Linux Application Menu (Activities Overview) */
|
173
|
+
.desktop--linux .application-menu {
|
174
|
+
background: rgba(36, 31, 49, 0.95);
|
175
|
+
backdrop-filter: blur(20px);
|
176
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
177
|
+
border-radius: 12px;
|
178
|
+
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
|
179
|
+
color: #ffffff;
|
180
|
+
}
|
181
|
+
|
182
|
+
.desktop--linux .application-menu__header {
|
183
|
+
background: linear-gradient(180deg, rgba(46, 52, 54, 0.8) 0%, rgba(36, 31, 49, 0.8) 100%);
|
184
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
185
|
+
color: #ffffff;
|
186
|
+
}
|
187
|
+
|
188
|
+
.desktop--linux .application-menu__header h2 {
|
189
|
+
color: #ffffff;
|
190
|
+
font-family: 'Ubuntu', sans-serif;
|
191
|
+
font-weight: 500;
|
192
|
+
}
|
193
|
+
|
194
|
+
.desktop--linux .application-menu__close {
|
195
|
+
color: #ffffff;
|
196
|
+
background: rgba(255, 255, 255, 0.1);
|
197
|
+
border-radius: 6px;
|
198
|
+
}
|
199
|
+
|
200
|
+
.desktop--linux .application-menu__close:hover {
|
201
|
+
background: rgba(224, 27, 36, 0.8);
|
202
|
+
}
|
203
|
+
|
204
|
+
.desktop--linux .application-menu__search-input {
|
205
|
+
background: rgba(255, 255, 255, 0.1);
|
206
|
+
border: 2px solid rgba(255, 255, 255, 0.2);
|
207
|
+
border-radius: 8px;
|
208
|
+
color: #ffffff;
|
209
|
+
font-family: 'Ubuntu', sans-serif;
|
210
|
+
}
|
211
|
+
|
212
|
+
.desktop--linux .application-menu__search-input::placeholder {
|
213
|
+
color: rgba(255, 255, 255, 0.6);
|
214
|
+
}
|
215
|
+
|
216
|
+
.desktop--linux .application-menu__search-input:focus {
|
217
|
+
border-color: rgba(53, 132, 228, 0.8);
|
218
|
+
background: rgba(255, 255, 255, 0.15);
|
219
|
+
outline: none;
|
220
|
+
}
|
221
|
+
|
222
|
+
.desktop--linux .application-menu__category {
|
223
|
+
background: rgba(255, 255, 255, 0.1);
|
224
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
225
|
+
border-radius: 20px;
|
226
|
+
color: #ffffff;
|
227
|
+
font-family: 'Ubuntu', sans-serif;
|
228
|
+
font-size: 13px;
|
229
|
+
font-weight: 400;
|
230
|
+
}
|
231
|
+
|
232
|
+
.desktop--linux .application-menu__category:hover {
|
233
|
+
background: rgba(255, 255, 255, 0.2);
|
234
|
+
border-color: rgba(255, 255, 255, 0.3);
|
235
|
+
}
|
236
|
+
|
237
|
+
.desktop--linux .application-menu__category.active {
|
238
|
+
background: rgba(53, 132, 228, 0.8);
|
239
|
+
border-color: rgba(53, 132, 228, 1);
|
240
|
+
color: #ffffff;
|
241
|
+
}
|
242
|
+
|
243
|
+
.desktop--linux .application-menu__app {
|
244
|
+
background: rgba(255, 255, 255, 0.05);
|
245
|
+
border: 1px solid transparent;
|
246
|
+
border-radius: 12px;
|
247
|
+
transition: all 0.2s ease;
|
248
|
+
}
|
249
|
+
|
250
|
+
.desktop--linux .application-menu__app:hover {
|
251
|
+
background: rgba(255, 255, 255, 0.15);
|
252
|
+
border-color: rgba(255, 255, 255, 0.2);
|
253
|
+
transform: translateY(-2px);
|
254
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
255
|
+
}
|
256
|
+
|
257
|
+
.desktop--linux .app-name {
|
258
|
+
font-family: 'Ubuntu', sans-serif;
|
259
|
+
font-size: 13px;
|
260
|
+
font-weight: 400;
|
261
|
+
color: #ffffff;
|
262
|
+
}
|
263
|
+
|
264
|
+
.desktop--linux .category-title {
|
265
|
+
color: #ffffff;
|
266
|
+
font-family: 'Ubuntu', sans-serif;
|
267
|
+
font-weight: 500;
|
268
|
+
}
|
269
|
+
|
270
|
+
/* Linux scrollbar */
|
271
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar {
|
272
|
+
width: 8px;
|
273
|
+
}
|
274
|
+
|
275
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar-track {
|
276
|
+
background: rgba(255, 255, 255, 0.1);
|
277
|
+
border-radius: 4px;
|
278
|
+
}
|
279
|
+
|
280
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar-thumb {
|
281
|
+
background: rgba(255, 255, 255, 0.3);
|
282
|
+
border-radius: 4px;
|
283
|
+
}
|
284
|
+
|
285
|
+
.desktop--linux .application-menu__content::-webkit-scrollbar-thumb:hover {
|
286
|
+
background: rgba(255, 255, 255, 0.5);
|
287
|
+
}
|
@@ -0,0 +1,317 @@
|
|
1
|
+
/* macOS Desktop Theme */
|
2
|
+
|
3
|
+
.desktop--macos {
|
4
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
5
|
+
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
|
6
|
+
}
|
7
|
+
|
8
|
+
.desktop--macos .desktop__background {
|
9
|
+
background-image:
|
10
|
+
radial-gradient(circle at 25% 75%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
|
11
|
+
radial-gradient(circle at 75% 25%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
|
12
|
+
radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
|
13
|
+
}
|
14
|
+
|
15
|
+
/* macOS-style windows */
|
16
|
+
.desktop--macos .window {
|
17
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
18
|
+
border-radius: 12px;
|
19
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
20
|
+
background: rgba(255, 255, 255, 0.95);
|
21
|
+
backdrop-filter: blur(20px);
|
22
|
+
overflow: hidden;
|
23
|
+
}
|
24
|
+
|
25
|
+
.desktop--macos .window__header {
|
26
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 245, 0.8) 100%);
|
27
|
+
backdrop-filter: blur(20px);
|
28
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
29
|
+
border-radius: 12px 12px 0 0;
|
30
|
+
height: 36px;
|
31
|
+
padding: 0 16px;
|
32
|
+
}
|
33
|
+
|
34
|
+
.desktop--macos .window__title {
|
35
|
+
font-size: 13px;
|
36
|
+
font-weight: 600;
|
37
|
+
color: #1d1d1f;
|
38
|
+
text-align: center;
|
39
|
+
}
|
40
|
+
|
41
|
+
.desktop--macos .window__controls {
|
42
|
+
order: -1;
|
43
|
+
margin-right: auto;
|
44
|
+
}
|
45
|
+
|
46
|
+
.desktop--macos .window__control {
|
47
|
+
width: 12px;
|
48
|
+
height: 12px;
|
49
|
+
border: none;
|
50
|
+
border-radius: 50%;
|
51
|
+
font-size: 8px;
|
52
|
+
color: rgba(0, 0, 0, 0.6);
|
53
|
+
display: flex;
|
54
|
+
align-items: center;
|
55
|
+
justify-content: center;
|
56
|
+
transition: all 0.2s ease;
|
57
|
+
margin-right: 8px;
|
58
|
+
position: relative;
|
59
|
+
}
|
60
|
+
|
61
|
+
.desktop--macos .window__control::before {
|
62
|
+
opacity: 0;
|
63
|
+
transition: opacity 0.2s ease;
|
64
|
+
}
|
65
|
+
|
66
|
+
.desktop--macos .window:hover .window__control::before {
|
67
|
+
opacity: 1;
|
68
|
+
}
|
69
|
+
|
70
|
+
.desktop--macos .window__control--close {
|
71
|
+
background: #ff5f57;
|
72
|
+
border: 0.5px solid #e0443e;
|
73
|
+
}
|
74
|
+
|
75
|
+
.desktop--macos .window__control--minimize {
|
76
|
+
background: #ffbd2e;
|
77
|
+
border: 0.5px solid #dea123;
|
78
|
+
}
|
79
|
+
|
80
|
+
.desktop--macos .window__control--maximize {
|
81
|
+
background: #28ca42;
|
82
|
+
border: 0.5px solid #1aad34;
|
83
|
+
}
|
84
|
+
|
85
|
+
.desktop--macos .window__control:hover {
|
86
|
+
transform: scale(1.1);
|
87
|
+
}
|
88
|
+
|
89
|
+
.desktop--macos .window__control--close::before {
|
90
|
+
content: '×';
|
91
|
+
font-weight: bold;
|
92
|
+
font-size: 10px;
|
93
|
+
}
|
94
|
+
|
95
|
+
.desktop--macos .window__control--minimize::before {
|
96
|
+
content: '−';
|
97
|
+
font-weight: bold;
|
98
|
+
font-size: 8px;
|
99
|
+
}
|
100
|
+
|
101
|
+
.desktop--macos .window__control--maximize::before {
|
102
|
+
content: '+';
|
103
|
+
font-weight: bold;
|
104
|
+
font-size: 8px;
|
105
|
+
}
|
106
|
+
|
107
|
+
/* macOS taskbar styling (Dock-inspired) */
|
108
|
+
.desktop--macos .desktop-taskbar {
|
109
|
+
background: rgba(255, 255, 255, 0.8);
|
110
|
+
backdrop-filter: blur(20px);
|
111
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
112
|
+
border-radius: 16px 16px 0 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
.desktop--macos .taskbar-button {
|
116
|
+
background: rgba(0, 0, 0, 0.05);
|
117
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
118
|
+
border-radius: 12px;
|
119
|
+
color: #1d1d1f;
|
120
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
121
|
+
font-size: 13px;
|
122
|
+
font-weight: 500;
|
123
|
+
transition: all 0.3s ease;
|
124
|
+
backdrop-filter: blur(10px);
|
125
|
+
}
|
126
|
+
|
127
|
+
.desktop--macos .taskbar-button:hover {
|
128
|
+
background: rgba(0, 0, 0, 0.1);
|
129
|
+
border-color: rgba(0, 0, 0, 0.2);
|
130
|
+
transform: translateY(-2px);
|
131
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
132
|
+
}
|
133
|
+
|
134
|
+
.desktop--macos .taskbar-button--active {
|
135
|
+
background: rgba(0, 122, 255, 0.15);
|
136
|
+
border-color: rgba(0, 122, 255, 0.3);
|
137
|
+
color: #007aff;
|
138
|
+
}
|
139
|
+
|
140
|
+
/* macOS Start Button Styling (Dock-inspired) */
|
141
|
+
.desktop--macos .toggle-button {
|
142
|
+
/* Reset selector styles and apply macOS button styling */
|
143
|
+
position: relative;
|
144
|
+
padding: 8px 16px;
|
145
|
+
display: flex;
|
146
|
+
align-items: center;
|
147
|
+
justify-content: center;
|
148
|
+
gap: 8px;
|
149
|
+
overflow: hidden;
|
150
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
151
|
+
outline: none;
|
152
|
+
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
153
|
+
color: #1d1d1f;
|
154
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 248, 248, 0.9) 100%);
|
155
|
+
min-height: 40px;
|
156
|
+
border-radius: 12px;
|
157
|
+
cursor: pointer;
|
158
|
+
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
|
159
|
+
font-weight: 500;
|
160
|
+
text-decoration: none;
|
161
|
+
white-space: nowrap;
|
162
|
+
list-style: none;
|
163
|
+
margin: 0;
|
164
|
+
backdrop-filter: blur(20px);
|
165
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
166
|
+
}
|
167
|
+
|
168
|
+
.desktop--macos .toggle-button:hover:not(.toggle-button--disabled) {
|
169
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
|
170
|
+
border-color: rgba(0, 0, 0, 0.15);
|
171
|
+
transform: translateY(-1px);
|
172
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
173
|
+
}
|
174
|
+
|
175
|
+
.desktop--macos .toggle-button.selected {
|
176
|
+
background: linear-gradient(180deg, rgba(0, 122, 255, 0.9) 0%, rgba(0, 100, 210, 0.9) 100%);
|
177
|
+
color: white;
|
178
|
+
border-color: rgba(0, 122, 255, 0.3);
|
179
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 122, 255, 0.3);
|
180
|
+
}
|
181
|
+
|
182
|
+
.desktop--macos .toggle-button:focus {
|
183
|
+
outline: 2px solid rgba(0, 122, 255, 0.5);
|
184
|
+
outline-offset: 2px;
|
185
|
+
}
|
186
|
+
|
187
|
+
.desktop--macos .toggle-button--disabled {
|
188
|
+
background: rgba(248, 248, 248, 0.5) !important;
|
189
|
+
color: rgba(60, 60, 67, 0.3) !important;
|
190
|
+
border-color: rgba(0, 0, 0, 0.05) !important;
|
191
|
+
cursor: not-allowed;
|
192
|
+
opacity: 1;
|
193
|
+
box-shadow: none;
|
194
|
+
backdrop-filter: none;
|
195
|
+
}
|
196
|
+
|
197
|
+
/* macOS Application Menu (Launchpad-inspired) */
|
198
|
+
.desktop--macos .application-menu {
|
199
|
+
background: rgba(255, 255, 255, 0.9);
|
200
|
+
backdrop-filter: blur(40px);
|
201
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
202
|
+
border-radius: 20px;
|
203
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
204
|
+
}
|
205
|
+
|
206
|
+
.desktop--macos .application-menu__header {
|
207
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 248, 248, 0.8) 100%);
|
208
|
+
backdrop-filter: blur(20px);
|
209
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
210
|
+
border-radius: 20px 20px 0 0;
|
211
|
+
}
|
212
|
+
|
213
|
+
.desktop--macos .application-menu__header h2 {
|
214
|
+
color: #1d1d1f;
|
215
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
216
|
+
font-weight: 600;
|
217
|
+
font-size: 20px;
|
218
|
+
}
|
219
|
+
|
220
|
+
.desktop--macos .application-menu__close {
|
221
|
+
color: #8e8e93;
|
222
|
+
background: rgba(0, 0, 0, 0.05);
|
223
|
+
border-radius: 8px;
|
224
|
+
font-size: 18px;
|
225
|
+
}
|
226
|
+
|
227
|
+
.desktop--macos .application-menu__close:hover {
|
228
|
+
background: rgba(255, 95, 87, 0.8);
|
229
|
+
color: white;
|
230
|
+
}
|
231
|
+
|
232
|
+
.desktop--macos .application-menu__search-input {
|
233
|
+
background: rgba(0, 0, 0, 0.05);
|
234
|
+
border: 2px solid rgba(0, 0, 0, 0.1);
|
235
|
+
border-radius: 12px;
|
236
|
+
color: #1d1d1f;
|
237
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
238
|
+
font-size: 15px;
|
239
|
+
}
|
240
|
+
|
241
|
+
.desktop--macos .application-menu__search-input::placeholder {
|
242
|
+
color: #8e8e93;
|
243
|
+
}
|
244
|
+
|
245
|
+
.desktop--macos .application-menu__search-input:focus {
|
246
|
+
border-color: rgba(0, 122, 255, 0.8);
|
247
|
+
background: rgba(255, 255, 255, 0.8);
|
248
|
+
outline: none;
|
249
|
+
box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
|
250
|
+
}
|
251
|
+
|
252
|
+
.desktop--macos .application-menu__category {
|
253
|
+
background: rgba(0, 0, 0, 0.05);
|
254
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
255
|
+
border-radius: 20px;
|
256
|
+
color: #1d1d1f;
|
257
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
258
|
+
font-size: 13px;
|
259
|
+
font-weight: 500;
|
260
|
+
}
|
261
|
+
|
262
|
+
.desktop--macos .application-menu__category:hover {
|
263
|
+
background: rgba(0, 0, 0, 0.1);
|
264
|
+
border-color: rgba(0, 0, 0, 0.2);
|
265
|
+
}
|
266
|
+
|
267
|
+
.desktop--macos .application-menu__category.active {
|
268
|
+
background: rgba(0, 122, 255, 0.8);
|
269
|
+
border-color: rgba(0, 122, 255, 1);
|
270
|
+
color: white;
|
271
|
+
}
|
272
|
+
|
273
|
+
.desktop--macos .application-menu__app {
|
274
|
+
background: rgba(255, 255, 255, 0.6);
|
275
|
+
border: 1px solid transparent;
|
276
|
+
border-radius: 16px;
|
277
|
+
transition: all 0.3s ease;
|
278
|
+
backdrop-filter: blur(10px);
|
279
|
+
}
|
280
|
+
|
281
|
+
.desktop--macos .application-menu__app:hover {
|
282
|
+
background: rgba(255, 255, 255, 0.8);
|
283
|
+
border-color: rgba(0, 0, 0, 0.1);
|
284
|
+
transform: translateY(-4px) scale(1.05);
|
285
|
+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
286
|
+
}
|
287
|
+
|
288
|
+
.desktop--macos .app-name {
|
289
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
290
|
+
font-size: 12px;
|
291
|
+
font-weight: 500;
|
292
|
+
color: #1d1d1f;
|
293
|
+
}
|
294
|
+
|
295
|
+
.desktop--macos .category-title {
|
296
|
+
color: #1d1d1f;
|
297
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
298
|
+
font-weight: 600;
|
299
|
+
}
|
300
|
+
|
301
|
+
/* macOS scrollbar */
|
302
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar {
|
303
|
+
width: 6px;
|
304
|
+
}
|
305
|
+
|
306
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar-track {
|
307
|
+
background: transparent;
|
308
|
+
}
|
309
|
+
|
310
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar-thumb {
|
311
|
+
background: rgba(0, 0, 0, 0.2);
|
312
|
+
border-radius: 3px;
|
313
|
+
}
|
314
|
+
|
315
|
+
.desktop--macos .application-menu__content::-webkit-scrollbar-thumb:hover {
|
316
|
+
background: rgba(0, 0, 0, 0.4);
|
317
|
+
}
|