mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: allow font customization
This commit is contained in:
1 parent
cf1195a6ee
commit
9b2c36efbf
13 files changed
+93
-31
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
Reference in new issue
Block a user