Commit ·
978c7f9
1
Parent(s): 07ab5d8
UI: Add 3 macOS window dots to editor toolbar + move save to footer - Red/yellow/green dots on right side of toolbar (like screenshot) - Save button moved next to delete and copy in editor-actions - Doc name + tabs remain in toolbar
Browse files- src/css/components.css +26 -0
- src/index.html +10 -5
src/css/components.css
CHANGED
|
@@ -2643,3 +2643,29 @@ input[type="range"]::-moz-range-thumb {
|
|
| 2643 |
background: rgba(34, 197, 94, 0.15);
|
| 2644 |
color: #22c55e;
|
| 2645 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2643 |
background: rgba(34, 197, 94, 0.15);
|
| 2644 |
color: #22c55e;
|
| 2645 |
}
|
| 2646 |
+
|
| 2647 |
+
/* ── Window Dots (macOS style) ── */
|
| 2648 |
+
.window-dots {
|
| 2649 |
+
display: flex;
|
| 2650 |
+
align-items: center;
|
| 2651 |
+
gap: 6px;
|
| 2652 |
+
}
|
| 2653 |
+
|
| 2654 |
+
.window-dots .dot {
|
| 2655 |
+
width: 12px;
|
| 2656 |
+
height: 12px;
|
| 2657 |
+
border-radius: 50%;
|
| 2658 |
+
display: inline-block;
|
| 2659 |
+
}
|
| 2660 |
+
|
| 2661 |
+
.window-dots .dot--red {
|
| 2662 |
+
background: #ef4444;
|
| 2663 |
+
}
|
| 2664 |
+
|
| 2665 |
+
.window-dots .dot--yellow {
|
| 2666 |
+
background: #eab308;
|
| 2667 |
+
}
|
| 2668 |
+
|
| 2669 |
+
.window-dots .dot--green {
|
| 2670 |
+
background: #22c55e;
|
| 2671 |
+
}
|
src/index.html
CHANGED
|
@@ -471,12 +471,8 @@
|
|
| 471 |
<!-- CENTER: Main Editor -->
|
| 472 |
<div>
|
| 473 |
<div class="editor-shell">
|
| 474 |
-
<div class="editor-toolbar"
|
| 475 |
<div class="flex items-center gap-2 flex-wrap">
|
| 476 |
-
<button id="doc-save-btn" class="doc-save-btn-icon btn-ghost" type="button" aria-label="حفظ المستند" title="حفظ">
|
| 477 |
-
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"/></svg>
|
| 478 |
-
</button>
|
| 479 |
-
<span id="auto-save-status" class="text-xs text-secondary" style="opacity:0;transition:opacity 0.3s;"></span>
|
| 480 |
<div class="doc-title-bar">
|
| 481 |
<span id="doc-current-title" class="doc-current-title">مستند جديد</span>
|
| 482 |
</div>
|
|
@@ -492,6 +488,12 @@
|
|
| 492 |
<span class="analyzing-spinner" aria-hidden="true"></span>
|
| 493 |
<span>جاري التحليل...</span>
|
| 494 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 495 |
</div>
|
| 496 |
</div>
|
| 497 |
<!-- Formatting Toolbar -->
|
|
@@ -663,6 +665,9 @@
|
|
| 663 |
<span class="stat-item">⏱ <span id="reading-time">٠</span> د قراءة</span>
|
| 664 |
</div>
|
| 665 |
<div class="editor-actions">
|
|
|
|
|
|
|
|
|
|
| 666 |
<button onclick="clearEditor()" class="btn-ghost" type="button" title="مسح الكل">
|
| 667 |
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/></svg>
|
| 668 |
</button>
|
|
|
|
| 471 |
<!-- CENTER: Main Editor -->
|
| 472 |
<div>
|
| 473 |
<div class="editor-shell">
|
| 474 |
+
<div class="editor-toolbar">
|
| 475 |
<div class="flex items-center gap-2 flex-wrap">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 476 |
<div class="doc-title-bar">
|
| 477 |
<span id="doc-current-title" class="doc-current-title">مستند جديد</span>
|
| 478 |
</div>
|
|
|
|
| 488 |
<span class="analyzing-spinner" aria-hidden="true"></span>
|
| 489 |
<span>جاري التحليل...</span>
|
| 490 |
</div>
|
| 491 |
+
<span id="auto-save-status" class="text-xs text-secondary" style="opacity:0;transition:opacity 0.3s;"></span>
|
| 492 |
+
<div class="window-dots" aria-hidden="true">
|
| 493 |
+
<span class="dot dot--red"></span>
|
| 494 |
+
<span class="dot dot--yellow"></span>
|
| 495 |
+
<span class="dot dot--green"></span>
|
| 496 |
+
</div>
|
| 497 |
</div>
|
| 498 |
</div>
|
| 499 |
<!-- Formatting Toolbar -->
|
|
|
|
| 665 |
<span class="stat-item">⏱ <span id="reading-time">٠</span> د قراءة</span>
|
| 666 |
</div>
|
| 667 |
<div class="editor-actions">
|
| 668 |
+
<button id="doc-save-btn" class="doc-save-btn-icon btn-ghost" type="button" aria-label="حفظ المستند" title="حفظ">
|
| 669 |
+
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"/></svg>
|
| 670 |
+
</button>
|
| 671 |
<button onclick="clearEditor()" class="btn-ghost" type="button" title="مسح الكل">
|
| 672 |
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/></svg>
|
| 673 |
</button>
|