Skip to content

Commit

Permalink
fix(theme): fix theme default style
Browse files Browse the repository at this point in the history
  • Loading branch information
xcyeye committed Dec 21, 2021
1 parent 9bdbd50 commit 8e9aacb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 15 deletions.
Expand Up @@ -49,8 +49,8 @@
</div>
</div>
</div>
<audio autoplay class="aurora-music-player-control" ref="aurora-music-player" controls="controls">
<source src="musicSrc" type="audio/mp3" />
<audio class="aurora-music-player-control" ref="aurora-music-player" controls="controls">
<source src="" type="audio/mp3" />
Your browser does not support this audio format.
</audio>
</div>
Expand Down
1 change: 0 additions & 1 deletion Aurora-theme/lib/client/clientAppEnhance.d.ts
@@ -1,5 +1,4 @@
import './styles/index.scss';
import './styles/theme.style.css'
declare const _default: import("@vuepress/client").ClientAppEnhance;
export default _default;

2 changes: 0 additions & 2 deletions Aurora-theme/lib/client/clientAppEnhance.js
Expand Up @@ -30,8 +30,6 @@ import Pins from "./components/global/inner/Pins.vue";

//样式导入
import './styles/index.scss';
import './styles/photo.scss'
//import './styles/coverStyle.css'
export default defineClientAppEnhance(({ app, router }) => {
app.component('Badge', Badge);
app.component('CodeGroup', CodeGroup);
Expand Down
7 changes: 0 additions & 7 deletions Aurora-theme/lib/client/components/global/Common.vue
Expand Up @@ -510,10 +510,3 @@ export default defineComponent({
})
</script>
<style lang="css">
@import "../../styles/theme.style.css";
/* 从调色板中引入变量 */
/*@import '@vuepress/plugin-palette/palette';*/
</style>

<!--<style lang="css" src="@vuepress/plugin-palette/style"></style>-->
2 changes: 1 addition & 1 deletion Aurora-theme/lib/client/layouts/Layout.vue
Expand Up @@ -173,4 +173,4 @@ export default defineComponent({
}
},
})
</script>
</script>
5 changes: 4 additions & 1 deletion Aurora-theme/lib/client/styles/index.scss
Expand Up @@ -17,4 +17,7 @@
@use 'toc';
@use 'transitions';

@use '@vuepress/plugin-palette/style';
//下面的是主题默认样式,和从@vuepress/plugin-palette插件上,引入的样式
@import "theme.style.css";
@import "@vuepress/plugin-palette/palette";
@import "@vuepress/plugin-palette/style";
1 change: 1 addition & 0 deletions Aurora-theme/lib/client/styles/theme.style.css
@@ -1,3 +1,4 @@
/*这是主题默认样式*/
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
Expand Down
3 changes: 2 additions & 1 deletion docs/.vuepress/styles/index.css
Expand Up @@ -2,7 +2,8 @@

/* 覆盖主题随机一眼的颜色 */
.home-random-say div {
/*color: red;*/
color: red;
background: blue;
}

#set-bg {
Expand Down

0 comments on commit 8e9aacb

Please sign in to comment.