Skip to content

Commit

Permalink
fix: icons are now display as inline by default
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 17, 2021
1 parent d1f4579 commit 608019e
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 459 deletions.
5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -77,5 +77,10 @@
},
"engines": {
"node": ">=14.0.0"
},
"pnpm": {
"overrides": {
"vite": "^2.5.8"
}
}
}
12 changes: 6 additions & 6 deletions packages/client/package.json
Expand Up @@ -15,23 +15,23 @@
"@antfu/utils": "^0.3.0",
"@slidev/parser": "workspace:*",
"@slidev/types": "workspace:*",
"@vueuse/core": "^6.3.3",
"@vueuse/core": "^6.4.0",
"@vueuse/head": "^0.6.0",
"@vueuse/motion": "^1.6.0",
"codemirror": "^5.62.3",
"drauu": "^0.1.0",
"drauu": "^0.1.2",
"file-saver": "^2.0.5",
"js-base64": "^3.7.0",
"js-base64": "^3.7.1",
"js-yaml": "^4.1.0",
"katex": "^0.13.18",
"mermaid": "^8.12.1",
"monaco-editor": "^0.27.0",
"nanoid": "^3.1.25",
"prettier": "^2.4.0",
"prettier": "^2.4.1",
"recordrtc": "^5.6.2",
"resolve": "^1.20.0",
"vite-plugin-windicss": "^1.4.2",
"vue": "^3.2.11",
"vite-plugin-windicss": "^1.4.3",
"vue": "^3.2.12",
"vue-router": "^4.0.11",
"windicss": "^3.1.7"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/client/styles/index.css
Expand Up @@ -39,3 +39,9 @@ html {
.slidev-vclick-hidden {
@apply !opacity-0 !pointer-events-none;
}

.slidev-icon {
display: inline-block;
vertical-align: sub;
line-height: 1em;
}
1 change: 1 addition & 0 deletions packages/slidev/node/plugins/preset.ts
Expand Up @@ -107,6 +107,7 @@ export async function ViteSlidevPlugin(
}),

Icons({
defaultClass: 'slidev-icon',
...iconsOptions,
}),

Expand Down
24 changes: 12 additions & 12 deletions packages/slidev/package.json
Expand Up @@ -51,17 +51,17 @@
"@slidev/parser": "workspace:*",
"@slidev/types": "workspace:*",
"@vitejs/plugin-vue": "^1.6.2",
"@vue/compiler-sfc": "^3.2.11",
"cli-progress": "^3.9.0",
"@vue/compiler-sfc": "^3.2.12",
"cli-progress": "^3.9.1",
"codemirror": "^5.62.3",
"connect": "^3.7.0",
"debug": "^4.3.2",
"fast-glob": "^3.2.7",
"fs-extra": "^10.0.0",
"import-from": "^4.0.0",
"is-installed-globally": "^0.4.0",
"jiti": "^1.11.0",
"js-base64": "^3.7.0",
"jiti": "^1.12.0",
"js-base64": "^3.7.1",
"katex": "^0.13.18",
"kolorist": "^1.5.0",
"markdown-it": "^12.2.0",
Expand All @@ -71,20 +71,20 @@
"nanoid": "^3.1.25",
"open": "^8.2.1",
"pdf-lib": "^1.16.0",
"prismjs": "^1.24.1",
"prismjs": "^1.25.0",
"prompts": "^2.4.1",
"resolve": "^1.20.0",
"resolve-from": "^5.0.0",
"resolve-global": "^1.0.0",
"shiki": "^0.9.10",
"unplugin-icons": "^0.8.1",
"unplugin-vue-components": "^0.15.0",
"vite": "^2.5.6",
"vite-plugin-md": "^0.11.0",
"shiki": "^0.9.11",
"unplugin-icons": "^0.11.3",
"unplugin-vue-components": "^0.15.2",
"vite": "^2.5.8",
"vite-plugin-md": "^0.11.1",
"vite-plugin-remote-assets": "^0.2.2",
"vite-plugin-vue-server-ref": "^0.2.3",
"vite-plugin-windicss": "^1.4.2",
"vue": "^3.2.11",
"vite-plugin-windicss": "^1.4.3",
"vue": "^3.2.12",
"windicss": "^3.1.7",
"yargs": "^17.1.1"
},
Expand Down

0 comments on commit 608019e

Please sign in to comment.