improve text editor toolbar
All checks were successful
Deploy Sokko G / deploy (push) Successful in 7s

This commit is contained in:
Shinuwa 2026-07-29 20:24:00 +02:00
parent de1b8a5638
commit 896ae23ff2
6 changed files with 148 additions and 11 deletions

View file

@ -857,6 +857,39 @@
position: relative;
}
.notepad-list-dropdown {
position: relative;
}
.notepad-list-icon,
.notepad-list-icon::before,
.notepad-list-icon::after {
display: block;
width: 17px;
height: 2px;
border-radius: var(--radius-pill);
background: currentColor;
}
.notepad-list-icon {
position: relative;
}
.notepad-list-icon::before,
.notepad-list-icon::after {
content: "";
position: absolute;
left: 0;
}
.notepad-list-icon::before {
top: -6px;
}
.notepad-list-icon::after {
top: 6px;
}
.notepad-color-toggle::before,
.notepad-swatch::before {
content: "";
@ -907,6 +940,52 @@
transform 140ms ease;
}
.notepad-list-menu {
position: absolute;
top: calc(100% + 8px);
left: 50%;
z-index: 50;
display: grid;
grid-template-columns: repeat(2, 34px);
gap: 6px;
padding: 8px;
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
background: rgba(10, 13, 28, 0.99);
box-shadow: var(--shadow-lg);
}
.notepad-list-menu::before {
content: "";
position: absolute;
bottom: 100%;
left: calc(50% - 7px);
border-right: 7px solid transparent;
border-bottom: 7px solid rgba(10, 13, 28, 0.99);
border-left: 7px solid transparent;
}
.notepad-list-option {
justify-content: center;
width: 34px;
min-width: 34px;
min-height: 34px;
padding: 0;
border-color: rgba(150, 165, 205, 0.18);
background: rgba(16, 20, 38, 0.74);
color: var(--color-text-secondary);
font-size: var(--font-size-sm);
font-weight: 800;
box-shadow: none;
}
.notepad-list-option:hover,
.notepad-list-option.active {
border-color: rgba(246, 196, 83, 0.48);
background: rgba(246, 196, 83, 0.1);
color: var(--color-accent-gold);
}
.notepad-color-menu.is-sectioned {
grid-template-columns: 1fr;
width: 168px;