style: improve toolbar
This commit is contained in:
1 parent
082153f8cb
commit
d242a515cb
9 files changed
+43
-42
No files matched your search
+3
-3
@@ -964,7 +964,7 @@
|
||||
}
|
||||
|
||||
.app-logo {
|
||||
height: 17px;
|
||||
height: 15px;
|
||||
width: auto;
|
||||
display: block;
|
||||
opacity: 1.0;
|
||||
@@ -1165,8 +1165,8 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
height: 2rem;
|
||||
padding: 0 0.55rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.45rem;
|
||||
position: absolute;
|
||||
left: 0.75rem;
|
||||
top: -1px;
|
||||
|
||||
@@ -135,8 +135,8 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
height: 2rem;
|
||||
padding: 0 0.4rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.3rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
background: transparent;
|
||||
|
||||
@@ -452,7 +452,7 @@
|
||||
.color-split {
|
||||
display: inline-flex;
|
||||
align-items: stretch;
|
||||
height: 2rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--color-surface);
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
.history-control {
|
||||
display: inline-flex;
|
||||
align-items: stretch;
|
||||
height: 2rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
@@ -161,8 +161,8 @@
|
||||
}
|
||||
|
||||
.history-main {
|
||||
min-width: 2rem;
|
||||
padding: 0 0.4rem;
|
||||
min-width: var(--toolbar-btn-size);
|
||||
padding: 0 0.3rem;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
|
||||
<div class="char-picker" use:charPickerClickOutside>
|
||||
<button class="char-trigger" onclick={openPicker} title="Insert special character" aria-pressed={open}>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<text x="8" y="12.5" font-size="14" font-weight="700" font-family="var(--font-serif, serif)" fill="currentColor" text-anchor="middle">Ω</text>
|
||||
</svg>
|
||||
</button>
|
||||
@@ -184,9 +184,9 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0 0.5rem;
|
||||
min-width: var(--toolbar-btn-size);
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.3rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
background: transparent;
|
||||
|
||||
@@ -165,9 +165,9 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0 0.5rem;
|
||||
min-width: var(--toolbar-btn-size);
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.3rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
background: transparent;
|
||||
|
||||
@@ -155,9 +155,9 @@
|
||||
title="Ordered list"
|
||||
>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<text x="0" y="5.5" font-size="5" font-family="sans-serif" fill="currentColor">1.</text>
|
||||
<text x="0" y="9.5" font-size="5" font-family="sans-serif" fill="currentColor">2.</text>
|
||||
<text x="0" y="13.5" font-size="5" font-family="sans-serif" fill="currentColor">3.</text>
|
||||
<text x="0" y="5.5" font-size="5" font-weight="bold" font-family="sans-serif" fill="currentColor">1.</text>
|
||||
<text x="0" y="9.5" font-size="5" font-weight="bold" font-family="sans-serif" fill="currentColor">2.</text>
|
||||
<text x="0" y="13.5" font-size="5" font-weight="bold" font-family="sans-serif" fill="currentColor">3.</text>
|
||||
<line x1="5.5" y1="4" x2="15" y2="4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
||||
<line x1="5.5" y1="8" x2="15" y2="8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
||||
<line x1="5.5" y1="12" x2="15" y2="12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
||||
@@ -216,8 +216,8 @@
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.35rem 1rem;
|
||||
gap: 0.125rem;
|
||||
padding: 0.25rem 1rem;
|
||||
background: var(--color-toolbar-bg);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
@@ -226,23 +226,23 @@
|
||||
|
||||
.toolbar-group {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.toolbar-separator {
|
||||
width: 1px;
|
||||
height: 1.5rem;
|
||||
height: 1.2rem;
|
||||
background: var(--color-border);
|
||||
margin: 0 0.5rem;
|
||||
margin: 0 0.3rem;
|
||||
}
|
||||
|
||||
button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0 0.5rem;
|
||||
min-width: var(--toolbar-btn-size);
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.3rem;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
background: transparent;
|
||||
@@ -287,7 +287,7 @@
|
||||
.ol-split {
|
||||
display: inline-flex;
|
||||
align-items: stretch;
|
||||
height: 2rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
@@ -305,7 +305,7 @@
|
||||
.ol-main {
|
||||
min-width: unset;
|
||||
height: 100%;
|
||||
padding: 0 0.2rem 0 0.5rem;
|
||||
padding: 0 0.2rem 0 0.3rem;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -893,7 +893,7 @@
|
||||
>
|
||||
{#snippet icon()}
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<text x="3" y="11" font-size="10" font-weight="bold" font-family="sans-serif" fill="currentColor">A</text>
|
||||
<text x="8" y="14" text-anchor="middle" font-size="15" font-family="sans-serif" fill="currentColor">A</text>
|
||||
</svg>
|
||||
{/snippet}
|
||||
</ColorPicker>
|
||||
@@ -1237,7 +1237,7 @@
|
||||
title={hfActive ? 'Text boxes are not available in headers/footers' : 'Insert text box'}
|
||||
aria-label="Insert text box"
|
||||
>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<rect x="1.5" y="3.5" width="13" height="9" rx="1" stroke="currentColor" />
|
||||
<path d="M5.5 6.5h5M8 6.5v4" stroke="currentColor" stroke-linecap="round" />
|
||||
</svg>
|
||||
@@ -1332,7 +1332,7 @@
|
||||
.toolbar-expanded {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
gap: 0.125rem;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
@@ -1347,23 +1347,23 @@
|
||||
|
||||
.toolbar-group {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.toolbar-separator {
|
||||
width: 1px;
|
||||
height: 1.5rem;
|
||||
height: 1.2rem;
|
||||
background: var(--color-border);
|
||||
margin: 0 0.5rem;
|
||||
margin: 0 0.3rem;
|
||||
}
|
||||
|
||||
button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0 0.5rem;
|
||||
min-width: var(--toolbar-btn-size);
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.3rem;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
background: transparent;
|
||||
@@ -1415,7 +1415,7 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
height: 2rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.4rem 0 0.6rem;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
@@ -1529,7 +1529,7 @@
|
||||
.size-trigger-wrap {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 2rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
width: 62px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
@@ -1629,7 +1629,7 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
height: 2rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.4rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
@@ -1668,7 +1668,7 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
height: 2rem;
|
||||
height: var(--toolbar-btn-size);
|
||||
padding: 0 0.5rem;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius);
|
||||
|
||||
@@ -198,6 +198,7 @@
|
||||
|
||||
:root {
|
||||
--radius: 6px;
|
||||
--toolbar-btn-size: 1.7rem; /* height of all toolbar controls (matches the floating toolbars) */
|
||||
--shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
--font-serif: 'Liberation Serif', 'Times New Roman', Georgia, serif;
|
||||
|
||||
Reference in new issue
Block a user