Commit ·
2832a7b
1
Parent(s): 62a85e1
CSS grid for perfect tab centering (3-column layout: sides + center)
Browse files- src/css/components.css +10 -3
src/css/components.css
CHANGED
|
@@ -308,20 +308,27 @@
|
|
| 308 |
}
|
| 309 |
|
| 310 |
.editor-toolbar {
|
| 311 |
-
display:
|
|
|
|
| 312 |
align-items: center;
|
| 313 |
-
justify-content: space-between;
|
| 314 |
gap: var(--spacing-sm);
|
| 315 |
padding: 10px var(--spacing-md);
|
| 316 |
border-bottom: 1px solid var(--color-border);
|
| 317 |
background: var(--color-surface);
|
| 318 |
}
|
| 319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
.editor-tabs-center {
|
| 321 |
display: flex;
|
| 322 |
align-items: center;
|
| 323 |
gap: 4px;
|
| 324 |
-
flex: 1;
|
| 325 |
justify-content: center;
|
| 326 |
}
|
| 327 |
|
|
|
|
| 308 |
}
|
| 309 |
|
| 310 |
.editor-toolbar {
|
| 311 |
+
display: grid;
|
| 312 |
+
grid-template-columns: 1fr auto 1fr;
|
| 313 |
align-items: center;
|
|
|
|
| 314 |
gap: var(--spacing-sm);
|
| 315 |
padding: 10px var(--spacing-md);
|
| 316 |
border-bottom: 1px solid var(--color-border);
|
| 317 |
background: var(--color-surface);
|
| 318 |
}
|
| 319 |
|
| 320 |
+
.editor-toolbar > *:first-child {
|
| 321 |
+
justify-self: start;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
.editor-toolbar > *:last-child {
|
| 325 |
+
justify-self: end;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
.editor-tabs-center {
|
| 329 |
display: flex;
|
| 330 |
align-items: center;
|
| 331 |
gap: 4px;
|
|
|
|
| 332 |
justify-content: center;
|
| 333 |
}
|
| 334 |
|