MediaWiki:Common.css: Difference between revisions

From OODA WIKI
Jump to navigation Jump to search
AdminIsidore (talk | contribs)
No edit summary
AdminIsidore (talk | contribs)
No edit summary
Line 25: Line 25:
     border-radius: 5px;
     border-radius: 5px;
     overflow: visible;
     overflow: visible;
     min-height: 500px; /* Increased for safety */
     min-height: 600px;
}
}
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
Line 36: Line 36:
     width: 100%;
     width: 100%;
     height: auto;
     height: auto;
     min-height: 400px; /* Increased SVG height */
     min-height: 500px; /* Increased */
     font-size: 12px;
     font-size: 10px !important;
     overflow: visible;
     overflow: visible;
     transform: scale(1); /* Prevent scaling issues */
     transform: none; /* Remove scaling */
}
}
.mermaid text {
.mermaid text {
     font-size: 12px !important; /* Force text size */
     font-size: 10px !important;
     dominant-baseline: middle; /* Center text vertically */
    dominant-baseline: middle; /* Center vertically */
     text-anchor: middle; /* Center horizontally */
}
}

Revision as of 21:36, 28 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;
}
.mermaid {
    max-width: 800px;
    margin: 1em auto;
    padding: 2em;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 5px;
    overflow: visible;
    min-height: 600px;
}
@media (prefers-color-scheme: dark) {
    .mermaid {
        background: #333333;
        border-color: #555555;
    }
}
.mermaid svg {
    width: 100%;
    height: auto;
    min-height: 500px; /* Increased */
    font-size: 10px !important;
    overflow: visible;
    transform: none; /* Remove scaling */
}
.mermaid text {
    font-size: 10px !important;
    dominant-baseline: middle; /* Center vertically */
    text-anchor: middle; /* Center horizontally */
}