Skip to content

Commit 9621523

Browse files
committed
🔨 Remove stylus
1 parent 5c8c3e4 commit 9621523

File tree

11 files changed

+2796
-4041
lines changed

11 files changed

+2796
-4041
lines changed

package-lock.json

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

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717
"vue-i18n": "^11.1.10"
1818
},
1919
"devDependencies": {
20-
"@intlify/unplugin-vue-i18n": "^11.0.1",
2120
"@localazy/cli": "^2.0.5",
2221
"@vitejs/plugin-vue": "^6.0.0",
2322
"oxlint": "^1.9.0",
24-
"stylus": "^0.64.0",
25-
"stylus-loader": "^8.1.0",
2623
"vite": "^7.1.11"
2724
},
2825
"browserslist": [

src/Options.vue

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -626,49 +626,52 @@ onMounted(async () => {
626626
});
627627
</script>
628628
629-
<style lang="stylus">
630-
@require "assets/global"
631-
632-
// general
633-
html, body
634-
min-height: 300px
635-
636-
// layout
637-
#options
638-
width: 100%
639-
min-height: 100vh
640-
641-
header, footer, .container
642-
width: calc(100% - 2rem)
643-
max-width: 840px
644-
padding: 1rem
645-
646-
&.embedded
647-
header, footer, .container
648-
width: 100%
649-
max-width: auto
650-
padding-left: .5rem
651-
padding-right: .5rem
652-
.container > section:first-child > h2
653-
margin-top: 0
654-
655-
header
656-
h1
657-
margin: 0
658-
.logo
659-
height: 48px
660-
661-
.container
662-
&>section
663-
h2
664-
font-weight: 300
665-
.entry
666-
display: grid
667-
grid-template-columns: 1fr 50%
668-
column-gap: 2rem
669-
margin-bottom: 1rem
670-
.action
671-
align-self: center
672-
629+
<style>
630+
@import url('assets/main.css');
631+
632+
html, body {
633+
min-height: 300px;
634+
}
635+
636+
#options {
637+
width: 100%;
638+
min-height: 100vh;
639+
}
640+
#options header,
641+
#options footer,
642+
#options .container {
643+
width: calc(100% - 2rem);
644+
max-width: 840px;
645+
padding: 1rem;
646+
}
647+
#options.embedded header,
648+
#options.embedded footer,
649+
#options.embedded .container {
650+
width: 100%;
651+
max-width: auto;
652+
padding-left: 0.5rem;
653+
padding-right: 0.5rem;
654+
}
655+
#options.embedded .container > section:first-child > h2 {
656+
margin-top: 0;
657+
}
658+
#options header h1 {
659+
margin: 0;
660+
}
661+
#options header h1 .logo {
662+
height: 48px;
663+
}
664+
#options .container>section h2 {
665+
font-weight: 300;
666+
}
667+
#options .container>section .entry {
668+
display: grid;
669+
grid-template-columns: 1fr 50%;
670+
column-gap: 2rem;
671+
margin-bottom: 1rem;
672+
}
673+
#options .container>section .entry .action {
674+
align-self: center;
675+
}
673676
674677
</style>

src/Popup.vue

Lines changed: 49 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<header class="d-flex gap-0-5 mb-1-5">
66
<h3 class="flex-grow">
77
<span class="mr-1">{{ t("popup.nAccounts", accounts.length, [accounts.length]) }}</span>
8-
<span v-if="loading" class="loading"></span>
8+
<span v-if="loading" class="loader"></span>
99
</h3>
1010
<div
1111
class="cursor-pointer tooltip tooltip-left transition-color"
@@ -162,49 +162,54 @@ onMounted(async () => {
162162
});
163163
</script>
164164
165-
<style lang="stylus">
166-
@require "assets/global"
165+
<style>
166+
@import url('assets/main.css');
167167
168-
// general
169-
html, body
170-
width: 380px
171-
overflow-y: auto
172-
overflow-x: hidden
173-
174-
// layout
175-
#popup
176-
width: 100%
177-
height: 100%
178-
179-
.container
180-
padding-left: 20px
181-
padding-right: 20px
182-
padding-bottom: 20px
183-
header
184-
h3
185-
margin: 0
186-
font-weight: 400
187-
font-size: 20px
188-
.loading
189-
loader 16px 3px
190-
.accounts
191-
display: grid
192-
grid-template-columns: 1fr 1fr
193-
gap: 20px
194-
& > div
195-
padding: .75rem 1rem
196-
border-radius: 4px
197-
transition: all .2s
198-
overflow: hidden
199-
h4
200-
margin: 0
201-
font-weight: normal
202-
white-space: nowrap
203-
overflow: hidden
204-
text-overflow: ellipsis
205-
.background-chart
206-
position: absolute
207-
bottom: 0
208-
left: 0
168+
html, body {
169+
width: 380px;
170+
overflow-y: auto;
171+
overflow-x: hidden;
172+
}
209173
174+
#popup {
175+
width: 100%;
176+
height: 100%;
177+
}
178+
#popup .container {
179+
padding-left: 20px;
180+
padding-right: 20px;
181+
padding-bottom: 20px;
182+
}
183+
#popup .container header h3 {
184+
margin: 0;
185+
font-weight: 400;
186+
font-size: 20px;
187+
}
188+
#popup .container .loader {
189+
height: 16px;
190+
width: 16px;
191+
}
192+
#popup .container .accounts {
193+
display: grid;
194+
grid-template-columns: 1fr 1fr;
195+
gap: 20px;
196+
}
197+
#popup .container .accounts > div {
198+
padding: 0.75rem 1rem;
199+
border-radius: 4px;
200+
transition: all 0.2s;
201+
overflow: hidden;
202+
}
203+
#popup .container .accounts > div h4 {
204+
margin: 0;
205+
font-weight: normal;
206+
white-space: nowrap;
207+
overflow: hidden;
208+
text-overflow: ellipsis;
209+
}
210+
#popup .container .accounts > div .background-chart {
211+
position: absolute;
212+
bottom: 0;
213+
left: 0;
214+
}
210215
</style>

0 commit comments

Comments
 (0)