Skip to content

Commit

Permalink
fix: prism highlight custom css is overwritten by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Aug 9, 2023
1 parent 440b2a7 commit b26850b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/PageContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
</template>

<script lang="ts">
import '@/styles/prism-aurora-future.css'
import {
Ref,
computed,
Expand Down
1 change: 0 additions & 1 deletion src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@import 'tailwindcss/utilities';

@import './transitions.scss';
@import './prism-aurora-future.css';

.stroke-ob-bright {
stroke: var(--text-bright) !important;
Expand Down
1 change: 1 addition & 0 deletions src/views/Links.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
</template>

<script lang="ts">
import '@/styles/prism-aurora-future.css'
import { Ref, computed, defineComponent, nextTick, onMounted, ref } from 'vue'
import PostStats from '@/components/Post/PostStats.vue'
import LinkBox from '@/components/Link/LinkBox.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/views/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
</template>

<script lang="ts">
import '@/styles/prism-aurora-future.css'
import { Sidebar, Toc, Profile } from '@/components/Sidebar'
import { Post } from '@/models/Post.class'
import { usePostStore } from '@/stores/post'
Expand All @@ -186,7 +187,6 @@ import { Article } from '@/components/ArticleCard'
import { useMetaStore } from '@/stores/meta'
import { useAppStore } from '@/stores/app'
import { useCommonStore } from '@/stores/common'
import SvgIcon, { SvgTypes } from '@/components/SvgIcon/index.vue'
import PostStats from '@/components/Post/PostStats.vue'
Expand Down

0 comments on commit b26850b

Please sign in to comment.