Skip to content

Commit

Permalink
[O] Update font
Browse files Browse the repository at this point in the history
  • Loading branch information
LS-KR committed Jun 29, 2024
1 parent c8541b3 commit 13346f5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<script lang="ts">
import {Component, Vue} from "vue-facing-decorator";
import ContentField from "@/views/ContentField.vue";
import {Component, Vue} from "vue-facing-decorator";
@Component({components: {ContentField}})
export default class App extends Vue {}
@Component({ components: { ContentField } })
export default class App extends Vue {
}
</script>

<template>
<ContentField />
<ContentField/>
</template>

<style lang="scss">
@import '@/style/mocha';
@import '@/style/font.css';
body {
background-color: $mantle;
Expand All @@ -23,5 +25,6 @@ body {
position: absolute;
left: 0;
top: 20px;
font-family: "PingFang SC", "Microsoft YaHei", sans-serif, serif;
}
</style>
2 changes: 2 additions & 0 deletions src/components/ContentCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default class ContentCard extends Vue {

<style lang="scss">
@import '@/style/mocha.sass';
@import '@/style/font.css';
.content {
display: flex;
Expand Down Expand Up @@ -80,6 +81,7 @@ export default class ContentCard extends Vue {
border-bottom: 1px solid $rosewater;
color: $rosewater;
margin: auto auto 0.5rem 1rem;
font-family: 'Huiwen-mincho';
transition: all 0.5s ease;
&:hover {
Expand Down
9 changes: 9 additions & 0 deletions src/style/font.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@font-face {
font-family: "Huiwen-mincho";
src: url(./fonts/Huiwen_mingchao.woff2) format("woff2");
}

@font-face {
font-family: "PingFang SC";
src: url(./fonts/PingFang-SC-Regular.woff2) format("woff2");
}
2 changes: 2 additions & 0 deletions src/style/markdown.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
@import "./mocha.sass";
@import "./font.css";

.markdown {
color: $text;

.head {
color: $rosewater;
border-bottom: 1px solid $rosewater;
font-family: "Huiwen-mincho", serif;
}

h1 {
Expand Down

0 comments on commit 13346f5

Please sign in to comment.