MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
AdminIsidore (talk | contribs) No edit summary |
AdminIsidore (talk | contribs) No edit summary |
||
(7 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 { | ||
max-width: | max-width: 800px; | ||
margin: 1em auto; | margin: 1em auto; | ||
padding: | padding: 2em; | ||
background: #ffffff; | background: #ffffff; | ||
border: 1px solid #cccccc; | border: 1px solid #cccccc; | ||
border-radius: 5px; | border-radius: 5px; | ||
overflow: visible; | |||
min-height: 800px; | |||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
.mermaid { | .mermaid { | ||
background: #333333; | background: #333333; | ||
border-color: #555555; | border-color: #555555; | ||
} | } | ||
} | |||
.mermaid svg { | |||
width: 100%; | |||
height: auto; | |||
min-height: 800px; /* Force larger SVG */ | |||
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 */ | |||
} | } |