mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-27 22:40:30 +00:00
引入 fontface
This commit is contained in:
48
src/fontface.scss
Normal file
48
src/fontface.scss
Normal file
@@ -0,0 +1,48 @@
|
||||
@font-face {
|
||||
font-family: 'Maple Hand';
|
||||
src: local('Maple Hand'),
|
||||
url('/assets/fonts/MapleHand-Regular.ttf') format('truetype');
|
||||
font-display: swap;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Maple Hand';
|
||||
src: local('Maple Hand'),
|
||||
url('/assets/fonts/MapleHand-Bold.ttf') format('truetype');
|
||||
font-display: swap;
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'VictorMono NF';
|
||||
src: local('VictorMono NF'),
|
||||
url('/assets/fonts/VictorMonoNerdFont-Regular.ttf') format('truetype');
|
||||
font-display: swap;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'VictorMono NF';
|
||||
src: local('VictorMono NF'),
|
||||
url('/assets/fonts/VictorMonoNerdFont-Italic.ttf') format('truetype');
|
||||
font-display: swap;
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'VictorMono NF';
|
||||
src: local('VictorMono NF'),
|
||||
url('/assets/fonts/VictorMonoNerdFont-Bold.ttf') format('truetype');
|
||||
font-display: swap;
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'VictorMono NF';
|
||||
src: local('VictorMono NF'),
|
||||
url('/assets/fonts/VictorMonoNerdFont-BoldItalic.ttf') format('truetype');
|
||||
font-display: swap;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
// Made by Luting ^-^
|
||||
:root :lang(zh-CN) {
|
||||
--fonts-override: 'Maple Hand', 'VictorMono Nerd Font', 'HYZhengYuan';
|
||||
--fonts-override: "Maple Hand", "VictorMono NF", "VictorMono Nerd Font"
|
||||
}
|
||||
|
||||
.job-step-logs {
|
||||
font-family: 'VictorMono Nerd Font', 'Maple Hand', 'HYZhengYuan' !important;
|
||||
font-weight: 500;
|
||||
font-family: "VictorMono NF", "VictorMono Nerd Font", "Maple Hand" !important;
|
||||
font-weight: 500
|
||||
}
|
||||
|
||||
:root {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Made by Luting ^-^ */
|
||||
@use 'fontface';
|
||||
@use 'chroma';
|
||||
@use 'codemirror';
|
||||
@use 'root';
|
||||
|
||||
Reference in New Issue
Block a user