Add toolbox library page with editable examples
All checks were successful
Deploy Sokko G / deploy (push) Successful in 7s

This commit is contained in:
Shinuwa 2026-08-03 11:37:59 +02:00
parent 8eb622e05d
commit 9b72f4934c
20 changed files with 4774 additions and 31 deletions

View file

@ -149,6 +149,12 @@ span {
gap: 10px;
}
.hero-library-button {
display: inline-flex;
width: fit-content;
margin-top: var(--space-4);
}
.hero-panel {
padding: var(--space-5);
border: 1px solid rgba(165, 180, 252, 0.14);
@ -187,6 +193,202 @@ span {
filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.34));
}
.library-page {
display: grid;
gap: var(--space-6);
}
.library-hero {
min-height: 220px;
}
.library-summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--space-4);
padding: var(--space-5);
}
.library-summary article {
display: flex;
min-width: 0;
gap: var(--space-3);
padding: var(--space-4);
border: 1px solid rgba(150, 165, 205, 0.12);
border-radius: var(--radius-md);
background: rgba(5, 7, 17, 0.28);
}
.library-summary h2,
.library-summary p {
margin: 0;
}
.library-summary h2 {
margin-bottom: 5px;
font-size: var(--font-size-md);
}
.library-summary-icon {
display: grid;
width: 34px;
min-width: 34px;
height: 34px;
place-items: center;
border: 1px solid rgba(196, 181, 253, 0.24);
border-radius: var(--radius-md);
background:
linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(99, 102, 241, 0.84));
box-shadow: var(--shadow-primary);
color: white;
}
.library-summary-icon .module-icon-svg {
width: 18px;
height: 18px;
background: currentColor;
}
.library-toc {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: var(--space-4);
scroll-margin-top: var(--space-5);
}
.library-toc a {
display: inline-flex;
min-width: 0;
min-height: 40px;
align-items: center;
gap: 8px;
padding: 5px 10px 5px 5px;
border: 1px solid rgba(150, 165, 205, 0.14);
border-radius: var(--radius-md);
background: rgba(5, 7, 17, 0.28);
color: var(--color-text-secondary);
font-size: var(--font-size-sm);
font-weight: 800;
text-decoration: none;
}
.library-toc a:hover,
.library-toc a:focus-visible {
border-color: rgba(246, 196, 83, 0.42);
background: rgba(246, 196, 83, 0.08);
color: var(--color-text-primary);
}
.library-toc .module-icon {
width: 28px;
height: 28px;
border-radius: var(--radius-sm);
}
.library-toc .module-icon-svg {
width: 16px;
height: 16px;
}
.library-tools {
display: grid;
gap: var(--space-5);
justify-items: stretch;
}
.library-tool-section {
position: relative;
display: grid;
width: 100%;
min-width: 0;
gap: var(--space-4);
overflow: hidden;
padding: var(--space-5);
border: 1px solid transparent;
border-radius: var(--radius-lg);
background: rgba(16, 20, 38, 0.42);
box-shadow: var(--shadow-sm);
scroll-margin-top: var(--space-8);
@include mixins.gold-panel-frame;
}
.library-tool-section > * {
position: relative;
z-index: 1;
}
.library-tool-intro {
min-width: 0;
}
.library-tool-intro h2,
.library-tool-intro p {
margin: 0;
}
.library-tool-intro h2 {
margin-bottom: 6px;
font-size: var(--font-size-xl);
}
.library-tool-intro p {
max-width: 860px;
}
.library-tool-example {
width: min(100%, 860px);
min-width: 0;
justify-self: center;
}
.library-tool-example header > div {
min-width: 0;
}
.library-tool-example header p {
margin: 3px 0 0;
color: var(--color-text-muted);
font-size: var(--font-size-xs);
font-weight: 700;
text-transform: uppercase;
}
.library-example-actions {
display: flex;
flex: 0 0 auto;
gap: 8px;
}
.library-reset-button {
display: inline-grid;
width: 40px;
min-width: 40px;
min-height: 40px;
flex: 0 0 40px;
place-items: center;
padding: 0;
}
.library-reset-button .ui-icon {
width: 16px;
height: 16px;
}
.library-tool-example .module-content {
padding: var(--space-4);
}
.library-tool-example .module-add-panel {
display: none;
}
.library-tool-example .image-annotation-stage,
.library-tool-example .images-grid img {
max-height: 260px;
}
.nebula-panel {
position: relative;
overflow: hidden;

View file

@ -1002,6 +1002,7 @@
border-radius: var(--radius-md);
background: rgba(10, 13, 28, 0.99);
box-shadow: var(--shadow-lg);
transform: translateX(-50%);
}
.notepad-list-menu::before {
@ -1014,6 +1015,15 @@
border-left: 7px solid transparent;
}
.notepad-list-menu::after {
content: "";
position: absolute;
right: 0;
bottom: 100%;
left: 0;
height: 10px;
}
.notepad-list-option {
justify-content: center;
width: 34px;
@ -2621,7 +2631,7 @@ textarea:focus {
white-space: nowrap;
}
.combos-category-header > div {
.combos-category-header .combos-category-title {
gap: 6px;
}
@ -2661,6 +2671,8 @@ textarea:focus {
.combo-drag-handle {
align-self: start;
touch-action: none;
user-select: none;
}
.combo-card-main {
@ -3060,7 +3072,8 @@ button.combo-input-token.combo-input-mouse {
.counters-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 220px));
justify-content: start;
gap: 10px;
margin: var(--space-4);
}
@ -3068,6 +3081,8 @@ button.combo-input-token.combo-input-mouse {
.counter-item {
position: relative;
display: grid;
min-height: 106px;
align-content: space-between;
gap: 12px;
padding: 12px 52px 12px 12px;
border: 1px solid rgba(165, 180, 252, 0.12);
@ -3093,7 +3108,7 @@ button.combo-input-token.combo-input-mouse {
user-select: none;
}
.counter-item > div:first-child {
.counter-value {
display: grid;
gap: 3px;
min-width: 0;
@ -3117,11 +3132,16 @@ button.combo-input-token.combo-input-mouse {
.counter-actions {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-columns: repeat(4, 34px);
justify-content: start;
gap: 8px;
}
.counter-actions button {
width: 34px;
min-width: 34px;
min-height: 34px;
padding: 0;
font-weight: 900;
}