Browse Source

fix: 整体字体修改

master
guoapeng 3 weeks ago
parent
commit
0fcfda1b78
  1. 2
      src/assets/styles/common.scss
  2. 2
      src/assets/styles/element.scss
  3. 2
      src/components/common/BTButton/index.vue
  4. 3
      src/components/formula/FormulaTable.vue
  5. 2
      src/stores/systemStore.ts
  6. 1
      src/views/setting/index.vue

2
src/assets/styles/common.scss

@ -1,6 +1,6 @@
/* CSS Document */ /* CSS Document */
html { html {
font-family: serif !important;
font-family: 'PingFangSC-Regular', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
height: 100vh; height: 100vh;
font-size: 14px; font-size: 14px;
} }

2
src/assets/styles/element.scss

@ -1,8 +1,6 @@
:root { :root {
--el-font-size-base: 18px; --el-font-size-base: 18px;
// --el-button-size: 80px; // --el-button-size: 80px;
--el-font-family-base: serif;
--el-color-primary: #1989fa; --el-color-primary: #1989fa;
//--el-button-active-bg-color: linear-gradient(90deg, #0657C0 24%, #096AE0 101%); //--el-button-active-bg-color: linear-gradient(90deg, #0657C0 24%, #096AE0 101%);
--text-color-primary: #17213c; --text-color-primary: #17213c;

2
src/components/common/BTButton/index.vue

@ -113,6 +113,6 @@ const handleClick = (event: MouseEvent) => {
padding-left: 5px; padding-left: 5px;
} }
.button{ .button{
font-family: serif;
} }
</style> </style>

3
src/components/formula/FormulaTable.vue

@ -122,7 +122,7 @@ const deleteRecipe = (item: Formula.FormulaItem) => {
<style scoped> <style scoped>
.recipe-management { .recipe-management {
font-family: serif;
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 10px; padding: 10px;
border-radius: 5px; border-radius: 5px;
@ -174,7 +174,6 @@ const deleteRecipe = (item: Formula.FormulaItem) => {
cursor: pointer; cursor: pointer;
margin-right: 5px; margin-right: 5px;
transition: all 0.3s; transition: all 0.3s;
font-family: serif;
} }
.view-button { .view-button {

2
src/stores/systemStore.ts

@ -18,7 +18,7 @@ export const useSystemStore = defineStore('system', () => {
name: '中文', name: '中文',
value: 'zh-cn', value: 'zh-cn',
}, { }, {
name: '英文',
name: 'English',
value: 'en', value: 'en',
}] }]

1
src/views/setting/index.vue

@ -87,7 +87,6 @@ const selectItem = (menuCode: string) => {
display: flex; display: flex;
align-items: center; align-items: center;
border-radius: 10px; border-radius: 10px;
font-family: serif;
height: 5rem; height: 5rem;
} }
li.active { li.active {

Loading…
Cancel
Save