youssefreda9 commited on
Commit
d91eb53
·
1 Parent(s): c907a2f

UI Polish: Redesign toolbar tabs, format bar, dots, separators for cleaner look

Browse files
Files changed (1) hide show
  1. src/css/components.css +45 -33
src/css/components.css CHANGED
@@ -313,42 +313,45 @@
313
  align-items: center;
314
  justify-content: space-between;
315
  gap: var(--spacing-sm);
316
- padding: var(--spacing-md);
317
  border-bottom: 1px solid var(--color-border);
318
  background: var(--color-surface);
319
  }
320
 
321
  .editor-tab {
322
- padding: var(--spacing-sm) var(--spacing-md);
323
- border-radius: var(--radius-md);
324
- font-weight: var(--font-weight-bold);
325
- font-size: var(--font-size-caption);
326
  border: none;
327
  cursor: pointer;
328
  font-family: inherit;
329
- transition: background var(--transition-base), color var(--transition-base);
330
  background: transparent;
331
  color: var(--color-text-secondary);
332
- min-height: 44px;
 
 
333
  }
334
 
335
  .editor-tab:hover {
336
  color: var(--color-text-primary);
337
- background: var(--color-surface-elevated);
338
  }
339
 
340
  .editor-tab.active {
341
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
342
- color: var(--color-text-inverse);
 
343
  }
344
 
345
  /* ── Formatting Toolbar ── */
346
  .format-toolbar {
347
  display: flex;
348
- flex-wrap: nowrap;
349
  align-items: center;
350
- gap: 6px;
351
- padding: 8px var(--spacing-md);
352
  border-bottom: 1px solid var(--color-border);
353
  background: var(--color-surface);
354
  overflow: visible;
@@ -362,13 +365,13 @@
362
  align-items: center;
363
  gap: 1px;
364
  background: var(--color-border);
365
- border-radius: 6px;
366
  overflow: hidden;
367
  }
368
 
369
  .fmt-group--font {
370
  background: transparent;
371
- gap: 6px;
372
  overflow: visible;
373
  }
374
 
@@ -376,16 +379,21 @@
376
  display: flex;
377
  align-items: center;
378
  justify-content: center;
379
- width: 34px;
380
- height: 34px;
381
  border: none;
382
  background: var(--color-surface);
383
  color: var(--color-text-secondary);
384
  cursor: pointer;
385
  font-family: 'Georgia', 'Times New Roman', serif;
386
- font-size: 14px;
387
  transition: all 0.15s ease;
388
  position: relative;
 
 
 
 
 
389
  }
390
 
