MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
AdminIsidore (talk | contribs) No edit summary |
AdminIsidore (talk | contribs) No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
font-weight: 400; | font-weight: 400; | ||
font-style: normal; | font-style: normal; | ||
} | } | ||
@font-face { | @font-face { | ||
Line 15: | Line 13: | ||
font-weight: 400; | font-weight: 400; | ||
font-style: normal; | font-style: normal; | ||
} | } | ||
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 { | |||
max-width: 800px; | |||
margin: 1em auto; | |||
padding: 2em; | |||
background: #ffffff; | |||
border: 1px solid #cccccc; | |||
border-radius: 5px; | |||
overflow: visible; | |||
min-height: 800px; | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
.mermaid { | |||
background: #333333; | |||
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 */ | |||
} | } |
Latest revision as of 23:55, 29 August 2025
/* CSS placed here will be applied to all skins */
@font-face {
font-family: 'Junicode';
src: url('/resources/fonts/Junicode-Regular.woff2') format('woff2'),
url('/resources/fonts/JunicodeTwoBeta-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Quivira';
src: url('/resources/fonts/Quivira.woff2') format('woff2'),
url('/resources/fonts/Quivira.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
body, .mw-parser-output {
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 {
max-width: 800px;
margin: 1em auto;
padding: 2em;
background: #ffffff;
border: 1px solid #cccccc;
border-radius: 5px;
overflow: visible;
min-height: 800px;
}
@media (prefers-color-scheme: dark) {
.mermaid {
background: #333333;
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 */
}