bilca commited on
Commit
9ca6ad6
Β·
verified Β·
1 Parent(s): 8b01629

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +35 -40
style.css CHANGED
@@ -1,4 +1,10 @@
1
- /* viewer.css - Modified to properly restore aspect ratio when exiting fullscreen */
 
 
 
 
 
 
2
 
3
  /* Widget container styling */
4
  .ply-widget-container {
@@ -20,7 +26,7 @@
20
  height: 100vh !important;
21
  padding-bottom: 0 !important;
22
  z-index: 9999 !important;
23
- background-color: white;
24
  border-radius: 0 !important;
25
  margin: 0 !important;
26
  max-width: 100vw !important;
@@ -35,7 +41,7 @@
35
  height: 100vh !important;
36
  padding-bottom: 0 !important;
37
  border-radius: 0 !important;
38
- background-color: white;
39
  }
40
 
41
  /* Vendor prefixes for fullscreen */
@@ -44,21 +50,21 @@
44
  height: 100vh !important;
45
  padding-bottom: 0 !important;
46
  border-radius: 0 !important;
47
- background-color: white;
48
  }
49
  .ply-widget-container:-moz-full-screen {
50
  width: 100vw !important;
51
  height: 100vh !important;
52
  padding-bottom: 0 !important;
53
  border-radius: 0 !important;
54
- background-color: white;
55
  }
56
  .ply-widget-container:-ms-fullscreen {
57
  width: 100vw !important;
58
  height: 100vh !important;
59
  padding-bottom: 0 !important;
60
  border-radius: 0 !important;
61
- background-color: white;
62
  }
63
 
64
  /* Viewer Container styling */
@@ -71,7 +77,7 @@
71
  bottom: 0;
72
  width: 100%;
73
  height: 100%;
74
- background: white;
75
  border: 1px solid #474558;
76
  border-radius: 10px;
77
  overflow: hidden;
@@ -160,27 +166,27 @@ progress::-moz-progress-bar {
160
  position: absolute;
161
  top: 70px;
162
  right: 15px;
163
- background: rgba(0, 0, 0, 0.8);
164
  border: 1px solid #474558;
165
- border-radius: 5px;
166
  padding: 10px;
167
  font-size: 15px;
168
  line-height: 1.4;
169
- color: white;
170
  z-index: 1010;
171
  }
172
 
