diff --git a/package.json b/package.json index 86f8e086..11fa3741 100644 --- a/package.json +++ b/package.json @@ -211,7 +211,6 @@ "vite-plugin-checker": "^0.4.6", "vite-plugin-environment": "^1.1.1", "vite-plugin-fonts": "^0.4.0", - "vite-plugin-inline-css-modules": "^0.0.4", "vite-plugin-windicss": "^1.8.4", "vitest": "^0.14.2", "windicss": "^3.5.4" diff --git a/src/renderer/App.scss b/src/renderer/App.scss index 11f2bb77..f718ebf8 100644 --- a/src/renderer/App.scss +++ b/src/renderer/App.scss @@ -37,5 +37,28 @@ div.pre { font-family: "Space Mono", monospace; } +.wb-icon-btn { + @apply p-3 hover:bg-contrast/20 active:bg-contrast/30 rounded-full transition duration-100; +} + +.account-view { + @apply w-full h-full border-collapse overflow-auto text-xs; + + & th:not(:global(.text-center)) { + @apply text-left; + } + + & th svg { + @apply inline-block; + } +} +.chip { + @apply bg-surface-100 border-2 border-surface-300/50 w-min p-1 px-2 rounded-full select-none cursor-pointer bg-opacity-10 transition duration-100 hover:bg-surface-300 whitespace-nowrap; + + &-active { + @apply bg-primary-base; + } +} + // Import all of bootstrap, this isn't an exercise in minimisation // @import "bootstrap/scss/bootstrap"; diff --git a/src/renderer/components/ProgramChangeView.tsx b/src/renderer/components/ProgramChangeView.tsx index d9337451..bb2a4509 100644 --- a/src/renderer/components/ProgramChangeView.tsx +++ b/src/renderer/components/ProgramChangeView.tsx @@ -6,7 +6,6 @@ import { useEffect, useState } from 'react'; import { Button } from 'react-bootstrap'; import { NavLink } from 'react-router-dom'; import { toast } from 'react-toastify'; -import { css } from 'vite-plugin-inline-css-modules'; import { accountsActions, selectAccountsListState, @@ -47,19 +46,6 @@ interface PinnedAccountMap { [pubKey: string]: boolean; } -const classes = css` - .account-view { - @apply w-full h-full border-collapse overflow-auto text-xs; - & th:not(:global(.text-center)) { - @apply text-left; - } - - & th svg { - @apply inline-block; - } - } -`; - function ProgramChangeView() { const dispatch = useAppDispatch(); const { net, status } = useAppSelector(selectValidatorNetworkState); @@ -313,7 +299,7 @@ function ProgramChangeView() {
diff --git a/src/renderer/components/base/Chip.tsx b/src/renderer/components/base/Chip.tsx
index 1b56c4b5..72b779c4 100644
--- a/src/renderer/components/base/Chip.tsx
+++ b/src/renderer/components/base/Chip.tsx
@@ -1,15 +1,3 @@
-import { css } from 'vite-plugin-inline-css-modules';
-
-const classes = css`
- .chip {
- @apply bg-surface-100 border-2 border-surface-300/50 w-min p-1 px-2 rounded-full select-none cursor-pointer bg-opacity-10 transition duration-100 hover:bg-surface-300 whitespace-nowrap;
-
- &.active {
- @apply bg-primary-base;
- }
- }
-`;
-
const Chip: React.FC<
React.DetailedHTMLProps<
React.ButtonHTMLAttributes |
---|