1
0
forked from bot/app

feat: 更多的字体

This commit is contained in:
远野千束 2024-04-05 07:14:35 +08:00
parent c5d2c040fe
commit edc0a16cad
4 changed files with 26 additions and 19 deletions

View File

@ -1,15 +1,33 @@
/*MiSans*/
@font-face {
font-family: 'MiSans';
src: url('../fonts/MiSans/MiSans-Light.woff2') format('truetype');
font-weight: 200;
}
@font-face {
font-family: 'MiSans';
src: url('../fonts/MiSans/MiSans-Normal.woff2') format('truetype');
font-weight: normal;
font-weight: 400;
}
@font-face {
font-family: 'MiSans';
src: url('../fonts/MiSans/MiSans-Semibold.woff2') format('truetype');
font-weight: 500;
}
@font-face {
font-family: 'MiSans';
src: url('../fonts/MiSans/MiSans-Bold.woff2') format('truetype');
font-weight: bold;
font-weight: 700;
}
@font-face {
font-family: 'MiSans';
src: url('../fonts/MiSans/MiSans-Heavy.woff2') format('truetype');
font-weight: 900;
}
/*MapleMono*/
@ -52,3 +70,7 @@
font-weight: 700;
font-style: italic;
}
body {
font-family: 'MapleMono', 'MiSans', sans-serif;
}

View File

@ -8,22 +8,7 @@
<link rel="stylesheet" href="css/fonts.css">
<style>
@font-face {
font-family: 'MiSans';
src: url('fonts/normal.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'MiSans';
src: url('fonts/bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
body {
font-family: 'MiSans', serif;
background-repeat: repeat-y;
background-size: cover;
background-position: center;
@ -33,7 +18,6 @@
//margin: 24px;
margin: 20px;
}
.info-box {
@ -99,7 +83,8 @@
.tag {
font-size: 32px;
font-weight: bold;
font-weight: 700;
font-style: italic;
}
.tag[suffix="1"]::after {