MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
AdminIsidore (talk | contribs) No edit summary |
AdminIsidore (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
body, .mw-parser-output { | body, .mw-parser-output { | ||
font-family: 'Junicode', 'Quivira', 'DejaVu Sans', sans-serif; | font-family: 'Junicode', 'Quivira', 'DejaVu Sans', sans-serif; | ||
} | |||
@font-face { | |||
font-family: "IBMPlexMono"; | |||
src: url("https://www.ooda.wiki/resources/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); | |||
font-weight: normal; | |||
font-style: normal; | |||
} | |||
.glossary-graph, | |||
.documentation, | |||
.documentation-metadata, | |||
.documentation-heading, | |||
.documentation-toolbar { | |||
font-family: "IBMPlexMono", "Courier New", monospace; | |||
} | } | ||
.mermaid { | .mermaid { | ||
Line 24: | Line 37: | ||
border: 1px solid #cccccc; | border: 1px solid #cccccc; | ||
border-radius: 5px; | border-radius: 5px; | ||
overflow: visible; | overflow: visible; | ||
min-height: | min-height: 800px; | ||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
Line 35: | Line 48: | ||
.mermaid svg { | .mermaid svg { | ||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||
min-height: | min-height: 800px; /* Force larger SVG */ | ||
font-size: 12px; /* | overflow: visible; | ||
} | |||
.mermaid text { | |||
font-size: 12px !important; /* Readable size */ | |||
dominant-baseline: central; /* Center vertically */ | |||
text-anchor: middle; /* Center horizontally */ | |||
transform: translateY(-5px); /* Shift text up */ | |||
} | } |