Add logo.

This commit is contained in:
g_it 2026-03-31 14:38:05 +02:00
commit 38a4d516bf
Signed by untrusted user who does not match committer: g_it
GPG key ID: A2B0A7C06A054627

View file

@ -47,41 +47,55 @@ with [Scalar](https://scalar.com/).
"""
CUSTOM_CSS = """
.darklight-reference-promo { display: none !important; }
.darklight-reference { display: none !important; }
.darklight-reference-promo { 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');
}
:root {
--scalar-font: 'DM Sans', sans-serif;
--scalar-font-code: 'DM Mono', monospace;
}
:root {
--scalar-font: 'DM Sans', sans-serif;
--scalar-font-code: 'DM Mono', monospace;
}
.darklight-reference > * {
display: none !important;
}
.darklight-reference {
padding: 0.75rem !important;
display: flex !important;
}
.darklight-reference::before {
content: '';
display: block;
width: 32px;
height: 32px;
background: url('https://gugulet.hu/technical/git/g_it/site/raw/branch/main/content/assets/media/g-logo-250x250.webp') no-repeat center / contain;
}
"""
app = FastAPI(