Skip to content

Commit 7f08540

Browse files
committed
refactor: update icons
1 parent b7c8add commit 7f08540

File tree

5 files changed

+35
-15
lines changed

5 files changed

+35
-15
lines changed

packages/devtools/client/pages/modules/components.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ComponentsGraph from '~/components/ComponentsGraph.vue'
44
import ComponentsList from '~/components/ComponentsList.vue'
55
66
definePageMeta({
7-
icon: 'carbon-nominal',
7+
icon: 'i-carbon-assembly-cluster',
88
title: 'Components',
99
order: 2,
1010
})

packages/devtools/client/pages/modules/overview.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function goIntro() {
3434

3535
<!-- Banner -->
3636
<div flex="~ col" items-center mt-20>
37-
<div flex="~" justify-center items-center mt--10>
37+
<div flex="~" items-center justify-center mt--10>
3838
<NuxtLogo h-18 />
3939
<button mr--16 mt--6 @click="goIntro">
4040
<Badge
@@ -63,7 +63,7 @@ function goIntro() {
6363
/>
6464
<Badge
6565
v-else
66-
bg-gray-400:10 text-gray-400 mt--1
66+
mt--1 bg-gray-400:10 text-gray-400
6767
title="latest"
6868
v-text="'latest'"
6969
/>
@@ -75,7 +75,7 @@ function goIntro() {
7575
<div>{{ routes.length }} pages</div>
7676
</NuxtLink>
7777
<NuxtLink v-if="config" p4 theme-card-lime min-w-40 flex="~ col auto" to="/modules/components">
78-
<div text-3xl carbon-nominal />
78+
<div text-3xl i-carbon-assembly-cluster />
7979
<div>{{ components.length }} components</div>
8080
</NuxtLink>
8181
<NuxtLink v-if="config && autoImports" p4 min-w-40 theme-card-yellow flex="~ col auto" to="/modules/imports">
@@ -118,7 +118,7 @@ function goIntro() {
118118
Bug Reports
119119
</a>
120120
<VDropdown>
121-
<button flex="~ gap1" items-center mxa inline-block op50 hover:op80>
121+
<button flex="~ gap1" items-center op50 mxa inline-block hover:op80>
122122
<div i-carbon-settings />
123123
Settings
124124
</button>

packages/devtools/client/pages/modules/virtual-files.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Fuse from 'fuse.js'
33
44
definePageMeta({
5-
icon: 'carbon-assembly-reference',
5+
icon: 'i-carbon-border-none',
66
title: 'Virtual Files',
77
})
88
@@ -86,7 +86,7 @@ const filteredFiles = computed(() => {
8686
v-for="f of filteredFiles" :key="f.id"
8787
>
8888
<NuxtLink
89-
px2 py1 text-sm font-mono block truncate select-none
89+
px2 text-sm py1 font-mono block truncate select-none
9090
:to="`/modules/virtual-files?id=${encodeURIComponent(f.id)}`"
9191
:class="f.id === current?.id ? 'text-primary n-bg-active' : 'text-secondary hover:n-bg-hover'"
9292
>
@@ -98,7 +98,7 @@ const filteredFiles = computed(() => {
9898

9999
<template #right>
100100
<div v-if="current?.content" h-full of-hidden flex="~ col">
101-
<div border="b base" px4 py2 text-sm op75 flex-none>
101+
<div border="b base" text-sm flex-none px4 py2 op75>
102102
<code>{{ current.id }}</code>
103103
</div>
104104
<NCodeBlock of-auto h-full text-sm :code="current.content" lang="typescript" />

packages/devtools/client/styles/global.css

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
html {
22
--at-apply: font-sans;
33
}
4+
45
html.dark {
56
background: #151515;
67
color-scheme: dark;
@@ -10,6 +11,7 @@ html.dark {
1011
counter-reset: step;
1112
counter-increment: step calc(var(--start, 1) - 1);
1213
}
14+
1315
.shiki code .line::before {
1416
content: counter(step);
1517
counter-increment: step;
@@ -27,15 +29,18 @@ html.dark {
2729
--at-apply: bg-base dark:text-white rounded border border-base shadow;
2830
box-shadow: 0 6px 30px #0000001a;
2931
}
32+
3033
.v-popper--theme-tooltip .v-popper__arrow-inner,
3134
.v-popper--theme-dropdown .v-popper__arrow-inner {
3235
visibility: visible;
3336
--at-apply: border-white dark:border-hex-121212;
3437
}
38+
3539
.v-popper--theme-tooltip .v-popper__arrow-outer,
3640
.v-popper--theme-dropdown .v-popper__arrow-outer {
3741
--at-apply: border-base;
3842
}
43+
3944
.v-popper--theme-tooltip.v-popper--shown,
4045
.v-popper--theme-tooltip.v-popper--shown * {
4146
transition: none !important;
@@ -51,39 +56,54 @@ html.dark {
5156
position: relative;
5257
}
5358
.splitpanes__splitter:before {
54-
--at-apply: absolute left-0 top-0 transition;
59+
position: absolute;
60+
left: 0;
61+
top: 0;
62+
transition: .2s ease;
5563
content: '';
56-
transition: opacity 0.4s;
64+
transition: opacity 0.4s;
5765
z-index: 1;
5866
}
5967
.splitpanes__splitter:hover:before {
6068
background: #8881;
6169
opacity: 1;
6270
}
63-
.splitpanes--vertical > .splitpanes__splitter {
71+
.splitpanes--vertical>.splitpanes__splitter {
6472
width: 0 !important;
6573
}
66-
.splitpanes--horizontal > .splitpanes__splitter {
74+
.splitpanes--horizontal>.splitpanes__splitter {
6775
height: 0 !important;
6876
}
69-
.splitpanes--vertical > .splitpanes__splitter:before {left: -5px;right: -4px;height: 100%;}
70-
.splitpanes--horizontal > .splitpanes__splitter:before {top: -5px;bottom: -4px;width: 100%;}
77+
.splitpanes--vertical>.splitpanes__splitter:before {
78+
left: -5px;
79+
right: -4px;
80+
height: 100%;
81+
}
82+
.splitpanes--horizontal>.splitpanes__splitter:before {
83+
top: -5px;
84+
bottom: -4px;
85+
width: 100%;
86+
}
7187

7288
/* JSON Editor */
7389
textarea {
7490
background: #8881
7591
}
92+
7693
.json-editor-vue {
7794
--jse-theme-color: #8886 !important;
7895
--jse-theme-color-highlight: #8889 !important;
7996
--jse-background-color: #8881 !important;
8097
}
98+
8199
.json-editor-vue .no-main-menu {
82100
border: none !important;
83101
}
102+
84103
.json-editor-vue .jse-main {
85104
min-height: 1em !important;
86105
}
106+
87107
.json-editor-vue .jse-contents {
88108
border-width: 0 !important;
89109
border-radius: 5px !important;

packages/devtools/src/integrations/vite-inspect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function setup(nuxt: Nuxt, _functions: ServerFunctions) {
1818
addCustomTab(() => ({
1919
name: 'builtin-vite-inspect',
2020
title: 'Inspect',
21-
icon: 'carbon-search',
21+
icon: 'carbon-ibm-watson-discovery',
2222
view: {
2323
type: 'iframe',
2424
src: `${nuxt.options.app.baseURL}/_nuxt/__inspect/`.replace(/\/\//g, '/'),

0 commit comments

Comments
 (0)