-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesktop-context-menu.css
More file actions
244 lines (216 loc) · 5.68 KB
/
desktop-context-menu.css
File metadata and controls
244 lines (216 loc) · 5.68 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
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
/* desktop-context-menu.css */
.desktop-context-menu {
position: absolute;
background-color: #c0c0c0; /* Classic Gray */
border: 2px outset #dfdfdf;
box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
padding: 2px;
z-index: 20000; /* Above most other elements */
min-width: 150px;
font-family: "MS Sans Serif", "Tahoma", Arial, sans-serif;
font-size: 12px;
user-select: none;
}
.desktop-context-menu-item {
padding: 3px 24px 3px 26px; /* Space for icon + submenu arrow */
cursor: pointer;
position: relative;
white-space: nowrap;
line-height: 16px;
}
.desktop-context-menu-item:hover {
background-color: #000080; /* Dark Blue */
color: white;
}
.desktop-context-menu-item.disabled {
color: #808080; /* Disabled text color */
cursor: default;
}
.desktop-context-menu-item.disabled:hover {
background-color: #c0c0c0; /* No hover effect for disabled */
color: #808080;
}
.desktop-context-menu-separator {
height: 1px;
background-color: #808080; /* Dark gray line */
margin: 2px 0;
border-bottom: 1px solid #ffffff; /* White highlight below */
}
/* Optional: for icons in context menu items */
.desktop-context-menu-item-icon {
position: absolute;
left: 5px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
}
.desktop-context-menu-item-label {
display: inline-block;
}
.desktop-context-menu-item.has-submenu {
padding-right: 18px;
}
.desktop-context-menu-submenu-arrow {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
font-size: 10px;
}
.desktop-context-submenu {
display: none;
position: absolute;
top: -3px;
left: calc(100% - 3px);
background-color: #c0c0c0;
border: 2px outset #dfdfdf;
box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
min-width: 160px;
padding: 2px;
z-index: 20001;
color: #000000;
}
.desktop-context-submenu .desktop-context-menu-item {
color: #000000;
}
.desktop-context-menu-item.has-submenu:hover > .desktop-context-submenu {
display: block;
}
.desktop-context-menu-item.has-submenu.submenu-left > .desktop-context-submenu {
left: auto;
right: calc(100% - 3px);
}
/* desktop-context-menu.css */
/* ... (existing styles for .desktop-context-menu, .desktop-context-menu-item, etc.) ... */
/* --- STYLES FOR DISPLAY PROPERTIES DIALOG --- */
.display-properties-dialog {
position: absolute;
background-color: #c0c0c0;
border: 2px outset #dfdfdf;
box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
min-width: 350px; /* Wider for tabs/content */
min-height: 300px;
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 15000; /* Below context menu, above regular windows */
font-family: "MS Sans Serif", "Tahoma", Arial, sans-serif;
font-size: 12px;
}
.display-properties-dialog-titlebar {
background-color: #000080; /* Dark Blue */
color: white;
padding: 3px 5px;
font-weight: bold;
cursor: grab;
display: flex;
justify-content: space-between;
align-items: center;
height: 20px;
box-sizing: border-box;
}
.display-properties-dialog-titlebar:active {
cursor: grabbing;
}
.display-properties-dialog-title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex-grow: 1;
}
.display-properties-dialog-controls button {
background-color: #c0c0c0;
border: 1px outset #dfdfdf;
color: black;
font-family: "Marlett", "Webdings"; /* For close icon 'r' */
font-size: 10px;
width: 16px;
height: 14px;
line-height: 10px;
padding: 0;
margin-left: 2px;
cursor: pointer;
}
.display-properties-dialog-controls button:active {
border-style: inset;
}
.display-properties-dialog-content {
flex-grow: 1;
padding: 10px;
display: flex;
flex-direction: column;
}
.display-properties-tabs {
display: flex;
border-bottom: 1px solid #808080;
margin-bottom: 10px;
}
.display-properties-tab {
padding: 5px 10px;
border: 1px solid #c0c0c0;
border-bottom: none;
margin-right: 2px;
background-color: #a0a0a0;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
cursor: pointer;
}
.display-properties-tab.active {
background-color: #c0c0c0; /* Same as dialog content area */
border-color: #808080;
border-bottom-color: #c0c0c0; /* Blend with content area */
position: relative;
top: 1px; /* Slight lift effect */
}
.display-properties-tab-content {
display: none; /* Hidden by default */
flex-grow: 1;
}
.display-properties-tab-content.active {
display: block; /* Show active tab content */
}
.display-properties-tab-content fieldset {
border: 1px solid #808080;
padding: 10px;
margin-bottom: 10px;
}
.display-properties-tab-content legend {
padding: 0 5px;
}
.display-properties-tab-content label {
display: block;
margin-bottom: 5px;
}
.display-properties-tab-content input[type="color"],
.display-properties-tab-content input[type="file"] {
margin-left: 5px;
margin-bottom: 10px;
}
.display-properties-preview {
width: 150px;
height: 100px;
border: 1px inset #808080;
background-color: #008080; /* Default desktop teal */
background-size: cover;
background-position: center;
margin: 10px auto;
}
.display-properties-buttons {
display: flex;
justify-content: flex-end;
padding-top: 10px;
border-top: 1px solid #808080;
margin-top: auto; /* Push to bottom */
}
.display-properties-buttons button {
background-color: #c0c0c0;
border: 2px outset #dfdfdf;
padding: 5px 15px;
margin-left: 5px;
min-width: 70px;
cursor: pointer;
}
.display-properties-buttons button:active {
border-style: inset;
}