Skip to content

Commit 6c1fe33

Browse files
committed
✨ added fuzzy search to shop and sale + stock displays also began working on whishlist
1 parent c86de2d commit 6c1fe33

5 files changed

Lines changed: 320 additions & 137 deletions

File tree

media/stylesheet.css

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
--accent-pink: var(--vscode-charts-pink);
2222
--accent-blue: var(--vscode-charts-blue);
2323
--accent-green: var(--vscode-charts-green);
24+
--accent-gold: var(--vscode-charts-yellow, #d9b64f);
25+
--accent-gold-active: var(--vscode-charts-orange, #dbcdaf);
26+
2427
}
2528

2629
.dark {
@@ -45,6 +48,8 @@
4548
--accent-pink: #f5c2e7;
4649
--accent-blue: #89b4fa;
4750
--accent-green: #a6e3a1;
51+
--accent-gold: var(--border);
52+
--accent-gold-active: var(--border-highlight);
4853
}
4954

5055
.light {
@@ -69,6 +74,8 @@
6974
--accent-pink: #c88ab7;
7075
--accent-blue: #6a93d9;
7176
--accent-green: #8dbb77;
77+
--accent-gold: var(--border);
78+
--accent-gold-active: var(--border-highlight);
7279
}
7380

7481
.midnight {
@@ -93,6 +100,8 @@
93100
--accent-pink: #ff92d0;
94101
--accent-blue: #8be9fd;
95102
--accent-green: #69f0ae;
103+
--accent-gold: var(--border);
104+
--accent-gold-active: var(--border-highlight);
96105
}
97106

98107
.orosemo {
@@ -117,6 +126,8 @@
117126
--accent-pink: #e8a6d9;
118127
--accent-blue: #7fb8d8;
119128
--accent-green: #8cd9b0;
129+
--accent-gold: var(--border);
130+
--accent-gold-active: var(--border-highlight);
120131
}
121132

122133
/* native classes */
@@ -319,6 +330,32 @@ details[open] summary i {
319330
color: var(--background);
320331
}
321332

333+
.favourite {
334+
color: var(--accent-gold);
335+
background-color: var(--accent-gold-active);
336+
border-style: none;
337+
border-radius: 360px
338+
}
339+
340+
.favourite:hover {
341+
color: var(--accent-gold-active);
342+
background-color: var(--accent-gold);
343+
}
344+
345+
.favourite-active.favourite{
346+
color: var(--accent-gold-active);
347+
background-color: var(--accent-gold);
348+
}
349+
350+
.favourite-active.favourite:hover {
351+
color: var(--accent-gold);
352+
background-color: var(--accent-gold-active);
353+
}
354+
355+
.warning-bg {
356+
background-color: var(--warning);
357+
}
358+
322359
button.button-disabled,
323360
.button-disabled {
324361
cursor: not-allowed;
@@ -762,6 +799,8 @@ button.button-disabled,
762799
}
763800

764801
.shop-item {
802+
position: relative;
803+
z-index: 1;
765804
min-height: 220px;
766805
width: 100%;
767806
max-width: 300px;
@@ -777,7 +816,6 @@ button.button-disabled,
777816
border-color: var(--border);
778817
box-sizing: border-box;
779818
background-color: var(--background);
780-
781819
}
782820

783821
.shop-item-desc {
@@ -800,6 +838,26 @@ button.button-disabled,
800838
margin: 0 auto 8px;
801839
}
802840

841+
.shop-badge-top-right {
842+
position: absolute;
843+
top: 10px;
844+
right: 10px;
845+
z-index: 10;
846+
}
847+
848+
.shop-badge-top-left {
849+
position: absolute;
850+
top: 9px;
851+
left: 10px;
852+
z-index: 10;
853+
}
854+
855+
.shop-badge {
856+
border-radius: 40px;
857+
border-style: none;
858+
padding: 5px;
859+
}
860+
803861
.opened-shop-item-box {
804862
display: grid;
805863
grid-template-columns: 1fr;
@@ -927,7 +985,6 @@ button.button-disabled,
927985

928986
@media (min-width: 900px) {
929987
.opened-shop-item-box {
930-
grid-template-columns: 1fr 1fr;
931988
align-items: stretch;
932989
}
933990

@@ -950,7 +1007,6 @@ button.button-disabled,
9501007

9511008
@media (min-width: 1200px) {
9521009
.shop-item-box {
953-
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
9541010
gap: 24px;
9551011
}
9561012

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
"chart.js": "^4.5.1",
160160
"discord-rpc": "^4.0.1",
161161
"emoji": "^0.3.2",
162+
"fuse.js": "^7.3.0",
162163
"node-emoji": "^2.2.0"
163164
}
164165
}

0 commit comments

Comments
 (0)