Commit d25df8321e22c76d1abe01fe4f969520555d20fa
1 parent
6b30c9f7
chore: windcss -> unocss
Showing
11 changed files
with
552 additions
and
182 deletions
.vscode/settings.json
internal/stylelint-config/src/index.ts
internal/vite-config/package.json
... | ... | @@ -45,11 +45,11 @@ |
45 | 45 | "pkg-types": "^1.0.2", |
46 | 46 | "rollup-plugin-visualizer": "^5.9.0", |
47 | 47 | "sass": "^1.60.0", |
48 | + "unocss": "^0.50.6", | |
48 | 49 | "vite-plugin-compression": "^0.5.1", |
49 | 50 | "vite-plugin-html": "^3.2.0", |
50 | 51 | "vite-plugin-mock": "^2.9.6", |
51 | 52 | "vite-plugin-purge-icons": "^0.9.2", |
52 | - "vite-plugin-svg-icons": "^2.0.1", | |
53 | - "vite-plugin-windicss": "^1.8.10" | |
53 | + "vite-plugin-svg-icons": "^2.0.1" | |
54 | 54 | } |
55 | 55 | } | ... | ... |
internal/vite-config/src/config/common.ts
1 | 1 | import { type UserConfig } from 'vite'; |
2 | +import UnoCSS from 'unocss/vite'; | |
3 | +import { presetTypography, presetUno } from 'unocss'; | |
2 | 4 | |
3 | 5 | const commonConfig: UserConfig = { |
4 | 6 | server: { |
... | ... | @@ -15,6 +17,11 @@ const commonConfig: UserConfig = { |
15 | 17 | maxParallelFileOps: 3, |
16 | 18 | }, |
17 | 19 | }, |
20 | + plugins: [ | |
21 | + UnoCSS({ | |
22 | + presets: [presetUno(), presetTypography()], | |
23 | + }), | |
24 | + ], | |
18 | 25 | }; |
19 | 26 | |
20 | 27 | export { commonConfig }; | ... | ... |
internal/vite-config/src/plugins/index.ts
... | ... | @@ -8,7 +8,6 @@ import { createAppConfigPlugin } from './appConfig'; |
8 | 8 | import vue from '@vitejs/plugin-vue'; |
9 | 9 | import vueJsx from '@vitejs/plugin-vue-jsx'; |
10 | 10 | import purgeIcons from 'vite-plugin-purge-icons'; |
11 | -import windiCSS from 'vite-plugin-windicss'; | |
12 | 11 | |
13 | 12 | interface Options { |
14 | 13 | isBuild: boolean; |
... | ... | @@ -24,9 +23,6 @@ async function createPlugins({ isBuild, root, enableMock, compress, enableAnalyz |
24 | 23 | const appConfigPlugin = await createAppConfigPlugin({ root, isBuild }); |
25 | 24 | vitePlugins.push(appConfigPlugin); |
26 | 25 | |
27 | - // vite-plugin-windicss | |
28 | - vitePlugins.push(windiCSS()); | |
29 | - | |
30 | 26 | // vite-plugin-html |
31 | 27 | vitePlugins.push(configHtmlPlugin({ isBuild })); |
32 | 28 | ... | ... |
pnpm-lock.yaml
... | ... | @@ -409,6 +409,9 @@ importers: |
409 | 409 | sass: |
410 | 410 | specifier: ^1.60.0 |
411 | 411 | version: 1.60.0 |
412 | + unocss: | |
413 | + specifier: ^0.50.6 | |
414 | + version: 0.50.6(postcss@8.4.21)(rollup@2.79.1)(vite@4.3.0-beta.1) | |
412 | 415 | vite-plugin-compression: |
413 | 416 | specifier: ^0.5.1 |
414 | 417 | version: 0.5.1(vite@4.3.0-beta.1) |
... | ... | @@ -424,9 +427,6 @@ importers: |
424 | 427 | vite-plugin-svg-icons: |
425 | 428 | specifier: ^2.0.1 |
426 | 429 | version: 2.0.1(vite@4.3.0-beta.1) |
427 | - vite-plugin-windicss: | |
428 | - specifier: ^1.8.10 | |
429 | - version: 1.8.10(vite@4.3.0-beta.1) | |
430 | 430 | |
431 | 431 | packages: |
432 | 432 | |
... | ... | @@ -461,6 +461,17 @@ packages: |
461 | 461 | '@ant-design/icons-svg': 4.2.1 |
462 | 462 | vue: 3.2.47 |
463 | 463 | |
464 | + /@antfu/install-pkg@0.1.1: | |
465 | + resolution: {integrity: sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==} | |
466 | + dependencies: | |
467 | + execa: 5.1.1 | |
468 | + find-up: 5.0.0 | |
469 | + dev: true | |
470 | + | |
471 | + /@antfu/utils@0.5.2: | |
472 | + resolution: {integrity: sha512-CQkeV+oJxUazwjlHD0/3ZD08QWKuGQkhnrKo3e6ly5pd48VUpXbb77q0xMU4+vc2CkJnDS02Eq/M9ugyX20XZA==} | |
473 | + dev: true | |
474 | + | |
464 | 475 | /@antfu/utils@0.7.2: |
465 | 476 | resolution: {integrity: sha512-vy9fM3pIxZmX07dL+VX1aZe7ynZ+YyB0jY+jE6r3hOK6GNY2t6W8rzpFC4tgpbXUYABkFQwgJq2XYXlxbXAI0g==} |
466 | 477 | dev: true |
... | ... | @@ -1260,6 +1271,19 @@ packages: |
1260 | 1271 | /@iconify/types@2.0.0: |
1261 | 1272 | resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} |
1262 | 1273 | |
1274 | + /@iconify/utils@2.1.5: | |
1275 | + resolution: {integrity: sha512-6MvDI+I6QMvXn5rK9KQGdpEE4mmLTcuQdLZEiX5N+uZB+vc4Yw9K1OtnOgkl8mp4d9X0UrILREyZgF1NUwUt+Q==} | |
1276 | + dependencies: | |
1277 | + '@antfu/install-pkg': 0.1.1 | |
1278 | + '@antfu/utils': 0.7.2 | |
1279 | + '@iconify/types': 2.0.0 | |
1280 | + debug: 4.3.4 | |
1281 | + kolorist: 1.7.0 | |
1282 | + local-pkg: 0.4.3 | |
1283 | + transitivePeerDependencies: | |
1284 | + - supports-color | |
1285 | + dev: true | |
1286 | + | |
1263 | 1287 | /@intlify/core-base@9.2.2: |
1264 | 1288 | resolution: {integrity: sha512-JjUpQtNfn+joMbrXvpR4hTF8iJQ2sEFzzK3KIESOx+f+uwIjgw20igOyaIdhfsVVBCds8ZM64MoeNSx+PHQMkA==} |
1265 | 1289 | engines: {node: '>= 14'} |
... | ... | @@ -1493,6 +1517,10 @@ packages: |
1493 | 1517 | - supports-color |
1494 | 1518 | dev: true |
1495 | 1519 | |
1520 | + /@polka/url@1.0.0-next.21: | |
1521 | + resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} | |
1522 | + dev: true | |
1523 | + | |
1496 | 1524 | /@purge-icons/core@0.9.1: |
1497 | 1525 | resolution: {integrity: sha512-sx8/a30MbbqQVEqhuMPE1wJpdVRRbEmwEPZpFzVkcDixzX4p+R2A0WVxqkb0xfHUBAVQwrSE2SeAyniIQLqbLw==} |
1498 | 1526 | dependencies: |
... | ... | @@ -1623,6 +1651,21 @@ packages: |
1623 | 1651 | picomatch: 2.3.1 |
1624 | 1652 | dev: true |
1625 | 1653 | |
1654 | + /@rollup/pluginutils@5.0.2(rollup@2.79.1): | |
1655 | + resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} | |
1656 | + engines: {node: '>=14.0.0'} | |
1657 | + peerDependencies: | |
1658 | + rollup: ^1.20.0||^2.0.0||^3.0.0 | |
1659 | + peerDependenciesMeta: | |
1660 | + rollup: | |
1661 | + optional: true | |
1662 | + dependencies: | |
1663 | + '@types/estree': 1.0.0 | |
1664 | + estree-walker: 2.0.2 | |
1665 | + picomatch: 2.3.1 | |
1666 | + rollup: 2.79.1 | |
1667 | + dev: true | |
1668 | + | |
1626 | 1669 | /@rollup/pluginutils@5.0.2(rollup@3.20.2): |
1627 | 1670 | resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} |
1628 | 1671 | engines: {node: '>=14.0.0'} |
... | ... | @@ -2028,6 +2071,182 @@ packages: |
2028 | 2071 | eslint-visitor-keys: 3.4.0 |
2029 | 2072 | dev: true |
2030 | 2073 | |
2074 | + /@unocss/astro@0.50.6(rollup@2.79.1)(vite@4.3.0-beta.1): | |
2075 | + resolution: {integrity: sha512-gSGQIh+hBCor7KbAylu4wBQaMZp3AkT8dW9E6jrecpluVxzGGdar93a79Wqs76OlWiu7hr8zOyRbSDgfkwDung==} | |
2076 | + dependencies: | |
2077 | + '@unocss/core': 0.50.6 | |
2078 | + '@unocss/reset': 0.50.6 | |
2079 | + '@unocss/vite': 0.50.6(rollup@2.79.1)(vite@4.3.0-beta.1) | |
2080 | + transitivePeerDependencies: | |
2081 | + - rollup | |
2082 | + - vite | |
2083 | + dev: true | |
2084 | + | |
2085 | + /@unocss/cli@0.50.6(rollup@2.79.1): | |
2086 | + resolution: {integrity: sha512-La/KeZCpI7WxuqiUj37K7k/mh08oIGm15u8pkHUs2z+XtFWLemjWPeu84NK3cLgyUGlO2nwpDm2Awye4G1GgCg==} | |
2087 | + engines: {node: '>=14'} | |
2088 | + hasBin: true | |
2089 | + dependencies: | |
2090 | + '@ampproject/remapping': 2.2.0 | |
2091 | + '@rollup/pluginutils': 5.0.2(rollup@2.79.1) | |
2092 | + '@unocss/config': 0.50.6 | |
2093 | + '@unocss/core': 0.50.6 | |
2094 | + '@unocss/preset-uno': 0.50.6 | |
2095 | + cac: 6.7.14 | |
2096 | + chokidar: 3.5.3 | |
2097 | + colorette: 2.0.19 | |
2098 | + consola: 2.15.3 | |
2099 | + fast-glob: 3.2.12 | |
2100 | + magic-string: 0.30.0 | |
2101 | + pathe: 1.1.0 | |
2102 | + perfect-debounce: 0.1.3 | |
2103 | + transitivePeerDependencies: | |
2104 | + - rollup | |
2105 | + dev: true | |
2106 | + | |
2107 | + /@unocss/config@0.50.6: | |
2108 | + resolution: {integrity: sha512-/IdnXyU4NOQCXBryZsEv9GYAnTvCZ/wmm5mv5ZIPXrS1ZClVbCbnwUxIW08t4EHIX/E9gSFClzXJ52pLBFkZ7g==} | |
2109 | + engines: {node: '>=14'} | |
2110 | + dependencies: | |
2111 | + '@unocss/core': 0.50.6 | |
2112 | + unconfig: 0.3.7 | |
2113 | + dev: true | |
2114 | + | |
2115 | + /@unocss/core@0.50.6: | |
2116 | + resolution: {integrity: sha512-WMIp8xr7YSlID2whqfRGLwagp59e6u4ckPACEpoDOW8sTeSPRZm54hxPhuWXD1SQuqcwHPMtM9nzGD8UOnqQxA==} | |
2117 | + dev: true | |
2118 | + | |
2119 | + /@unocss/inspector@0.50.6: | |
2120 | + resolution: {integrity: sha512-6nX1YtaL67ohn/PfSSBv3npJ8qZcdc7S9X2zE6PUD/xhwtz7Bohx9I/KtmFdjJz5WeeGR7di0uYC6xsAcFLndQ==} | |
2121 | + dependencies: | |
2122 | + gzip-size: 6.0.0 | |
2123 | + sirv: 2.0.2 | |
2124 | + dev: true | |
2125 | + | |
2126 | + /@unocss/postcss@0.50.6(postcss@8.4.21): | |
2127 | + resolution: {integrity: sha512-pRPBVPmwjsVu3v1T0hQuqq3L4K74Wobo6pGDypvK/MuzWdWDhHiktWwmXGNxlYSWK7mGJBIa+vI10pp4e15OUw==} | |
2128 | + engines: {node: '>=14'} | |
2129 | + peerDependencies: | |
2130 | + postcss: ^8.4.21 | |
2131 | + dependencies: | |
2132 | + '@unocss/config': 0.50.6 | |
2133 | + '@unocss/core': 0.50.6 | |
2134 | + css-tree: 2.3.1 | |
2135 | + fast-glob: 3.2.12 | |
2136 | + magic-string: 0.30.0 | |
2137 | + postcss: 8.4.21 | |
2138 | + dev: true | |
2139 | + | |
2140 | + /@unocss/preset-attributify@0.50.6: | |
2141 | + resolution: {integrity: sha512-hLxBoOnwMLILhJ5fM2AtnjSWej2GffIjTdrAHIBctEy8sLssou5lIbSukDptuGRTSwkishuvQhH020dptB3YJw==} | |
2142 | + dependencies: | |
2143 | + '@unocss/core': 0.50.6 | |
2144 | + dev: true | |
2145 | + | |
2146 | + /@unocss/preset-icons@0.50.6: | |
2147 | + resolution: {integrity: sha512-ADnvX8JCThEr2DBiDprTh2q4bfvULbCg9hL5DZIuP9/31FvzNqpAI8xo9KpsCPBoQMksg+GVoXhj1CN2IxLhtg==} | |
2148 | + dependencies: | |
2149 | + '@iconify/utils': 2.1.5 | |
2150 | + '@unocss/core': 0.50.6 | |
2151 | + ofetch: 1.0.1 | |
2152 | + transitivePeerDependencies: | |
2153 | + - supports-color | |
2154 | + dev: true | |
2155 | + | |
2156 | + /@unocss/preset-mini@0.50.6: | |
2157 | + resolution: {integrity: sha512-Ejgib688uvzCVgT/DHAOyXxKcM8vX55mxh8m3GAEx1H1pxg0IBfJO4QCKa3uAnasxj27XescBbvqv04dWi+jEQ==} | |
2158 | + dependencies: | |
2159 | + '@unocss/core': 0.50.6 | |
2160 | + dev: true | |
2161 | + | |
2162 | + /@unocss/preset-tagify@0.50.6: | |
2163 | + resolution: {integrity: sha512-ZyG/SJMobn4GZMbgrZOxT59ARp22LwgJGArCwJVosh3rraRVlb+B4x6ctMl6JOiLG5B1lHT9vZ92//u51Y0WTw==} | |
2164 | + dependencies: | |
2165 | + '@unocss/core': 0.50.6 | |
2166 | + dev: true | |
2167 | + | |
2168 | + /@unocss/preset-typography@0.50.6: | |
2169 | + resolution: {integrity: sha512-5WBsvHHVBBNJVoh38GwkJpcfS+JTdi0KuQuTsz6SvhQg+xuth3a6ebhAlrEpdS2G9BL5lpMwBd9SbgvpkE75Og==} | |
2170 | + dependencies: | |
2171 | + '@unocss/core': 0.50.6 | |
2172 | + '@unocss/preset-mini': 0.50.6 | |
2173 | + dev: true | |
2174 | + | |
2175 | + /@unocss/preset-uno@0.50.6: | |
2176 | + resolution: {integrity: sha512-MTuTd49mU8CfKGP/SVMqxNBDEXJmJPes+K6uwZnOsoEwySh1ZrGdApwmIeJurlDEsBiQFQfaSHKHQ25JWVPg3A==} | |
2177 | + dependencies: | |
2178 | + '@unocss/core': 0.50.6 | |
2179 | + '@unocss/preset-mini': 0.50.6 | |
2180 | + '@unocss/preset-wind': 0.50.6 | |
2181 | + dev: true | |
2182 | + | |
2183 | + /@unocss/preset-web-fonts@0.50.6: | |
2184 | + resolution: {integrity: sha512-81meQMAq2lOy7k5qHQZ2EGWN5iJQUJOLl8dc9dxIo1eZPgiZQruxTVr4AkNVH5LRFcjHs/1sDb2CYxAiakwTVg==} | |
2185 | + dependencies: | |
2186 | + '@unocss/core': 0.50.6 | |
2187 | + ofetch: 1.0.1 | |
2188 | + dev: true | |
2189 | + | |
2190 | + /@unocss/preset-wind@0.50.6: | |
2191 | + resolution: {integrity: sha512-LU5fAad+okonKfP1eHY5Q63uhoiSstQf4lU7CZ97eZdduqN1ODLzeBegjMGHHi1K2112AvzN/Au0WEPjQFgf7Q==} | |
2192 | + dependencies: | |
2193 | + '@unocss/core': 0.50.6 | |
2194 | + '@unocss/preset-mini': 0.50.6 | |
2195 | + dev: true | |
2196 | + | |
2197 | + /@unocss/reset@0.50.6: | |
2198 | + resolution: {integrity: sha512-e1fuSEgp1p7FgpsIZKNejOKgq4gyZcDGDvi+6544x458hInM6MfiMQNP95UBJEG4JZXq6qCZ8t7tRVWS2m5IXg==} | |
2199 | + dev: true | |
2200 | + | |
2201 | + /@unocss/scope@0.50.6: | |
2202 | + resolution: {integrity: sha512-ep1RRJzA3xbVmEcsBYvY8i/LQIfoCFaw1bx9hvGLhdCIdboy58sL4R4GigOukBJiufykKkrLNzFmlIsi3EfJWg==} | |
2203 | + dev: true | |
2204 | + | |
2205 | + /@unocss/transformer-attributify-jsx@0.50.6: | |
2206 | + resolution: {integrity: sha512-nXt9Kj9L72ehiDwkzjzxXV4QcV7VS60kP4PXuf+Gp70wE3/19iZl3K3Um/lGo3WHgAYvr91hxBkcyxYBOLUIFA==} | |
2207 | + dependencies: | |
2208 | + '@unocss/core': 0.50.6 | |
2209 | + dev: true | |
2210 | + | |
2211 | + /@unocss/transformer-compile-class@0.50.6: | |
2212 | + resolution: {integrity: sha512-MWpxO94bq28+HWxniED4BP26aIs5hGhTnaTBkTrisiF8T9xyNPwXaSUobuYkjP1s3ojrXHha8ic0uIXy5OC5nw==} | |
2213 | + dependencies: | |
2214 | + '@unocss/core': 0.50.6 | |
2215 | + dev: true | |
2216 | + | |
2217 | + /@unocss/transformer-directives@0.50.6: | |
2218 | + resolution: {integrity: sha512-deUJMZDDYQ/kGRFdGe3JrmnbiScs9Smc5Vj35Pr/MNMAM9pItbMwCgZLc+EcHgYNvO5tp0qfA9prPAIs4YpRbg==} | |
2219 | + dependencies: | |
2220 | + '@unocss/core': 0.50.6 | |
2221 | + css-tree: 2.3.1 | |
2222 | + dev: true | |
2223 | + | |
2224 | + /@unocss/transformer-variant-group@0.50.6: | |
2225 | + resolution: {integrity: sha512-eAbJ2Ho1lYaFvpKexqUqixh2TvzcE/DNSIHncr/9Ezo9s06kkHxw4KeIxw//TF26zYP7IJx8l5F58HoSjdKwbQ==} | |
2226 | + dependencies: | |
2227 | + '@unocss/core': 0.50.6 | |
2228 | + dev: true | |
2229 | + | |
2230 | + /@unocss/vite@0.50.6(rollup@2.79.1)(vite@4.3.0-beta.1): | |
2231 | + resolution: {integrity: sha512-BBfNHWRTD69ToNX4NlYdORFG6uH51HCjX+vZ8HAVgYHpSeVWziG3srnGYOk5IS0pKPzQGoLBlz8rstMsGhrAjA==} | |
2232 | + peerDependencies: | |
2233 | + vite: ^2.9.0 || ^3.0.0-0 || ^4.0.0 | |
2234 | + dependencies: | |
2235 | + '@ampproject/remapping': 2.2.0 | |
2236 | + '@rollup/pluginutils': 5.0.2(rollup@2.79.1) | |
2237 | + '@unocss/config': 0.50.6 | |
2238 | + '@unocss/core': 0.50.6 | |
2239 | + '@unocss/inspector': 0.50.6 | |
2240 | + '@unocss/scope': 0.50.6 | |
2241 | + '@unocss/transformer-directives': 0.50.6 | |
2242 | + chokidar: 3.5.3 | |
2243 | + fast-glob: 3.2.12 | |
2244 | + magic-string: 0.30.0 | |
2245 | + vite: 4.3.0-beta.1(@types/node@18.15.11)(less@4.1.3)(sass@1.60.0) | |
2246 | + transitivePeerDependencies: | |
2247 | + - rollup | |
2248 | + dev: true | |
2249 | + | |
2031 | 2250 | /@vitejs/plugin-vue-jsx@3.0.1(vite@4.3.0-beta.1)(vue@3.2.47): |
2032 | 2251 | resolution: {integrity: sha512-+Jb7ggL48FSPS1uhPnJbJwWa9Sr90vQ+d0InW+AhBM22n+cfuYqJZDckBc+W3QSHe1WDvewMZfa4wZOtk5pRgw==} |
2033 | 2252 | engines: {node: ^14.18.0 || >=16.0.0} |
... | ... | @@ -2229,30 +2448,6 @@ packages: |
2229 | 2448 | - vue |
2230 | 2449 | dev: false |
2231 | 2450 | |
2232 | - /@windicss/config@1.8.10: | |
2233 | - resolution: {integrity: sha512-O9SsC110b1Ik3YYa4Ck/0TWuCo7YFfA9KDrwD5sAeqscT5COIGK1HszdCT3oh0MJFej2wNrvpfyW9h6yQaW6PA==} | |
2234 | - dependencies: | |
2235 | - debug: 4.3.4 | |
2236 | - jiti: 1.18.2 | |
2237 | - windicss: 3.5.6 | |
2238 | - transitivePeerDependencies: | |
2239 | - - supports-color | |
2240 | - dev: true | |
2241 | - | |
2242 | - /@windicss/plugin-utils@1.8.10: | |
2243 | - resolution: {integrity: sha512-Phqk5OW1w+Mv+ry6t7BzAeDq3aMhbI94gR49j9vQCufFfDGCHndhhjtMK0sBv+NPJUsIAIh6qayb1iwBCXUGrw==} | |
2244 | - dependencies: | |
2245 | - '@antfu/utils': 0.7.2 | |
2246 | - '@windicss/config': 1.8.10 | |
2247 | - debug: 4.3.4 | |
2248 | - fast-glob: 3.2.12 | |
2249 | - magic-string: 0.27.0 | |
2250 | - micromatch: 4.0.5 | |
2251 | - windicss: 3.5.6 | |
2252 | - transitivePeerDependencies: | |
2253 | - - supports-color | |
2254 | - dev: true | |
2255 | - | |
2256 | 2451 | /@zxcvbn-ts/core@2.2.1: |
2257 | 2452 | resolution: {integrity: sha512-Cg1JyRpCDIF+Dh3nauqygmmCYxogNVZDxSn+9PgkPD1HZ2QiJe4elruVJrGmYRS7muGmZ1hNJq8ySQdPv6GHaw==} |
2258 | 2453 | dependencies: |
... | ... | @@ -3535,6 +3730,10 @@ packages: |
3535 | 3730 | resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} |
3536 | 3731 | engines: {node: '>= 0.8'} |
3537 | 3732 | |
3733 | + /destr@1.2.2: | |
3734 | + resolution: {integrity: sha512-lrbCJwD9saUQrqUfXvl6qoM+QN3W7tLV5pAOs+OqOmopCCz/JkE05MHedJR1xfk4IAnZuJXPVuN5+7jNA2ZCiA==} | |
3735 | + dev: true | |
3736 | + | |
3538 | 3737 | /destroy@1.2.0: |
3539 | 3738 | resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} |
3540 | 3739 | engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} |
... | ... | @@ -3698,6 +3897,10 @@ packages: |
3698 | 3897 | readable-stream: 2.3.8 |
3699 | 3898 | dev: false |
3700 | 3899 | |
3900 | + /duplexer@0.1.2: | |
3901 | + resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} | |
3902 | + dev: true | |
3903 | + | |
3701 | 3904 | /eastasianwidth@0.2.0: |
3702 | 3905 | resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} |
3703 | 3906 | dev: true |
... | ... | @@ -4584,6 +4787,13 @@ packages: |
4584 | 4787 | resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} |
4585 | 4788 | dev: true |
4586 | 4789 | |
4790 | + /gzip-size@6.0.0: | |
4791 | + resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==} | |
4792 | + engines: {node: '>=10'} | |
4793 | + dependencies: | |
4794 | + duplexer: 0.1.2 | |
4795 | + dev: true | |
4796 | + | |
4587 | 4797 | /hard-rejection@2.1.0: |
4588 | 4798 | resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} |
4589 | 4799 | engines: {node: '>=6'} |
... | ... | @@ -5540,6 +5750,11 @@ packages: |
5540 | 5750 | json5: 1.0.2 |
5541 | 5751 | dev: true |
5542 | 5752 | |
5753 | + /local-pkg@0.4.3: | |
5754 | + resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==} | |
5755 | + engines: {node: '>=14'} | |
5756 | + dev: true | |
5757 | + | |
5543 | 5758 | /locate-path@5.0.0: |
5544 | 5759 | resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} |
5545 | 5760 | engines: {node: '>=8'} |
... | ... | @@ -6000,6 +6215,11 @@ packages: |
6000 | 6215 | engines: {node: '>=4'} |
6001 | 6216 | dev: true |
6002 | 6217 | |
6218 | + /mrmime@1.0.1: | |
6219 | + resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==} | |
6220 | + engines: {node: '>=10'} | |
6221 | + dev: true | |
6222 | + | |
6003 | 6223 | /ms@2.0.0: |
6004 | 6224 | resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} |
6005 | 6225 | dev: true |
... | ... | @@ -6103,6 +6323,10 @@ packages: |
6103 | 6323 | tslib: 2.5.0 |
6104 | 6324 | dev: true |
6105 | 6325 | |
6326 | + /node-fetch-native@1.0.2: | |
6327 | + resolution: {integrity: sha512-KIkvH1jl6b3O7es/0ShyCgWLcfXxlBrLBbP3rOr23WArC66IMcU4DeZEeYEOwnopYhawLTn7/y+YtmASe8DFVQ==} | |
6328 | + dev: true | |
6329 | + | |
6106 | 6330 | /node-fetch@2.6.7: |
6107 | 6331 | resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} |
6108 | 6332 | engines: {node: 4.x || >=6.0.0} |
... | ... | @@ -6244,6 +6468,14 @@ packages: |
6244 | 6468 | isobject: 3.0.1 |
6245 | 6469 | dev: true |
6246 | 6470 | |
6471 | + /ofetch@1.0.1: | |
6472 | + resolution: {integrity: sha512-icBz2JYfEpt+wZz1FRoGcrMigjNKjzvufE26m9+yUiacRQRHwnNlGRPiDnW4op7WX/MR6aniwS8xw8jyVelF2g==} | |
6473 | + dependencies: | |
6474 | + destr: 1.2.2 | |
6475 | + node-fetch-native: 1.0.2 | |
6476 | + ufo: 1.1.1 | |
6477 | + dev: true | |
6478 | + | |
6247 | 6479 | /on-finished@2.3.0: |
6248 | 6480 | resolution: {integrity: sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==} |
6249 | 6481 | engines: {node: '>= 0.8'} |
... | ... | @@ -6480,6 +6712,10 @@ packages: |
6480 | 6712 | resolution: {integrity: sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==} |
6481 | 6713 | dev: true |
6482 | 6714 | |
6715 | + /perfect-debounce@0.1.3: | |
6716 | + resolution: {integrity: sha512-NOT9AcKiDGpnV/HBhI22Str++XWcErO/bALvHCuhv33owZW/CjH8KAFLZDCmu3727sihe0wTxpDhyGc6M8qacQ==} | |
6717 | + dev: true | |
6718 | + | |
6483 | 6719 | /picocolors@1.0.0: |
6484 | 6720 | resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} |
6485 | 6721 | |
... | ... | @@ -7364,6 +7600,15 @@ packages: |
7364 | 7600 | semver: 7.0.0 |
7365 | 7601 | dev: true |
7366 | 7602 | |
7603 | + /sirv@2.0.2: | |
7604 | + resolution: {integrity: sha512-4Qog6aE29nIjAOKe/wowFTxOdmbEZKb+3tsLljaBRzJwtqto0BChD2zzH0LhgCSXiI+V7X+Y45v14wBZQ1TK3w==} | |
7605 | + engines: {node: '>= 10'} | |
7606 | + dependencies: | |
7607 | + '@polka/url': 1.0.0-next.21 | |
7608 | + mrmime: 1.0.1 | |
7609 | + totalist: 3.0.1 | |
7610 | + dev: true | |
7611 | + | |
7367 | 7612 | /slash@3.0.0: |
7368 | 7613 | resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} |
7369 | 7614 | engines: {node: '>=8'} |
... | ... | @@ -8108,6 +8353,11 @@ packages: |
8108 | 8353 | resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} |
8109 | 8354 | engines: {node: '>=0.6'} |
8110 | 8355 | |
8356 | + /totalist@3.0.1: | |
8357 | + resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} | |
8358 | + engines: {node: '>=6'} | |
8359 | + dev: true | |
8360 | + | |
8111 | 8361 | /touch@3.1.0: |
8112 | 8362 | resolution: {integrity: sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==} |
8113 | 8363 | hasBin: true |
... | ... | @@ -8416,6 +8666,14 @@ packages: |
8416 | 8666 | - supports-color |
8417 | 8667 | dev: true |
8418 | 8668 | |
8669 | + /unconfig@0.3.7: | |
8670 | + resolution: {integrity: sha512-1589b7oGa8ILBYpta7TndM5mLHLzHUqBfhszeZxuUBrjO/RoQ52VGVWsS3w0C0GLNxO9RPmqkf6BmIvBApaRdA==} | |
8671 | + dependencies: | |
8672 | + '@antfu/utils': 0.5.2 | |
8673 | + defu: 6.1.2 | |
8674 | + jiti: 1.18.2 | |
8675 | + dev: true | |
8676 | + | |
8419 | 8677 | /undefsafe@2.0.5: |
8420 | 8678 | resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==} |
8421 | 8679 | dev: true |
... | ... | @@ -8439,6 +8697,40 @@ packages: |
8439 | 8697 | resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} |
8440 | 8698 | engines: {node: '>= 10.0.0'} |
8441 | 8699 | |
8700 | + /unocss@0.50.6(postcss@8.4.21)(rollup@2.79.1)(vite@4.3.0-beta.1): | |
8701 | + resolution: {integrity: sha512-7cKiIB/ssAPvCDUcFMs0jm0FzIyQKfgIjUzBYZ5dVFthOvN5dcFh7bCZE9dIM862n7oW8FjbkTxwdTbRqqJQVQ==} | |
8702 | + engines: {node: '>=14'} | |
8703 | + peerDependencies: | |
8704 | + '@unocss/webpack': 0.50.6 | |
8705 | + peerDependenciesMeta: | |
8706 | + '@unocss/webpack': | |
8707 | + optional: true | |
8708 | + dependencies: | |
8709 | + '@unocss/astro': 0.50.6(rollup@2.79.1)(vite@4.3.0-beta.1) | |
8710 | + '@unocss/cli': 0.50.6(rollup@2.79.1) | |
8711 | + '@unocss/core': 0.50.6 | |
8712 | + '@unocss/postcss': 0.50.6(postcss@8.4.21) | |
8713 | + '@unocss/preset-attributify': 0.50.6 | |
8714 | + '@unocss/preset-icons': 0.50.6 | |
8715 | + '@unocss/preset-mini': 0.50.6 | |
8716 | + '@unocss/preset-tagify': 0.50.6 | |
8717 | + '@unocss/preset-typography': 0.50.6 | |
8718 | + '@unocss/preset-uno': 0.50.6 | |
8719 | + '@unocss/preset-web-fonts': 0.50.6 | |
8720 | + '@unocss/preset-wind': 0.50.6 | |
8721 | + '@unocss/reset': 0.50.6 | |
8722 | + '@unocss/transformer-attributify-jsx': 0.50.6 | |
8723 | + '@unocss/transformer-compile-class': 0.50.6 | |
8724 | + '@unocss/transformer-directives': 0.50.6 | |
8725 | + '@unocss/transformer-variant-group': 0.50.6 | |
8726 | + '@unocss/vite': 0.50.6(rollup@2.79.1)(vite@4.3.0-beta.1) | |
8727 | + transitivePeerDependencies: | |
8728 | + - postcss | |
8729 | + - rollup | |
8730 | + - supports-color | |
8731 | + - vite | |
8732 | + dev: true | |
8733 | + | |
8442 | 8734 | /unpipe@1.0.0: |
8443 | 8735 | resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} |
8444 | 8736 | engines: {node: '>= 0.8'} |
... | ... | @@ -8641,20 +8933,6 @@ packages: |
8641 | 8933 | - supports-color |
8642 | 8934 | dev: true |
8643 | 8935 | |
8644 | - /vite-plugin-windicss@1.8.10(vite@4.3.0-beta.1): | |
8645 | - resolution: {integrity: sha512-scywsuzo46lcTBohspmF0WiwhWEte6p+OUVrX4yr7VMRvLHMHVfLtJReyD5pppjijG7YOwVsZn7XBWWZtF658Q==} | |
8646 | - peerDependencies: | |
8647 | - vite: ^2.0.1 || ^3.0.0 || ^4.0.0 | |
8648 | - dependencies: | |
8649 | - '@windicss/plugin-utils': 1.8.10 | |
8650 | - debug: 4.3.4 | |
8651 | - kolorist: 1.7.0 | |
8652 | - vite: 4.3.0-beta.1(@types/node@18.15.11)(less@4.1.3)(sass@1.60.0) | |
8653 | - windicss: 3.5.6 | |
8654 | - transitivePeerDependencies: | |
8655 | - - supports-color | |
8656 | - dev: true | |
8657 | - | |
8658 | 8936 | /vite@4.3.0-beta.1(@types/node@18.15.11)(less@4.1.3)(sass@1.60.0): |
8659 | 8937 | resolution: {integrity: sha512-D4j9bail/S/OopyozlmQv7zPxf0xwe0zgZTkOAT61yD0lCUF29GgarhU6Z2hPEXelQyKGYyPFwUmuUX4tze9sA==} |
8660 | 8938 | engines: {node: ^14.18.0 || >=16.0.0} |
... | ... | @@ -8896,12 +9174,6 @@ packages: |
8896 | 9174 | isexe: 2.0.0 |
8897 | 9175 | dev: true |
8898 | 9176 | |
8899 | - /windicss@3.5.6: | |
8900 | - resolution: {integrity: sha512-P1mzPEjgFMZLX0ZqfFht4fhV/FX8DTG7ERG1fBLiWvd34pTLVReS5CVsewKn9PApSgXnVfPWwvq+qUsRwpnwFA==} | |
8901 | - engines: {node: '>= 12'} | |
8902 | - hasBin: true | |
8903 | - dev: true | |
8904 | - | |
8905 | 9177 | /wmf@1.0.2: |
8906 | 9178 | resolution: {integrity: sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==} |
8907 | 9179 | engines: {node: '>=0.8'} | ... | ... |
src/design/ant/btn.less
... | ... | @@ -7,13 +7,13 @@ |
7 | 7 | } |
8 | 8 | |
9 | 9 | &-primary { |
10 | - color: @white; | |
11 | 10 | background-color: @button-primary-color; |
11 | + color: @white; | |
12 | 12 | |
13 | 13 | &:hover, |
14 | 14 | &:focus { |
15 | - color: @white; | |
16 | 15 | background-color: @button-primary-hover-color; |
16 | + color: @white; | |
17 | 17 | } |
18 | 18 | } |
19 | 19 | |
... | ... | @@ -22,15 +22,15 @@ |
22 | 22 | } |
23 | 23 | |
24 | 24 | &-default { |
25 | - color: @button-cancel-color; | |
26 | - background-color: @button-cancel-bg-color; | |
27 | 25 | border-color: @button-cancel-border-color; |
26 | + background-color: @button-cancel-bg-color; | |
27 | + color: @button-cancel-color; | |
28 | 28 | |
29 | 29 | &:hover, |
30 | 30 | &:focus { |
31 | - color: @button-cancel-hover-color; | |
32 | - background-color: @button-cancel-hover-bg-color; | |
33 | 31 | border-color: @button-cancel-hover-border-color; |
32 | + background-color: @button-cancel-hover-bg-color; | |
33 | + color: @button-cancel-hover-color; | |
34 | 34 | } |
35 | 35 | // |
36 | 36 | //&[disabled], |
... | ... | @@ -42,21 +42,21 @@ |
42 | 42 | } |
43 | 43 | |
44 | 44 | [data-theme='light'] &.ant-btn-link.is-disabled { |
45 | + border-color: transparent !important; | |
46 | + background-color: transparent !important; | |
47 | + box-shadow: none; | |
45 | 48 | color: rgb(0 0 0 / 25%); |
46 | 49 | text-shadow: none; |
47 | 50 | cursor: not-allowed !important; |
48 | - background-color: transparent !important; | |
49 | - border-color: transparent !important; | |
50 | - box-shadow: none; | |
51 | 51 | } |
52 | 52 | |
53 | 53 | [data-theme='dark'] &.ant-btn-link.is-disabled { |
54 | + border-color: transparent !important; | |
55 | + background-color: transparent !important; | |
56 | + box-shadow: none; | |
54 | 57 | color: rgb(255 255 255 / 25%) !important; |
55 | 58 | text-shadow: none; |
56 | 59 | cursor: not-allowed !important; |
57 | - background-color: transparent !important; | |
58 | - border-color: transparent !important; | |
59 | - box-shadow: none; | |
60 | 60 | } |
61 | 61 | |
62 | 62 | // color: @white; |
... | ... | @@ -66,8 +66,8 @@ |
66 | 66 | |
67 | 67 | &:hover, |
68 | 68 | &:focus { |
69 | - color: @button-success-hover-color; | |
70 | 69 | border-color: transparent; |
70 | + color: @button-success-hover-color; | |
71 | 71 | } |
72 | 72 | |
73 | 73 | &:active { |
... | ... | @@ -86,21 +86,21 @@ |
86 | 86 | } |
87 | 87 | |
88 | 88 | &-success:not(.ant-btn-link, .is-disabled) { |
89 | - color: @white; | |
90 | - background-color: @button-success-color; | |
91 | 89 | border-color: @button-success-color; |
90 | + background-color: @button-success-color; | |
91 | + color: @white; | |
92 | 92 | //border-width: 0; |
93 | 93 | |
94 | 94 | &:hover, |
95 | 95 | &:focus { |
96 | - color: @white; | |
97 | - background-color: @button-success-hover-color; | |
98 | 96 | border-color: @button-success-hover-color; |
97 | + background-color: @button-success-hover-color; | |
98 | + color: @white; | |
99 | 99 | } |
100 | 100 | |
101 | 101 | &:active { |
102 | - background-color: @button-success-active-color; | |
103 | 102 | border-color: @button-success-active-color; |
103 | + background-color: @button-success-active-color; | |
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
... | ... | @@ -109,8 +109,8 @@ |
109 | 109 | |
110 | 110 | &:hover, |
111 | 111 | &:focus { |
112 | - color: @button-warn-hover-color; | |
113 | 112 | border-color: transparent; |
113 | + color: @button-warn-hover-color; | |
114 | 114 | } |
115 | 115 | |
116 | 116 | &:active { |
... | ... | @@ -119,21 +119,21 @@ |
119 | 119 | } |
120 | 120 | |
121 | 121 | &-warning:not(.ant-btn-link, .is-disabled) { |
122 | - color: @white; | |
123 | - background-color: @button-warn-color; | |
124 | 122 | border-color: @button-warn-color; |
123 | + background-color: @button-warn-color; | |
124 | + color: @white; | |
125 | 125 | //border-width: 0; |
126 | 126 | |
127 | 127 | &:hover, |
128 | 128 | &:focus { |
129 | - color: @white; | |
130 | - background-color: @button-warn-hover-color; | |
131 | 129 | border-color: @button-warn-hover-color; |
130 | + background-color: @button-warn-hover-color; | |
131 | + color: @white; | |
132 | 132 | } |
133 | 133 | |
134 | 134 | &:active { |
135 | - background-color: @button-warn-active-color; | |
136 | 135 | border-color: @button-warn-active-color; |
136 | + background-color: @button-warn-active-color; | |
137 | 137 | } |
138 | 138 | |
139 | 139 | //&[disabled], |
... | ... | @@ -149,8 +149,8 @@ |
149 | 149 | |
150 | 150 | &:hover, |
151 | 151 | &:focus { |
152 | - color: @button-error-hover-color; | |
153 | 152 | border-color: transparent; |
153 | + color: @button-error-hover-color; | |
154 | 154 | } |
155 | 155 | |
156 | 156 | &:active { |
... | ... | @@ -159,21 +159,21 @@ |
159 | 159 | } |
160 | 160 | |
161 | 161 | &-error:not(.ant-btn-link, .is-disabled) { |
162 | - color: @white; | |
163 | - background-color: @button-error-color; | |
164 | 162 | border-color: @button-error-color; |
163 | + background-color: @button-error-color; | |
164 | + color: @white; | |
165 | 165 | //border-width: 0; |
166 | 166 | |
167 | 167 | &:hover, |
168 | 168 | &:focus { |
169 | - color: @white; | |
170 | - background-color: @button-error-hover-color; | |
171 | 169 | border-color: @button-error-hover-color; |
170 | + background-color: @button-error-hover-color; | |
171 | + color: @white; | |
172 | 172 | } |
173 | 173 | |
174 | 174 | &:active { |
175 | - background-color: @button-error-active-color; | |
176 | 175 | border-color: @button-error-active-color; |
176 | + background-color: @button-error-active-color; | |
177 | 177 | } |
178 | 178 | |
179 | 179 | //&[disabled], |
... | ... | @@ -190,86 +190,86 @@ |
190 | 190 | |
191 | 191 | &[disabled], |
192 | 192 | &[disabled]:hover { |
193 | - color: fade(@white, 40%) !important; | |
194 | - background-color: transparent !important; | |
195 | 193 | border-color: fade(@white, 40%) !important; |
194 | + background-color: transparent !important; | |
195 | + color: fade(@white, 40%) !important; | |
196 | 196 | } |
197 | 197 | } |
198 | 198 | |
199 | 199 | &-dashed&-background-ghost, |
200 | 200 | &-default&-background-ghost { |
201 | - color: @button-ghost-color; | |
202 | 201 | border-color: @button-ghost-color; |
202 | + color: @button-ghost-color; | |
203 | 203 | |
204 | 204 | &:hover, |
205 | 205 | &:focus { |
206 | - color: @button-ghost-hover-color; | |
207 | 206 | border-color: @button-ghost-hover-color; |
207 | + color: @button-ghost-hover-color; | |
208 | 208 | } |
209 | 209 | |
210 | 210 | &:active { |
211 | - color: @button-ghost-active-color; | |
212 | 211 | border-color: @button-ghost-active-color; |
212 | + color: @button-ghost-active-color; | |
213 | 213 | } |
214 | 214 | |
215 | 215 | &[disabled], |
216 | 216 | &[disabled]:hover { |
217 | - color: fade(@white, 40%) !important; | |
218 | 217 | border-color: fade(@white, 40%) !important; |
218 | + color: fade(@white, 40%) !important; | |
219 | 219 | } |
220 | 220 | } |
221 | 221 | |
222 | 222 | &-background-ghost&-success:not(.ant-btn-link) { |
223 | - color: @button-success-color; | |
224 | - background-color: transparent; | |
225 | - border-color: @button-success-color; | |
226 | 223 | border-width: 1px; |
224 | + border-color: @button-success-color; | |
225 | + background-color: transparent; | |
226 | + color: @button-success-color; | |
227 | 227 | |
228 | 228 | &:hover, |
229 | 229 | &:focus { |
230 | - color: @button-success-hover-color !important; | |
231 | 230 | border-color: @button-success-hover-color; |
231 | + color: @button-success-hover-color !important; | |
232 | 232 | } |
233 | 233 | |
234 | 234 | &:active { |
235 | - color: @button-success-active-color; | |
236 | 235 | border-color: @button-success-active-color; |
236 | + color: @button-success-active-color; | |
237 | 237 | } |
238 | 238 | } |
239 | 239 | |
240 | 240 | &-background-ghost&-warning:not(.ant-btn-link) { |
241 | - color: @button-warn-color; | |
242 | - background-color: transparent; | |
243 | - border-color: @button-warn-color; | |
244 | 241 | border-width: 1px; |
242 | + border-color: @button-warn-color; | |
243 | + background-color: transparent; | |
244 | + color: @button-warn-color; | |
245 | 245 | |
246 | 246 | &:hover, |
247 | 247 | &:focus { |
248 | - color: @button-warn-hover-color !important; | |
249 | 248 | border-color: @button-warn-hover-color; |
249 | + color: @button-warn-hover-color !important; | |
250 | 250 | } |
251 | 251 | |
252 | 252 | &:active { |
253 | - color: @button-warn-active-color; | |
254 | 253 | border-color: @button-warn-active-color; |
254 | + color: @button-warn-active-color; | |
255 | 255 | } |
256 | 256 | } |
257 | 257 | |
258 | 258 | &-background-ghost&-error:not(.ant-btn-link) { |
259 | - color: @button-error-color; | |
260 | - background-color: transparent; | |
261 | - border-color: @button-error-color; | |
262 | 259 | border-width: 1px; |
260 | + border-color: @button-error-color; | |
261 | + background-color: transparent; | |
262 | + color: @button-error-color; | |
263 | 263 | |
264 | 264 | &:hover, |
265 | 265 | &:focus { |
266 | - color: @button-error-hover-color !important; | |
267 | 266 | border-color: @button-error-hover-color; |
267 | + color: @button-error-hover-color !important; | |
268 | 268 | } |
269 | 269 | |
270 | 270 | &:active { |
271 | - color: @button-error-active-color; | |
272 | 271 | border-color: @button-error-active-color; |
272 | + color: @button-error-active-color; | |
273 | 273 | } |
274 | 274 | } |
275 | 275 | |
... | ... | @@ -278,8 +278,8 @@ |
278 | 278 | |
279 | 279 | &:hover, |
280 | 280 | &:focus { |
281 | - color: @button-ghost-hover-color; | |
282 | 281 | border-color: transparent; |
282 | + color: @button-ghost-hover-color; | |
283 | 283 | } |
284 | 284 | } |
285 | 285 | } | ... | ... |
src/design/entry.css
0 → 100644
1 | +* > .enter-x:nth-child(1) { | |
2 | + transform: translateX(50px); | |
3 | +} | |
4 | +* > .-enter-x:nth-child(1) { | |
5 | + transform: translateX(-50px); | |
6 | +} | |
7 | + | |
8 | +* > .enter-x:nth-child(1), | |
9 | +* > .-enter-x:nth-child(1) { | |
10 | + z-index: 9; | |
11 | + opacity: 0; | |
12 | + animation: enter-x-animation 0.4s ease-in-out 0.3s; | |
13 | + animation-fill-mode: forwards; | |
14 | + animation-delay: 0.1s; | |
15 | +} | |
16 | +* > .enter-x:nth-child(2) { | |
17 | + transform: translateX(50px); | |
18 | +} | |
19 | +* > .-enter-x:nth-child(2) { | |
20 | + transform: translateX(-50px); | |
21 | +} | |
22 | + | |
23 | +* > .enter-x:nth-child(2), | |
24 | +* > .-enter-x:nth-child(2) { | |
25 | + z-index: 8; | |
26 | + opacity: 0; | |
27 | + animation: enter-x-animation 0.4s ease-in-out 0.3s; | |
28 | + animation-fill-mode: forwards; | |
29 | + animation-delay: 0.2s; | |
30 | +} | |
31 | +* > .enter-x:nth-child(3) { | |
32 | + transform: translateX(50px); | |
33 | +} | |
34 | +* > .-enter-x:nth-child(3) { | |
35 | + transform: translateX(-50px); | |
36 | +} | |
37 | + | |
38 | +* > .enter-x:nth-child(3), | |
39 | +* > .-enter-x:nth-child(3) { | |
40 | + z-index: 7; | |
41 | + opacity: 0; | |
42 | + animation: enter-x-animation 0.4s ease-in-out 0.3s; | |
43 | + animation-fill-mode: forwards; | |
44 | + animation-delay: 0.3s; | |
45 | +} | |
46 | + | |
47 | +* > .enter-x:nth-child(4) { | |
48 | + transform: translateX(50px); | |
49 | +} | |
50 | +* > .-enter-x:nth-child(4) { | |
51 | + transform: translateX(-50px); | |
52 | +} | |
53 | + | |
54 | +* > .enter-x:nth-child(4), | |
55 | +* > .-enter-x:nth-child(4) { | |
56 | + z-index: 6; | |
57 | + opacity: 0; | |
58 | + animation: enter-x-animation 0.4s ease-in-out 0.3s; | |
59 | + animation-fill-mode: forwards; | |
60 | + animation-delay: 0.4s; | |
61 | +} | |
62 | + | |
63 | +* > .enter-x:nth-child(5) { | |
64 | + transform: translateX(50px); | |
65 | +} | |
66 | +* > .-enter-x:nth-child(5) { | |
67 | + transform: translateX(-50px); | |
68 | +} | |
69 | + | |
70 | +* > .enter-x:nth-child(5), | |
71 | +* > .-enter-x:nth-child(5) { | |
72 | + z-index: 5; | |
73 | + opacity: 0; | |
74 | + animation: enter-x-animation 0.4s ease-in-out 0.3s; | |
75 | + animation-fill-mode: forwards; | |
76 | + animation-delay: 0.5s; | |
77 | +} | |
78 | + | |
79 | +* > .enter-y:nth-child(1) { | |
80 | + transform: translateX(50px); | |
81 | +} | |
82 | +* > .-enter-y:nth-child(1) { | |
83 | + transform: translateX(-50px); | |
84 | +} | |
85 | + | |
86 | +* > .enter-y:nth-child(1), | |
87 | +* > .-enter-y:nth-child(1) { | |
88 | + z-index: 9; | |
89 | + opacity: 0; | |
90 | + animation: enter-y-animation 0.4s ease-in-out 0.3s; | |
91 | + animation-fill-mode: forwards; | |
92 | + animation-delay: 0.1s; | |
93 | +} | |
94 | +* > .enter-y:nth-child(2) { | |
95 | + transform: translateX(50px); | |
96 | +} | |
97 | +* > .-enter-y:nth-child(2) { | |
98 | + transform: translateX(-50px); | |
99 | +} | |
100 | + | |
101 | +* > .enter-y:nth-child(2), | |
102 | +* > .-enter-y:nth-child(2) { | |
103 | + z-index: 8; | |
104 | + opacity: 0; | |
105 | + animation: enter-y-animation 0.4s ease-in-out 0.3s; | |
106 | + animation-fill-mode: forwards; | |
107 | + animation-delay: 0.2s; | |
108 | +} | |
109 | +* > .enter-y:nth-child(3) { | |
110 | + transform: translateX(50px); | |
111 | +} | |
112 | +* > .-enter-y:nth-child(3) { | |
113 | + transform: translateX(-50px); | |
114 | +} | |
115 | + | |
116 | +* > .enter-y:nth-child(3), | |
117 | +* > .-enter-y:nth-child(3) { | |
118 | + z-index: 7; | |
119 | + opacity: 0; | |
120 | + animation: enter-y-animation 0.4s ease-in-out 0.3s; | |
121 | + animation-fill-mode: forwards; | |
122 | + animation-delay: 0.3s; | |
123 | +} | |
124 | + | |
125 | +* > .enter-y:nth-child(4) { | |
126 | + transform: translateX(50px); | |
127 | +} | |
128 | +* > .-enter-y:nth-child(4) { | |
129 | + transform: translateX(-50px); | |
130 | +} | |
131 | + | |
132 | +* > .enter-y:nth-child(4), | |
133 | +* > .-enter-y:nth-child(4) { | |
134 | + z-index: 6; | |
135 | + opacity: 0; | |
136 | + animation: enter-y-animation 0.4s ease-in-out 0.3s; | |
137 | + animation-fill-mode: forwards; | |
138 | + animation-delay: 0.4s; | |
139 | +} | |
140 | + | |
141 | +* > .enter-y:nth-child(5) { | |
142 | + transform: translateX(50px); | |
143 | +} | |
144 | +* > .-enter-y:nth-child(5) { | |
145 | + transform: translateX(-50px); | |
146 | +} | |
147 | + | |
148 | +* > .enter-y:nth-child(5), | |
149 | +* > .-enter-y:nth-child(5) { | |
150 | + z-index: 5; | |
151 | + opacity: 0; | |
152 | + animation: enter-y-animation 0.4s ease-in-out 0.3s; | |
153 | + animation-fill-mode: forwards; | |
154 | + animation-delay: 0.5s; | |
155 | +} | |
156 | + | |
157 | +@keyframes enter-x-animation { | |
158 | + to { | |
159 | + opacity: 1; | |
160 | + transform: translateX(0); | |
161 | + } | |
162 | +} | |
163 | +@keyframes enter-y-animation { | |
164 | + to { | |
165 | + opacity: 1; | |
166 | + transform: translateY(0); | |
167 | + } | |
168 | +} | ... | ... |
src/design/index.less
src/main.ts
1 | -import 'virtual:windi-base.css'; | |
2 | -import 'virtual:windi-components.css'; | |
1 | +import 'uno.css'; | |
3 | 2 | import '/@/design/index.less'; |
4 | 3 | import '/@/components/VxeTable/src/css/index.scss'; |
5 | -import 'virtual:windi-utilities.css'; | |
6 | 4 | import 'ant-design-vue/dist/antd.css'; |
7 | 5 | // Register icon sprite |
8 | 6 | import 'virtual:svg-icons-register'; | ... | ... |
windi.config.ts deleted
100644 → 0
1 | -const primaryColor = '#0960bd'; | |
2 | - | |
3 | -export default { | |
4 | - darkMode: 'class', | |
5 | - plugins: [createEnterPlugin()], | |
6 | - theme: { | |
7 | - extend: { | |
8 | - zIndex: { | |
9 | - '-1': '-1', | |
10 | - }, | |
11 | - colors: { | |
12 | - primary: primaryColor, | |
13 | - }, | |
14 | - screens: { | |
15 | - sm: '576px', | |
16 | - md: '768px', | |
17 | - lg: '992px', | |
18 | - xl: '1200px', | |
19 | - '2xl': '1600px', | |
20 | - }, | |
21 | - }, | |
22 | - }, | |
23 | -}; | |
24 | - | |
25 | -/** | |
26 | - * Used for animation when the element is displayed. | |
27 | - * @param maxOutput The larger the maxOutput output, the larger the generated css volume. | |
28 | - */ | |
29 | -function createEnterPlugin(maxOutput = 6) { | |
30 | - const createCss = (index: number, d = 'x') => { | |
31 | - const upd = d.toUpperCase(); | |
32 | - return { | |
33 | - [`*> .enter-${d}:nth-child(${index})`]: { | |
34 | - transform: `translate${upd}(50px)`, | |
35 | - }, | |
36 | - [`*> .-enter-${d}:nth-child(${index})`]: { | |
37 | - transform: `translate${upd}(-50px)`, | |
38 | - }, | |
39 | - [`* > .enter-${d}:nth-child(${index}),* > .-enter-${d}:nth-child(${index})`]: { | |
40 | - 'z-index': `${10 - index}`, | |
41 | - opacity: '0', | |
42 | - animation: `enter-${d}-animation 0.4s ease-in-out 0.3s`, | |
43 | - 'animation-fill-mode': 'forwards', | |
44 | - 'animation-delay': `${(index * 1) / 10}s`, | |
45 | - }, | |
46 | - }; | |
47 | - }; | |
48 | - const handler = ({ addBase }) => { | |
49 | - const addRawCss = {}; | |
50 | - for (let index = 1; index < maxOutput; index++) { | |
51 | - Object.assign(addRawCss, { | |
52 | - ...createCss(index, 'x'), | |
53 | - ...createCss(index, 'y'), | |
54 | - }); | |
55 | - } | |
56 | - addBase({ | |
57 | - ...addRawCss, | |
58 | - [`@keyframes enter-x-animation`]: { | |
59 | - to: { | |
60 | - opacity: '1', | |
61 | - transform: 'translateX(0)', | |
62 | - }, | |
63 | - }, | |
64 | - [`@keyframes enter-y-animation`]: { | |
65 | - to: { | |
66 | - opacity: '1', | |
67 | - transform: 'translateY(0)', | |
68 | - }, | |
69 | - }, | |
70 | - }); | |
71 | - }; | |
72 | - return { handler }; | |
73 | -} |