Skip to content

Commit d6e7f2f

Browse files
author
William
committed
feat: add StickerText font and refine UI layout
Add Bungee Outline font as "StickerText" via CSS @font-face for sticker text generation. Refactor batch export controls with labeled wrapper for improved UX. Update size selector and layout group styling with better spacing and visual hierarchy. Adjust grid layouts to single-column for cleaner presentation.
1 parent 805406a commit d6e7f2f

6 files changed

Lines changed: 326 additions & 99 deletions

File tree

‎assets/css/app.css‎

Lines changed: 154 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
@font-face {
2+
font-family: "StickerText";
3+
src: url("/assets/fonts/bungee-outline-latin-400-normal.woff2") format("woff2"),
4+
url("/assets/fonts/BungeeOutline-Regular.ttf") format("truetype");
5+
font-weight: 400;
6+
font-style: normal;
7+
font-display: swap;
8+
}
9+
110
:root {
211
--bg-primary: #0A0A0F;
312
--bg-secondary: rgba(22, 22, 30, 0.7);
@@ -509,6 +518,21 @@ body {
509518

510519
.batch-format-select {
511520
min-width: 126px;
521+
flex: 1 1 126px;
522+
}
523+
524+
.batch-export-controls {
525+
display: inline-flex;
526+
align-items: center;
527+
gap: 0.4rem;
528+
min-width: 190px;
529+
flex: 1 1 190px;
530+
}
531+
532+
.batch-format-label {
533+
font-size: 0.78rem;
534+
color: var(--text-secondary);
535+
white-space: nowrap;
512536
}
513537

514538
.export-status,
@@ -598,9 +622,22 @@ body {
598622

599623
/* Size Selector */
600624
.size-selector {
601-
display: grid;
602-
grid-template-columns: repeat(3, minmax(0, 1fr));
603-
gap: 0.35rem;
625+
display: block;
626+
}
627+
628+
.selector-field {
629+
max-width: 340px;
630+
}
631+
632+
.selector-field .editor-dropdown {
633+
height: 40px;
634+
font-weight: 600;
635+
}
636+
637+
.selector-caption {
638+
font-size: 0.66rem;
639+
color: var(--text-secondary);
640+
line-height: 1.2;
604641
}
605642

606643
.size-btn {
@@ -639,50 +676,85 @@ body {
639676
/* Layout Selectors */
640677
.layout-row {
641678
display: grid;
642-
grid-template-columns: repeat(2, minmax(0, 1fr));
643-
gap: 0.5rem;
679+
grid-template-columns: 1fr;
680+
gap: 0.75rem;
644681
}
645682

646683
.layout-group {
647684
flex: 1;
648685
min-width: 0;
686+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
687+
border: 1px solid var(--border-color);
688+
border-radius: 12px;
689+
padding: 0.6rem;
649690
}
650691

651692
.layout-group-title {
652-
font-size: 0.65rem;
653-
color: var(--accent);
654-
margin-bottom: 0.25rem;
693+
font-size: 0.68rem;
694+
color: #cbd5e1;
695+
margin-bottom: 0.45rem;
655696
text-transform: uppercase;
697+
letter-spacing: 0.6px;
656698
}
657699

658700
.layout-options {
659-
display: grid;
660-
grid-template-columns: repeat(2, minmax(0, 1fr));
661-
gap: 0.3rem;
701+
display: block;
702+
}
703+
704+
.layout-options .selector-field {
705+
max-width: none;
662706
}
663707

664708
.layout-btn {
665-
padding: 0.35rem 0.25rem;
666-
background: rgba(255, 255, 255, 0.03);
709+
padding: 0.5rem 0.35rem;
710+
background: rgba(255, 255, 255, 0.04);
667711
border: 1px solid var(--border-color);
668-
border-radius: 8px;
712+
border-radius: 10px;
669713
cursor: pointer;
670714
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
671-
text-align: center;
715+
text-align: left;
672716
min-width: 0;
673717
width: 100%;
718+
display: flex;
719+
flex-direction: column;
720+
align-items: flex-start;
721+
gap: 0.2rem;
674722
}
675723

676724
.layout-btn:hover {
677-
background: rgba(255, 255, 255, 0.08);
725+
background: rgba(255, 255, 255, 0.1);
678726
border-color: rgba(255, 255, 255, 0.2);
679727
transform: translateY(-2px);
680728
}
681729

682730
.layout-btn.active {
683731
border-color: var(--accent);
684-
background: rgba(225, 29, 72, 0.15);
685-
box-shadow: inset 0 0 10px rgba(225, 29, 72, 0.1);
732+
background: linear-gradient(180deg, rgba(225, 29, 72, 0.22), rgba(225, 29, 72, 0.12));
733+
box-shadow: inset 0 0 10px rgba(225, 29, 72, 0.12), 0 0 0 1px rgba(225, 29, 72, 0.2);
734+
}
735+
736+
.layout-icon-badge {
737+
width: 30px;
738+
height: 30px;
739+
border-radius: 8px;
740+
display: inline-flex;
741+
align-items: center;
742+
justify-content: center;
743+
color: #e2e8f0;
744+
background: rgba(15, 23, 42, 0.55);
745+
border: 1px solid rgba(148, 163, 184, 0.3);
746+
}
747+
748+
.layout-btn.active .layout-icon-badge {
749+
color: #fff;
750+
background: rgba(15, 23, 42, 0.8);
751+
border-color: rgba(255, 255, 255, 0.35);
752+
}
753+
754+
.layout-glyph {
755+
width: 18px;
756+
height: 18px;
757+
display: block;
686758
}
687759

688760
.layout-icon {
@@ -692,8 +764,15 @@ body {
692764
}
693765

694766
.layout-label {
695-
font-size: 0.55rem;
767+
font-size: 0.66rem;
768+
color: #f1f5f9;
769+
line-height: 1.2;
770+
}
771+
772+
.layout-hint {
773+
font-size: 0.58rem;
696774
color: var(--text-secondary);
775+
line-height: 1.2;
697776
}
698777

699778
.color-picker-row {
@@ -992,8 +1071,8 @@ body {
9921071

9931072
.treeview-folder.open>.treeview-content {
9941073
display: grid;
995-
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
996-
gap: 0.25rem;
1074+
grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
1075+
gap: 0.4rem;
9971076
}
9981077

9991078
/* Nested subcategory styles */
@@ -1028,44 +1107,49 @@ body {
10281107
}
10291108

10301109
.treeview-item {
1031-
padding: 0.4rem;
1110+
padding: 0.5rem 0.35rem;
10321111
cursor: pointer;
1033-
font-size: 0.65rem;
1112+
font-size: 0.68rem;
10341113
color: var(--text-secondary);
10351114
transition: all 0.2s ease;
10361115
display: flex;
10371116
flex-direction: column;
10381117
align-items: center;
1039-
gap: 0.3rem;
1040-
border-radius: 4px;
1118+
gap: 0.4rem;
1119+
border-radius: 8px;
1120+
border: 1px solid transparent;
1121+
background: rgba(15, 23, 42, 0.28);
10411122
text-align: center;
10421123
}
10431124

10441125
.treeview-item:hover {
1045-
background: var(--bg-tertiary);
1126+
background: rgba(51, 65, 85, 0.45);
10461127
color: var(--text-primary);
1128+
border-color: rgba(148, 163, 184, 0.45);
10471129
}
10481130

10491131
.treeview-item.selected {
1050-
background: rgba(233, 69, 96, 0.3);
1051-
color: var(--accent);
1132+
background: rgba(225, 29, 72, 0.24);
1133+
color: #fff;
10521134
border: 1px solid var(--accent);
10531135
}
10541136

10551137
.treeview-icon-preview {
1056-
width: 32px;
1057-
height: 32px;
1058-
background: white;
1059-
border-radius: 4px;
1138+
width: 40px;
1139+
height: 40px;
1140+
background: #f8fafc;
1141+
border-radius: 8px;
1142+
border: 1px solid rgba(15, 23, 42, 0.18);
10601143
display: flex;
10611144
align-items: center;
10621145
justify-content: center;
10631146
overflow: hidden;
1147+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
10641148
}
10651149

10661150
.treeview-icon-preview img {
1067-
max-width: 28px;
1068-
max-height: 28px;
1151+
max-width: 34px;
1152+
max-height: 34px;
10691153
object-fit: contain;
10701154
}
10711155

@@ -1158,6 +1242,11 @@ body {
11581242

11591243
.batch-format-select {
11601244
width: 144px;
1245+
flex: 0 0 144px;
1246+
}
1247+
1248+
.batch-export-controls {
1249+
flex: 0 0 auto;
11611250
}
11621251

11631252
.batch-export-status {
@@ -1302,9 +1391,7 @@ body {
13021391
}
13031392

13041393
.size-selector {
1305-
display: flex;
1306-
gap: 0.75rem;
1307-
flex-wrap: wrap;
1394+
display: block;
13081395
}
13091396

13101397
.size-btn {
@@ -1321,33 +1408,37 @@ body {
13211408
}
13221409

13231410
.layout-row {
1324-
display: flex;
1325-
flex-direction: row;
1326-
gap: 2rem;
1411+
display: grid;
1412+
grid-template-columns: repeat(2, minmax(0, 1fr));
1413+
gap: 1rem;
13271414
}
13281415

13291416
.layout-group {
1330-
min-width: 200px;
1417+
min-width: 0;
1418+
padding: 0.85rem;
13311419
}
13321420

13331421
.layout-options {
1334-
display: flex;
1335-
flex-wrap: wrap;
1422+
display: block;
13361423
}
13371424

13381425
.layout-btn {
1339-
width: auto;
1340-
min-width: 70px;
1341-
padding: 0.6rem 0.8rem;
1426+
min-width: 0;
1427+
min-height: 86px;
1428+
padding: 0.65rem 0.55rem;
13421429
}
13431430

1344-
.layout-icon {
1345-
font-size: 1.2rem;
1346-
margin-bottom: 0.25rem;
1431+
.layout-icon-badge {
1432+
width: 34px;
1433+
height: 34px;
13471434
}
13481435

13491436
.layout-label {
1350-
font-size: 0.65rem;
1437+
font-size: 0.72rem;
1438+
}
1439+
1440+
.layout-hint {
1441+
font-size: 0.62rem;
13511442
}
13521443

13531444
.canvas-container {
@@ -1501,6 +1592,19 @@ body {
15011592
padding: 0.75rem;
15021593
}
15031594

1595+
.zone-editor-actions {
1596+
display: flex;
1597+
gap: 0.5rem;
1598+
padding: 0.75rem;
1599+
border-top: 1px solid var(--border-color);
1600+
background: rgba(255, 255, 255, 0.02);
1601+
}
1602+
1603+
.zone-editor-actions .btn {
1604+
flex: 1 1 50%;
1605+
justify-content: center;
1606+
}
1607+
15041608
/* Preview hint subtitle */
15051609
.preview-hint {
15061610
font-size: 0.7rem;
189 KB
Binary file not shown.
27.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)