173
- /* Button styling with improved visibility */
174
  .widget-button {
175
  position: absolute;
176
- width: 45px;
177
- height: 45px;
178
- background-color: rgba(0, 0, 0, 0.6);
179
  border: 1px solid #474558;
180
- border-radius: 50%;
181
  cursor: pointer;
182
- font-size: 14px;
183
- color: white;
184
  display: flex !important;
185
  align-items: center;
186
  justify-content: center;
@@ -190,25 +196,14 @@ progress::-moz-progress-bar {
190
  visibility: visible !important;
191
  }
192
  .widget-button:hover {
193
- background-color: rgba(70, 130, 180, 0.5);
194
  }
195
 
196
- /* New: πŸ“ points-toggle button position */
197
  .points-toggle {
198
  top: 17px;
199
  right: 176px;
200
  }
201
-
202
- /* Ensure buttons remain visible in fullscreen */
203
- .fake-fullscreen .widget-button,
204
- :fullscreen .widget-button,
205
- :-webkit-full-screen .widget-button,
206
- :-moz-full-screen .widget-button,
207
- :-ms-fullscreen .widget-button {
208
- z-index: 10000;
209
- }
210
-
211
- /* Specific button positions */
212
  .fullscreen-toggle {
213
  top: 17px;
214
  right: 15px;
@@ -216,12 +211,12 @@ progress::-moz-progress-bar {
216
  .help-toggle {
217
  top: 17px;
218
  right: 70px;
219
- font-size: 22px;
220
  }
221
  .reset-camera-btn {
222
  top: 17px;
223
  right: 123px;
224
- font-size: 22px;
225
  line-height: normal;
226
  padding: 0;
227
  }
@@ -229,17 +224,17 @@ progress::-moz-progress-bar {
229
  /* Adjust the reset icon position */
230
  .reset-icon {
231
  display: inline-block;
232
- transform: translateY(-3px);
233
  }
234
 
235
  /* --- Mobile adjustments: when the widget container has the "mobile" class --- */
236
  .ply-widget-container.mobile .widget-button {
237
- width: 30px; /* 45px * 2/3 */
238
- height: 30px; /* 45px * 2/3 */
239
- font-size: 10px; /* 14px * approx 0.67 */
240
  }
241
  .ply-widget-container.mobile .help-toggle {
242
- font-size: 15px; /* 22px * approx 0.67 */
243
  }
244
  /* Adjust button positions for mobile */
245
  .ply-widget-container.mobile .fullscreen-toggle {
@@ -303,14 +298,14 @@ html, body {
303
  pointer-events: none !important;
304
  }
305
 
306
- /* ─── NEW: Tooltip styling for info-points ─────────────────────────────────── */
307
  .point-tooltip {
308
  position: absolute;
309
  top: 50%;
310
  right: 5%;
311
  transform: translate(0%, -50%);
312
- background: rgba(30, 30, 30, 0.9);
313
- color: #fff;
314
  border: 1px solid #666;
315
  border-radius: 6px;
316
  padding: 15px;
 
1
+ /* viewer.css - Updated button sizing, colors, fonts, tooltip background, and instructions panel styling */
2
+
3
+ /* Apply a system sans-serif font stack to all viewer-related text */
4
+ .ply-widget-container,
5
+ .ply-widget-container * {
6
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
7
+ }
8
 
9
  /* Widget container styling */
10
  .ply-widget-container {
 
26
  height: 100vh !important;
27
  padding-bottom: 0 !important;
28
  z-index: 9999 !important;
29
+ background-color: black;
30
  border-radius: 0 !important;
31
  margin: 0 !important;
32
  max-width: 100vw !important;
 
41
  height: 100vh !important;
42
  padding-bottom: 0 !important;
43
  border-radius: 0 !important;
44
+ background-color: black;
45
  }
46
 
47
  /* Vendor prefixes for fullscreen */
 
50
  height: 100vh !important;
51
  padding-bottom: 0 !important;
52
  border-radius: 0 !important;
53
+ background-color: black;
54
  }
55
  .ply-widget-container:-moz-full-screen {
56
  width: 100vw !important;
57
  height: 100vh !important;
58
  padding-bottom: 0 !important;
59
  border-radius: 0 !important;
60
+ background-color: black;
61
  }
62
  .ply-widget-container:-ms-fullscreen {
63
  width: 100vw !important;
64
  height: 100vh !important;
65
  padding-bottom: 0 !important;
66
  border-radius: 0 !important;
67
+ background-color: black;
68
  }
69
 
70
  /* Viewer Container styling */
 
77
  bottom: 0;
78
  width: 100%;
79
  height: 100%;
80
+ background: black;
81
  border: 1px solid #474558;
82
  border-radius: 10px;
83
  overflow: hidden;
 
166
  position: absolute;
167
  top: 70px;
168
  right: 15px;
169
+ background: #F2F0EF; /* Updated background color */
170
  border: 1px solid #474558;
171
+ border-radius: 6px;
172
  padding: 10px;
173
  font-size: 15px;
174
  line-height: 1.4;
175
+ color: black;
176
  z-index: 1010;
177
  }
178
 
179
+ /* Button styling with updated dimensions, colors, and rounded corners */
180
  .widget-button {
181
  position: absolute;
182
+ width: 32px; /* ~30% smaller than 45px */
183
+ height: 32px; /* square */
184
+ background-color: #F2F0EF; /* updated idle background */
185
  border: 1px solid #474558;
186
+ border-radius: 8px; /* gently rounded corners */
187
  cursor: pointer;
188
+ font-size: 16px;
189
+ color: black;
190
  display: flex !important;
191
  align-items: center;
192
  justify-content: center;
 
196
  visibility: visible !important;
197
  }
198
  .widget-button:hover {
199
+ background-color: rgba(242,240,239, 0.8); /* slightly darker on hover */
200
  }
201
 
202
+ /* Position adjustments for the resized buttons */
203
  .points-toggle {
204
  top: 17px;
205
  right: 176px;
206
  }
 
 
 
 
 
 
 
 
 
 
 
207
  .fullscreen-toggle {
208
  top: 17px;
209
  right: 15px;
 
211
  .help-toggle {
212
  top: 17px;
213
  right: 70px;
214
+ font-size: 18px; /* slightly larger for visibility */
215
  }
216
  .reset-camera-btn {
217
  top: 17px;
218
  right: 123px;
219
+ font-size: 18px;
220
  line-height: normal;
221
  padding: 0;
222
  }
 
224
  /* Adjust the reset icon position */
225
  .reset-icon {
226
  display: inline-block;
227
+ transform: translateY(-2px);
228
  }
229
 
230
  /* --- Mobile adjustments: when the widget container has the "mobile" class --- */
231
  .ply-widget-container.mobile .widget-button {
232
+ width: 22px; /* 32px * ~0.7 */
233
+ height: 22px; /* square */
234
+ font-size: 12px; /* smaller font */
235
  }
236
  .ply-widget-container.mobile .help-toggle {
237
+ font-size: 13px; /* smaller help icon */
238
  }
239
  /* Adjust button positions for mobile */
240
  .ply-widget-container.mobile .fullscreen-toggle {
 
298
  pointer-events: none !important;
299
  }
300
 
301
+ /* ─── Tooltip styling for info-points ─────────────────────────────────── */
302
  .point-tooltip {
303
  position: absolute;
304
  top: 50%;
305
  right: 5%;
306
  transform: translate(0%, -50%);
307
+ background: #F2F0EF; /* updated background color */
308
+ color: #000;
309
  border: 1px solid #666;
310
  border-radius: 6px;
311
  padding: 15px;