|
2 | 2 | display: flex; |
3 | 3 | align-items: center; |
4 | 4 | justify-content: space-between; |
5 | | - padding: 8px 16px; |
| 5 | + padding: 6px 12px; |
6 | 6 | background: var(--editor-header-bg); |
7 | 7 | border-bottom: 1px solid var(--editor-header-border); |
8 | 8 | min-height: 36px; |
|
14 | 14 | min-width: 0; |
15 | 15 | display: flex; |
16 | 16 | align-items: center; |
17 | | - gap: 12px; |
| 17 | + gap: 6px; |
| 18 | +} |
| 19 | + |
| 20 | +/* Shared icon action button (switch / share / preview). */ |
| 21 | +.minimal-header .icon-btn { |
| 22 | + display: flex; |
| 23 | + align-items: center; |
| 24 | + justify-content: center; |
| 25 | + width: 28px; |
| 26 | + height: 28px; |
| 27 | + padding: 0; |
| 28 | + background: none; |
| 29 | + border: 1px solid transparent; |
| 30 | + border-radius: 6px; |
| 31 | + color: var(--editor-text-muted); |
| 32 | + cursor: pointer; |
| 33 | + flex-shrink: 0; |
| 34 | + transition: background 0.15s, color 0.15s, border-color 0.15s; |
| 35 | +} |
| 36 | + |
| 37 | +.minimal-header .icon-btn:hover { |
| 38 | + background: var(--view-toggle-hover-bg); |
| 39 | + color: var(--editor-text); |
| 40 | +} |
| 41 | + |
| 42 | +/* Preview is the primary action: filled accent pill with icon + label. */ |
| 43 | +.minimal-header .preview-btn { |
| 44 | + display: flex; |
| 45 | + align-items: center; |
| 46 | + gap: 6px; |
| 47 | + height: 28px; |
| 48 | + padding: 0 12px; |
| 49 | + background: var(--header-preview-bg); |
| 50 | + border: 1px solid var(--header-preview-bg); |
| 51 | + border-radius: 6px; |
| 52 | + color: var(--header-preview-text); |
| 53 | + font-size: 13px; |
| 54 | + font-weight: 600; |
| 55 | + cursor: pointer; |
| 56 | + flex-shrink: 0; |
| 57 | + transition: background 0.15s, border-color 0.15s; |
| 58 | +} |
| 59 | + |
| 60 | +.minimal-header .preview-btn:hover { |
| 61 | + background: var(--header-preview-hover); |
| 62 | + border-color: var(--header-preview-hover); |
| 63 | +} |
| 64 | + |
| 65 | +/* Vertical divider separating the actions from the document identity. */ |
| 66 | +.header-divider { |
| 67 | + width: 1px; |
| 68 | + align-self: stretch; |
| 69 | + margin: 4px 2px; |
| 70 | + background: var(--editor-header-border); |
| 71 | + flex-shrink: 0; |
| 72 | +} |
| 73 | + |
| 74 | +/* Document identity: project name / file path. */ |
| 75 | +.header-doc { |
| 76 | + display: flex; |
| 77 | + align-items: baseline; |
| 78 | + gap: 8px; |
| 79 | + min-width: 0; |
| 80 | + overflow: hidden; |
| 81 | +} |
| 82 | + |
| 83 | +.header-doc .project-name { |
| 84 | + font-size: 13px; |
| 85 | + font-weight: 600; |
| 86 | + color: var(--editor-text); |
| 87 | + white-space: nowrap; |
| 88 | + flex-shrink: 0; |
| 89 | +} |
| 90 | + |
| 91 | +.header-doc .path-sep { |
| 92 | + color: var(--editor-text-muted); |
| 93 | + font-size: 13px; |
| 94 | + flex-shrink: 0; |
18 | 95 | } |
19 | 96 |
|
20 | | -.minimal-header .file-path { |
| 97 | +.header-doc .file-path { |
21 | 98 | font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace; |
22 | 99 | font-size: 13px; |
23 | 100 | color: var(--editor-text-dim); |
| 101 | + white-space: nowrap; |
| 102 | + overflow: hidden; |
| 103 | + text-overflow: ellipsis; |
| 104 | + min-width: 0; |
24 | 105 | } |
25 | 106 |
|
26 | | -.minimal-header .file-path.empty { |
| 107 | +.header-doc .file-path.empty { |
27 | 108 | color: var(--editor-text-muted); |
28 | 109 | font-style: italic; |
29 | 110 | } |
|
39 | 120 | display: flex; |
40 | 121 | align-items: center; |
41 | 122 | gap: 6px; |
42 | | - padding: 4px 10px; |
| 123 | + box-sizing: border-box; |
| 124 | + height: 28px; |
| 125 | + padding: 0 10px; |
43 | 126 | background: var(--editor-header-bg); |
44 | 127 | border: 1px solid var(--editor-disconnected-border); |
45 | 128 | border-radius: 4px; |
46 | 129 | font-size: 12px; |
| 130 | + line-height: 1; |
47 | 131 | user-select: none; |
48 | 132 | } |
49 | 133 |
|
|
77 | 161 | color: var(--editor-text-dim); |
78 | 162 | font-weight: 500; |
79 | 163 | } |
80 | | - |
81 | | -.header-right .project-name { |
82 | | - font-size: 13px; |
83 | | - font-weight: 500; |
84 | | - color: var(--editor-text-muted); |
85 | | - min-width: 120px; |
86 | | - max-width: 400px; |
87 | | - overflow: hidden; |
88 | | - text-overflow: ellipsis; |
89 | | - white-space: nowrap; |
90 | | - text-align: right; |
91 | | -} |
92 | | - |
93 | | -.header-right .preview-btn { |
94 | | - padding: 6px 16px; |
95 | | - background: var(--header-preview-bg); |
96 | | - border: 2px solid var(--header-preview-bg); |
97 | | - border-radius: 6px; |
98 | | - color: var(--header-preview-text); |
99 | | - font-size: 14px; |
100 | | - font-weight: 600; |
101 | | - cursor: pointer; |
102 | | - transition: all 0.15s; |
103 | | - box-shadow: 0 2px 8px var(--header-preview-shadow); |
104 | | -} |
105 | | - |
106 | | -.header-right .preview-btn:hover { |
107 | | - background: var(--header-preview-hover); |
108 | | - border-color: var(--header-preview-hover); |
109 | | - transform: translateY(-1px); |
110 | | - box-shadow: 0 4px 12px var(--header-preview-shadow-hover); |
111 | | -} |
112 | | - |
113 | | -.header-right .preview-btn:active { |
114 | | - transform: translateY(0); |
115 | | -} |
116 | | - |
117 | | -.header-right .choose-project-btn { |
118 | | - padding: 4px 10px; |
119 | | - background: none; |
120 | | - border: 1px solid var(--editor-disconnected-border); |
121 | | - border-radius: 4px; |
122 | | - color: var(--editor-text-muted); |
123 | | - font-size: 12px; |
124 | | - cursor: pointer; |
125 | | - transition: all 0.15s; |
126 | | -} |
127 | | - |
128 | | -.header-right .choose-project-btn:hover { |
129 | | - border-color: var(--sidebar-active-accent); |
130 | | - color: var(--sidebar-active-accent); |
131 | | -} |
132 | | - |
133 | | -.header-right .share-btn { |
134 | | - padding: 4px 10px; |
135 | | - background: var(--header-share-bg); |
136 | | - border: 1px solid var(--header-share-bg); |
137 | | - border-radius: 4px; |
138 | | - color: #fff; |
139 | | - font-size: 12px; |
140 | | - cursor: pointer; |
141 | | - transition: all 0.15s; |
142 | | -} |
143 | | - |
144 | | -.header-right .share-btn:hover { |
145 | | - background: var(--header-share-hover); |
146 | | - border-color: var(--header-share-hover); |
147 | | -} |
|
0 commit comments