Change font.
This commit is contained in:
parent
a35c462972
commit
6ccd65a258
1 changed files with 36 additions and 34 deletions
62
app/main.py
62
app/main.py
|
|
@ -46,40 +46,42 @@ skills. Built with [FastAPI](https://fastapi.tiangolo.com/) and documented
|
|||
with [Scalar](https://scalar.com/).
|
||||
"""
|
||||
|
||||
CUSTOM_CSS="""
|
||||
.darklight-reference-promo { display: none !important; }
|
||||
.darklight-reference { display: none !important; }
|
||||
CUSTOM_CSS = """
|
||||
.darklight-reference-promo { display: none !important; }
|
||||
.darklight-reference { display: none !important; }
|
||||
|
||||
.light-mode {
|
||||
--scalar-color-1: #343434;
|
||||
--scalar-color-2: #666666;
|
||||
--scalar-color-3: #979797;
|
||||
--scalar-color-accent: #C9C9C9;
|
||||
--scalar-background-1: #FAFAFA;
|
||||
--scalar-background-2: #FFFFFF;
|
||||
--scalar-background-3: #FFFFFF;
|
||||
--scalar-background-accent: #FFFFFF;
|
||||
--scalar-border-color: transparent;
|
||||
}
|
||||
.light-mode {
|
||||
--scalar-color-1: #343434;
|
||||
--scalar-color-2: #666666;
|
||||
--scalar-color-3: #979797;
|
||||
--scalar-color-accent: #C9C9C9;
|
||||
--scalar-background-1: #FAFAFA;
|
||||
--scalar-background-2: #FFFFFF;
|
||||
--scalar-background-3: #FFFFFF;
|
||||
--scalar-background-accent: #FFFFFF;
|
||||
--scalar-border-color: transparent;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 100 700;
|
||||
src: url('https://gugulet.hu/technical/git/g_it/site/raw/branch/main/content/assets/fonts/dm-sans.ttf') format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 100 700;
|
||||
src: url('https://gugulet.hu/technical/git/g_it/site/raw/branch/main/content/assets/fonts/dm-sans.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'DM Mono';
|
||||
font-style: normal;
|
||||
font-weight: 100 700;
|
||||
src: url('https://gugulet.hu/technical/git/g_it/site/raw/branch/main/content/assets/fonts/dm-mono.ttf') format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: 'DM Mono';
|
||||
font-style: normal;
|
||||
font-weight: 100 700;
|
||||
src: url('https://gugulet.hu/technical/git/g_it/site/raw/branch/main/content/assets/fonts/dm-mono.ttf') format('truetype');
|
||||
}
|
||||
|
||||
body { font-family: 'DM Sans', monospace !important; }
|
||||
code, pre { font-family: 'DM Mono', monospace !important; }
|
||||
:root {
|
||||
--scalar-font: 'DM Sans', sans-serif;
|
||||
--scalar-font-code: 'DM Mono', monospace;
|
||||
}
|
||||
"""
|
||||
|
||||
app = FastAPI(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue