-
Notifications
You must be signed in to change notification settings - Fork 190
/
classic.css
268 lines (261 loc) Β· 6.36 KB
/
classic.css
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
.desktop {
background: var(--Background);
}
.taskbar {
outline: 1px solid var(--ButtonLight);
border-top: 1px solid var(--ButtonHilight);
background: var(--ButtonFace);
color: var(--ButtonText);
}
.taskbar-divider {
border-left: 1px solid var(--ButtonShadow);
border-right: 1px solid var(--ButtonHilight);
}
.taskbar-time {
font-family: sans-serif;
font-family: "MS Sans Serif", "Segoe UI", sans-serif;
font-size: 12px;
}
.start-menu-titlebar {
/* background-image: url("images/start-menu-side.png"); */
/* background-image: url("images/start-menu-side-98-js.png"); */
background-image: url("images/start-menu-side-98-js-alt.png");
background-repeat: no-repeat;
background-position: bottom left;
background-color: #000080;
}
.start-menu li a,
.start-menu .back-link {
display: block;
padding: 5px 0;
color: blue !important; /* regardless of :visited */
}
.start-menu li a:before,
.start-menu .back-link:before,
.the-thing-heading:before {
content: "Β»";
text-decoration: none;
display: inline-block;
margin-right: 5px;
}
.start-menu .back-link:before {
content: "Β«"
}
.the-thing-heading {
/* font-size: 1em; */
}
.windows-cant-do-it-you-can {
margin-top: 2em;
/* background: white;
padding: 5px;
border: inset 1px; */
}
.task.selected {
font-weight: bold;
}
.desktop-icon {
position: absolute;
outline: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.folder-view:focus {
outline: none;
}
.folder-view:not([data-view-mode="DESKTOP"]):not([data-view-mode="LARGE_ICONS"]) .desktop-icon {
display: flex;
flex-direction: row;
width: 150px;
height: 17px;
align-items: center;
}
.folder-view[data-view-mode="DESKTOP"] .desktop-icon,
.folder-view[data-view-mode="LARGE_ICONS"] .desktop-icon {
width: 75px;
height: 75px;
}
.desktop-icon .title {
font-family: sans-serif;
font-family: "MS Sans Serif", "Segoe UI", sans-serif;
/*font-size: 10px;*/
font-size: 8pt;
background: var(--Background);
color: white;
position: relative;
box-sizing: border-box;
display: flex;
justify-content: center;
}
.folder-view[data-view-mode="DESKTOP"] .desktop-icon .title,
.folder-view[data-view-mode="LARGE_ICONS"] .desktop-icon .title {
margin-top: 5px;
}
.folder-view:not([data-view-mode="DESKTOP"]):not([data-view-mode="LARGE_ICONS"]) .desktop-icon .title {
text-align: start;
justify-content: start;
white-space: nowrap;
height: 17px;
line-height: 17px;
padding-right: 2px;
padding-left: 3px;
}
.folder-view:focus-within .desktop-icon.selected:not(.renaming) .title {
background: var(--Hilight);
color: var(--HilightText);
}
.folder-view:focus-within .desktop-icon.focused:not(.renaming) .title::after {
content: "";
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
border: 1px dotted #ffffff;
mix-blend-mode: exclusion;
}
.folder-view .desktop-icon.renaming .title {
border: 1px solid var(--ButtonText); /* @TODO: is this the right theme color? */
}
.desktop-icon .title input {
font: inherit;
outline: none;
border: none; /* using border of the .title */
height: 17px; /* @TODO: auto-size */
line-height: 13px; /* 17px-4px so the selection highlight doesn't abut the border (height is also important) */
box-sizing: border-box;
background: var(--Window);
color: var(--WindowText);
text-align: inherit;
padding: 0;
align-self: center;
}
.desktop-icon .icon-wrapper .selection-effect {
display: none;
position: absolute;
left: 0;
top: 0;
mask-image: var(--icon-image);
-webkit-mask-image: var(--icon-image);
background: var(--Hilight);
opacity: 0.5;
}
.folder-view:focus-within .desktop-icon.selected .icon-wrapper .selection-effect {
display: block;
}
.desktop-icon .icon-wrapper {
position: relative;
}
.desktop-icon.shortcut .icon-wrapper:after {
content: var(--shortcut-icon, url("images/icons/shortcut-32x32.png"));
position: absolute;
left: 0;
top: 0;
}
.folder-view .marquee {
border: 1px dotted #ffffff;
box-sizing: border-box;
mix-blend-mode: exclusion;
/* TODO: fallback for browsers that don't support mix-blend-mode (something like #FF7F7F)... Edge doesn't support @supports either :/ */
z-index: 1;
}
.help-window .item {
font-family: 'Segoe UI', sans-serif;
font-size: 12px;
padding: 0 2px;
position: relative; /* for ::after */
}
.help-window .item:hover {
text-decoration: underline;
color: #0000FF;
cursor: pointer;
}
.help-window li:before {
background-image: url("../../images/help-icons.png");
}
.help-window:not(.focused) .item.selected {
background-color: var(--ButtonFace);
color: var(--ButtonText); /* ?? */
}
.help-window.focused .item.selected {
background-color: var(--Hilight);
color: var(--HilightText);
/* @TODO: separate focus state of the item */
outline: 1px dotted black;
outline-offset: -1px;
}
/* @TODO: separate focus state of the item; while mouse down, the main highlight does not move with the arrow keys but this does, among other differences */
/* .help-window.focused .item.selected::after {
content: "";
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border: 1px dotted white;
mix-blend-mode: difference;
} */
.window-switcher {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
width: 350px;
z-index: 1000;
user-select: none;
}
.window-switcher * {
pointer-events: none;
}
.window-switcher-list {
display: flex;
margin: 0;
padding: 0;
flex-direction: row;
flex-wrap: wrap;
justify-content: start;
max-width: calc(43px * 7);
margin-top: 17px;
margin-bottom: 10px;
margin-left: auto;
margin-right: auto;
}
.window-switcher-item {
display: flex;
width: 43px;
height: 43px;
box-sizing: border-box;
border: 2px solid transparent;
padding: 0;
outline: none;
}
.window-switcher-item.active {
border: 2px solid var(--Hilight);
}
.window-switcher-item img {
margin: 3px;
}
.window-switcher-window-name {
align-self: stretch;
font-family: "MS Sans Serif", "Segoe UI", sans-serif;
font-size: 10pt; /* not sure about the font-size/line-height */
line-height: 16px;
font-weight: bold;
height: 24px; /* should be 25px, but the border is getting screwed up if this isn't an even number */
box-sizing: border-box;
padding: 2px;
margin: 8px 12px;
margin-top: 0;
overflow: hidden;
text-overflow: ellipsis;
}
* {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
.menu-hotkey {
/* TODO: remove once this is in os-gui */
text-decoration-skip: none;
text-decoration-skip-ink: none;
}