ui: allow font customization

This commit is contained in:
undefined committed 2022-02-22 00:24:50 +08:00
1 parent cf1195a6ee
commit 9b2c36efbf
13 files changed
+93 -31

No files matched your search

+2 -2
View File
@@ -24,13 +24,13 @@ export class Page {
}
export class NamedPage extends Page {
constructor(name: string | string[], afterLoading = null, beforeLoading = null) {
constructor(name: string | string[], afterLoading: (pagename: string) => any = null, beforeLoading = null) {
super(name, false, afterLoading, beforeLoading);
}
}
export class AutoloadPage extends Page {
constructor(name: string | string[], afterLoading = null, beforeLoading = null) {
constructor(name: string | string[], afterLoading: (pagename: string) => any = null, beforeLoading = null) {
super(name, true, afterLoading, beforeLoading);
}
}
+6 -1
View File
@@ -472,8 +472,13 @@ h1, h2, h3, h4, h5, h6
color: darken(black, 40%)
textarea
font-family: "monaco", "Consolas", "Source Code Pro", "Lucida Console", "monospace" !important
font-family: $code-font-family !important
:focus
outline: 0px;
outline-offset: 2px;
@font-face
font-family: "XiaoLai SC";
font-display: swap;
src: url('https://raw.githubusercontent.com/lxgw/kose-font/master/TTF%20(Simplified%20Chinese)/XiaolaiSC-Regular.ttf') format('truetype');