Luigi commited on
Commit
66bb04b
·
1 Parent(s): bfc974b

fix(ui): prevent camera controls overlap with topbar

Browse files

- Move camera controls below topbar (top: calc(var(--space-xl) + var(--space-md)))
- Increase topbar z-index to stay above camera controls
- Add responsive adjustments for camera controls on different screen sizes
- Improve camera button sizing and spacing

Files changed (1) hide show
  1. static/styles.css +39 -37
static/styles.css CHANGED
@@ -405,7 +405,7 @@ body {
405
  align-items: center;
406
  border-bottom: 1px solid var(--border-light);
407
  box-shadow: var(--shadow-md);
408
- z-index: var(--z-sticky);
409
  backdrop-filter: blur(10px);
410
  background: rgba(30, 41, 59, 0.8);
411
  }
@@ -1271,63 +1271,65 @@ body {
1271
  /* Modern Camera Controls */
1272
  #camera-controls {
1273
  position: absolute;
1274
- top: var(--space-md);
1275
- right: var(--space-md);
1276
  display: flex;
 
1277
  gap: var(--space-sm);
1278
- z-index: var(--z-fixed);
1279
  }
1280
 
1281
  .camera-btn {
1282
- background: var(--bg-tertiary);
 
 
1283
  border: 1px solid var(--border-light);
1284
- padding: var(--space-sm);
1285
  border-radius: var(--radius-lg);
 
 
1286
  cursor: pointer;
1287
  transition: all var(--transition-fast);
1288
- color: var(--text-primary);
1289
- font-size: 1rem;
1290
  display: flex;
1291
  align-items: center;
1292
  justify-content: center;
1293
- min-width: 44px;
1294
- min-height: 44px;
1295
- position: relative;
1296
- overflow: hidden;
1297
- }
1298
-
1299
- .camera-btn::before {
1300
- content: '';
1301
- position: absolute;
1302
- top: 50%;
1303
- left: 50%;
1304
- width: 0;
1305
- height: 0;
1306
- background: rgba(59, 130, 246, 0.2);
1307
- border-radius: 50%;
1308
- transform: translate(-50%, -50%);
1309
- transition: width var(--transition-normal), height var(--transition-normal);
1310
  }
1311
 
1312
  .camera-btn:hover {
1313
- background: var(--bg-hover);
1314
- border-color: var(--primary);
1315
- transform: scale(1.05);
1316
- box-shadow: var(--shadow-md);
1317
- }
1318
-
1319
- .camera-btn:hover::before {
1320
- width: 100%;
1321
- height: 100%;
1322
  }
1323
 
1324
  .camera-btn:active {
1325
  transform: scale(0.95);
1326
  }
1327
 
1328
- .camera-icon {
1329
- font-size: 1.25rem;
1330
- filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1331
  }
1332
 
1333
  /* Responsive Design - Optimized for Desktop Gaming */
 
405
  align-items: center;
406
  border-bottom: 1px solid var(--border-light);
407
  box-shadow: var(--shadow-md);
408
+ z-index: var(--z-fixed); /* Ensure topbar stays above camera controls */
409
  backdrop-filter: blur(10px);
410
  background: rgba(30, 41, 59, 0.8);
411
  }
 
1271
  /* Modern Camera Controls */
1272
  #camera-controls {
1273
  position: absolute;
1274
+ top: calc(var(--space-xl) + var(--space-md)); /* Position below topbar */
1275
+ right: var(--space-lg);
1276
  display: flex;
1277
+ flex-direction: column;
1278
  gap: var(--space-sm);
1279
+ z-index: var(--z-sticky);
1280
  }
1281
 
1282
  .camera-btn {
1283
+ width: 48px;
1284
+ height: 48px;
1285
+ background: rgba(15, 23, 42, 0.9);
1286
  border: 1px solid var(--border-light);
 
1287
  border-radius: var(--radius-lg);
1288
+ color: var(--text-primary);
1289
+ font-size: 1.125rem;
1290
  cursor: pointer;
1291
  transition: all var(--transition-fast);
 
 
1292
  display: flex;
1293
  align-items: center;
1294
  justify-content: center;
1295
+ backdrop-filter: blur(10px);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1296
  }
1297
 
1298
  .camera-btn:hover {
1299
+ background: var(--primary);
1300
+ transform: scale(1.1);
1301
+ box-shadow: var(--shadow-lg);
 
 
 
 
 
 
1302
  }
1303
 
1304
  .camera-btn:active {
1305
  transform: scale(0.95);
1306
  }
1307
 
1308
+ /* Responsive camera controls adjustments */
1309
+ @media (max-width: 1400px) {
1310
+ #camera-controls {
1311
+ top: calc(var(--space-xl) + var(--space-sm));
1312
+ right: var(--space-md);
1313
+ }
1314
+
1315
+ .camera-btn {
1316
+ width: 44px;
1317
+ height: 44px;
1318
+ font-size: 1rem;
1319
+ }
1320
+ }
1321
+
1322
+ @media (max-width: 1024px) {
1323
+ #camera-controls {
1324
+ top: var(--space-xl);
1325
+ right: var(--space-md);
1326
+ }
1327
+
1328
+ .camera-btn {
1329
+ width: 40px;
1330
+ height: 40px;
1331
+ font-size: 1rem;
1332
+ }
1333
  }
1334
 
1335
  /* Responsive Design - Optimized for Desktop Gaming */