Skip to content

Commit

Permalink
feat: upgrade windi css
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 29, 2021
1 parent ff2a66a commit 1c09a7e
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 36 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"execa": "^5.0.0",
"jest": "^26.6.3",
"playwright-chromium": "^1.10.0",
"pnpm": "^6.2.2",
"pnpm": "^6.2.3",
"ts-jest": "^26.5.5",
"typescript": "^4.2.4",
"vite-plugin-windicss": "^0.15.7",
"vite-plugin-windicss": "^0.16.0-beta.3",
"vitepress": "^0.13.2"
}
}
6 changes: 4 additions & 2 deletions packages/client/internals/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ function onClick(e: MouseEvent) {
<div
v-show="value"
ref="container"
class="fixed top-0 bottom-0 left-0 right-0 bg-black bg-opacity-80 grid"
class="fixed top-0 bottom-0 left-0 right-0 grid"
bg="black opacity-80"
@click="onClick"
>
<div
class="m-auto rounded-md bg-main shadow dark:(border border-gray-400 border-opacity-10)w"
class="m-auto rounded-md bg-main shadow"
dark:border="~ gray-400 opacity-10"
:class="props.class"
>
<slot />
Expand Down
1 change: 1 addition & 0 deletions packages/client/windi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default defineConfig({
'abs-bl': 'absolute bottom-0 left-0',
'abs-br': 'absolute bottom-0 right-0',
},
attributify: true,
darkMode: 'class',
preflight: {
includeAll: true,
Expand Down
6 changes: 3 additions & 3 deletions packages/slidev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"vite-plugin-icons": "^0.5.0",
"vite-plugin-md": "^0.6.3",
"vite-plugin-remote-assets": "^0.2.0",
"vite-plugin-windicss": "^0.15.7",
"vite-plugin-windicss": "^0.16.0-beta.3",
"vue": "^3.0.11",
"windicss": "^2.5.14",
"yargs": "^16.2.0"
Expand All @@ -87,15 +87,15 @@
"@types/minimist": "^1.2.1",
"@types/node": "^15.0.1",
"@types/prettier": "^2.2.3",
"@types/prompts": "^2.0.10",
"@types/prompts": "^2.4.0",
"@types/recordrtc": "^5.6.5",
"@types/yargs": "^16.0.1",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"cross-env": "^7.0.3",
"eslint": "^7.25.0",
"esno": "^0.5.0",
"playwright-chromium": "^1.10.0",
"pnpm": "^6.2.2",
"pnpm": "^6.2.3",
"rimraf": "^3.0.2",
"tsup": "^4.10.1",
"typescript": "^4.2.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bugs": "https://github.com/slidevjs/slidev/issues",
"peerDependencies": {
"@slidev/client": "^0.0.0-alpha.0",
"vite-plugin-windicss": "^0.15.6"
"vite-plugin-windicss": "^0.16.0-beta.1"
},
"dependencies": {
"codemirror-theme-vars": "^0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-seriph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bugs": "https://github.com/slidevjs/slidev/issues",
"peerDependencies": {
"@slidev/client": "^0.0.0-alpha.0",
"vite-plugin-windicss": "^0.15.6"
"vite-plugin-windicss": "^0.16.0-beta.1"
},
"dependencies": {
"codemirror-theme-vars": "^0.1.0",
Expand Down
58 changes: 31 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c09a7e

Please sign in to comment.