refactor: 修改 FiraCode 字体的位置

This commit is contained in:
unanmed 2024-10-21 12:48:04 +08:00
parent 285a18b1b8
commit 7bcd9ebeb2
5 changed files with 7 additions and 11 deletions

View File

@ -254,7 +254,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"zone.mp3" "zone.mp3"
], ],
"fonts": [ "fonts": [
"normal" "normal",
"FiraCode"
], ],
"nameMap": { "nameMap": {
"确定": "confirm.mp3", "确定": "confirm.mp3",

View File

@ -66,7 +66,7 @@
}}</span }}</span
> >
<span class="changable" :change="nowDamageChangable" <span class="changable" :change="nowDamageChangable"
><span style="font-family: 'Fira Code'">{{ ><span style="font-family: 'FiraCode'">{{
(nowDamage[0] as number) < 0 && !has(enemy.damage) (nowDamage[0] as number) < 0 && !has(enemy.damage)
? '=>' ? '=>'
: '' : ''

View File

@ -83,11 +83,6 @@
cursor: not-allowed; cursor: not-allowed;
} }
@font-face {
font-family: Fira Code;
src: url(/src/fonts/FiraCode-Regular.ttf);
}
#non-ui { #non-ui {
position: absolute; position: absolute;
z-index: 999; z-index: 999;

View File

@ -505,7 +505,7 @@ onUnmounted(() => {
color: white; color: white;
transition: color 0.2s linear; transition: color 0.2s linear;
margin-right: 7px; margin-right: 7px;
font-family: 'Fira Code', 'Arial'; font-family: 'FiraCode', 'Arial';
} }
.danmaku-tool[open='true'], .danmaku-tool[open='true'],
@ -529,7 +529,7 @@ onUnmounted(() => {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
white-space: nowrap; white-space: nowrap;
font-family: 'Fira Code', 'Arial'; font-family: 'FiraCode', 'Arial';
#danmaku-css-input { #danmaku-css-input {
width: 100%; width: 100%;
@ -550,7 +550,7 @@ onUnmounted(() => {
font-size: 80%; font-size: 80%;
white-space: nowrap; white-space: nowrap;
justify-content: space-between; justify-content: space-between;
font-family: 'Fira Code', 'Arial'; font-family: 'FiraCode', 'Arial';
.danmaku-icon-scroll { .danmaku-icon-scroll {
width: calc(90% - 200px); width: calc(90% - 200px);
@ -600,7 +600,7 @@ onUnmounted(() => {
align-items: center; align-items: center;
white-space: nowrap; white-space: nowrap;
justify-content: space-between; justify-content: space-between;
font-family: 'Fira Code', 'Arial'; font-family: 'FiraCode', 'Arial';
font-size: 75%; font-size: 75%;
#danmaku-color-container { #danmaku-color-container {