391
  .fmt-btn:hover {
@@ -404,10 +412,11 @@
404
 
405
  .fmt-divider {
406
  width: 1px;
407
- height: 28px;
408
  background: var(--color-border);
409
- margin: 0 2px;
410
  flex-shrink: 0;
 
411
  }
412
 
413
  /* ── Custom Dropdowns ── */
@@ -1419,9 +1428,10 @@ input[type="range"]::-webkit-slider-thumb {
1419
  /* ── Toolbar separator ── */
1420
  .toolbar-separator {
1421
  width: 1px;
1422
- height: 20px;
1423
- background: var(--color-border-strong);
1424
- margin: 0 var(--spacing-xs);
 
1425
  }
1426
 
1427
  /* ── Save button (icon only) ── */
@@ -2850,18 +2860,19 @@ input[type="range"]::-moz-range-thumb {
2850
  color: #22c55e;
2851
  }
2852
 
2853
- /* ── Window Dots (macOS style) ── */
2854
  .window-dots {
2855
  display: flex;
2856
  align-items: center;
2857
- gap: 6px;
2858
  }
2859
 
2860
  .window-dots .dot {
2861
- width: 12px;
2862
- height: 12px;
2863
  border-radius: 50%;
2864
  display: inline-block;
 
2865
  }
2866
 
2867
  .window-dots .dot--red {
@@ -2912,14 +2923,10 @@ input[type="range"]::-moz-range-thumb {
2912
  flex: 1;
2913
  }
2914
 
2915
- /* ── Fix #17: Traffic lights hover effects ── */
2916
  .window-dots .dot {
2917
- cursor: pointer;
2918
- transition: transform 0.15s ease, filter 0.15s ease;
2919
- }
2920
- .window-dots .dot:hover {
2921
- transform: scale(1.3);
2922
- filter: brightness(1.2);
2923
  }
2924
 
2925
  /* ── Fix #17: Traffic light actions ── */
@@ -2963,6 +2970,11 @@ input[type="range"]::-moz-range-thumb {
2963
  color: #1A1D21;
2964
  background: rgba(26, 29, 33, 0.06);
2965
  }
 
 
 
 
 
2966
  [data-theme="light"] .stat-item {
2967
  color: #3A424E;
2968
  opacity: 1;
 
313
  align-items: center;
314
  justify-content: space-between;
315
  gap: var(--spacing-sm);
316
+ padding: 10px var(--spacing-md);
317
  border-bottom: 1px solid var(--color-border);
318
  background: var(--color-surface);
319
  }
320
 
321
  .editor-tab {
322
+ padding: 8px 18px;
323
+ border-radius: 10px;
324
+ font-weight: 600;
325
+ font-size: 13.5px;
326
  border: none;
327
  cursor: pointer;
328
  font-family: inherit;
329
+ transition: all 0.2s ease;
330
  background: transparent;
331
  color: var(--color-text-secondary);
332
+ min-height: 40px;
333
+ letter-spacing: 0.01em;
334
+ position: relative;
335
  }
336
 
337
  .editor-tab:hover {
338
  color: var(--color-text-primary);
339
+ background: rgba(255,255,255,0.06);
340
  }
341
 
342
  .editor-tab.active {
343
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
344
+ color: #fff !important;
345
+ box-shadow: 0 2px 10px rgba(107, 163, 224, 0.3);
346
  }
347
 
348
  /* ── Formatting Toolbar ── */
349
  .format-toolbar {
350
  display: flex;
351
+ flex-wrap: wrap;
352
  align-items: center;
353
+ gap: 4px;
354
+ padding: 8px 14px;
355
  border-bottom: 1px solid var(--color-border);
356
  background: var(--color-surface);
357
  overflow: visible;
 
365
  align-items: center;
366
  gap: 1px;
367
  background: var(--color-border);
368
+ border-radius: 8px;
369
  overflow: hidden;
370
  }
371
 
372
  .fmt-group--font {
373
  background: transparent;
374
+ gap: 5px;
375
  overflow: visible;
376
  }
377
 
 
379
  display: flex;
380
  align-items: center;
381
  justify-content: center;
382
+ width: 32px;
383
+ height: 32px;
384
  border: none;
385
  background: var(--color-surface);
386
  color: var(--color-text-secondary);
387
  cursor: pointer;
388
  font-family: 'Georgia', 'Times New Roman', serif;
389
+ font-size: 13px;
390
  transition: all 0.15s ease;
391
  position: relative;
392
+ border-radius: 6px;
393
+ }
394
+
395
+ .fmt-group .fmt-btn {
396
+ border-radius: 0;
397
  }
398
 
399
  .fmt-btn:hover {
 
412
 
413
  .fmt-divider {
414
  width: 1px;
415
+ height: 24px;
416
  background: var(--color-border);
417
+ margin: 0 6px;
418
  flex-shrink: 0;
419
+ opacity: 0.5;
420
  }
421
 
422
  /* ── Custom Dropdowns ── */
 
1428
  /* ── Toolbar separator ── */
1429
  .toolbar-separator {
1430
  width: 1px;
1431
+ height: 24px;
1432
+ background: var(--color-border);
1433
+ margin: 0 8px;
1434
+ opacity: 0.4;
1435
  }
1436
 
1437
  /* ── Save button (icon only) ── */
 
2860
  color: #22c55e;
2861
  }
2862
 
2863
+ /* ── Window Dots (macOS style — decorative only) ── */
2864
  .window-dots {
2865
  display: flex;
2866
  align-items: center;
2867
+ gap: 5px;
2868
  }
2869
 
2870
  .window-dots .dot {
2871
+ width: 10px;
2872
+ height: 10px;
2873
  border-radius: 50%;
2874
  display: inline-block;
2875
+ opacity: 0.8;
2876
  }
2877
 
2878
  .window-dots .dot--red {
 
2923
  flex: 1;
2924
  }
2925
 
2926
+ /* ── Dots: purely decorative, no interactions ── */
2927
  .window-dots .dot {
2928
+ cursor: default;
2929
+ pointer-events: none;
 
 
 
 
2930
  }
2931
 
2932
  /* ── Fix #17: Traffic light actions ── */
 
2970
  color: #1A1D21;
2971
  background: rgba(26, 29, 33, 0.06);
2972
  }
2973
+ [data-theme="light"] .editor-tab.active {
2974
+ color: #fff !important;
2975
+ background: linear-gradient(135deg, #4A8FD4, #7C6BC4);
2976
+ box-shadow: 0 2px 8px rgba(74, 143, 212, 0.25);
2977
+ }
2978
  [data-theme="light"] .stat-item {
2979
  color: #3A424E;
2980
  opacity: 1;