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
 
(21 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;
}
@font-face {
  font-family: 'Morris Initials';
  /* Corrected src path to match the actual filename with a space */
  src: url('/resources/fonts/Morris Initials.ttf') format('truetype');
}
.glossary-graph,
.documentation,
.documentation-metadata,
.documentation-heading,
.documentation-toolbar {
    font-family: "IBMPlexMono", "Courier New", monospace;
}
}
.mermaid {
.mermaid {
Line 25: Line 43:
     border-radius: 5px;
     border-radius: 5px;
     overflow: visible;
     overflow: visible;
     min-height: 500px; /* Increased for safety */
     min-height: 800px;
}
}
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
Line 36: Line 54:
     width: 100%;
     width: 100%;
     height: auto;
     height: auto;
     min-height: 400px; /* Increased SVG height */
     min-height: 800px; /* Force larger SVG */
    font-size: 12px;
     overflow: visible;
     overflow: visible;
    transform: scale(1); /* Prevent scaling issues */
}
}
.mermaid text {
.mermaid text {
     font-size: 12px !important; /* Force text size */
     font-size: 12px !important; /* Readable size */
     dominant-baseline: middle; /* Center text vertically */
     dominant-baseline: central; /* Center vertically */
    text-anchor: middle; /* Center horizontally */
    transform: translateY(-5px); /* Shift text up */
}
/* Styling for Essentia Semantic Graph */
.essentia-graph {
    background-color: #000000; /* Black background */
    color: #00FF00; /* Green text */
    font-family: "Courier New", monospace;
    border: 1px solid #00FF00;
    padding: 0.5em;
    box-shadow: 0 0 8px #00FF00; /* CRT glow */
    margin-top: 1em;
    width: 100%;
    max-width: 800px;
    height: 400px;
    box-sizing: border-box;
}
.essentia-graph svg {
    background-color: #000000;
    width: 100%;
    height: 100%;
}
@media screen and (prefers-color-scheme: dark) {
    .essentia-graph, .essentia-graph svg {
        background-color: #111111; /* Near-black for dark mode */
        color: #00FF00;
        box-shadow: 0 0 8px #00FF00;
    }
}
@media screen and (max-width: 600px) {
    .essentia-graph {
        max-width: 100%;
        height: 300px; /* Smaller height for mobile */
    }
}
 
/* --- Final Vulgate CSS --- */
/* --- Final Vulgate CSS --- */
@font-face {
  font-family: 'Bilbo Swash Caps';
  src: url('/w/images/BilboSwashCaps-Regular.ttf') format('truetype');
}
.vulgate-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 3em auto;
}
.vulgate-parchment {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: 2px 3px 20px rgba(0, 0, 0, 0.5), 0 0 125px #8f5922 inset;
    background: #fffef0;
    filter: url(#wavy2);
    background-image: url('/w/images/Parchment-texture.png');
}
.vulgate-content {
    position: relative;
    padding: 2em 3em;
    font-family: 'Bilbo Swash Caps', 'Palatino Linotype', cursive;
    font-size: 1.5em;
    line-height: 1.8;
    color: #7F3300;
    text-align: justify;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.vulgate-verse-number {
    font-weight: bold;
    margin-right: 5px;
}
}

Latest revision as of 23:10, 4 September 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;
}
@font-face {
  font-family: 'Morris Initials';
  /* Corrected src path to match the actual filename with a space */
  src: url('/resources/fonts/Morris Initials.ttf') format('truetype');
}
.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 */
}
/* Styling for Essentia Semantic Graph */
.essentia-graph {
    background-color: #000000; /* Black background */
    color: #00FF00; /* Green text */
    font-family: "Courier New", monospace;
    border: 1px solid #00FF00;
    padding: 0.5em;
    box-shadow: 0 0 8px #00FF00; /* CRT glow */
    margin-top: 1em;
    width: 100%;
    max-width: 800px;
    height: 400px;
    box-sizing: border-box;
}
.essentia-graph svg {
    background-color: #000000;
    width: 100%;
    height: 100%;
}
@media screen and (prefers-color-scheme: dark) {
    .essentia-graph, .essentia-graph svg {
        background-color: #111111; /* Near-black for dark mode */
        color: #00FF00;
        box-shadow: 0 0 8px #00FF00;
    }
}
@media screen and (max-width: 600px) {
    .essentia-graph {
        max-width: 100%;
        height: 300px; /* Smaller height for mobile */
    }
}

/* --- Final Vulgate CSS --- */
/* --- Final Vulgate CSS --- */
@font-face {
  font-family: 'Bilbo Swash Caps';
  src: url('/w/images/BilboSwashCaps-Regular.ttf') format('truetype');
}
.vulgate-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 3em auto;
}
.vulgate-parchment {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: 2px 3px 20px rgba(0, 0, 0, 0.5), 0 0 125px #8f5922 inset;
    background: #fffef0;
    filter: url(#wavy2);
    background-image: url('/w/images/Parchment-texture.png');
}
.vulgate-content {
    position: relative;
    padding: 2em 3em;
    font-family: 'Bilbo Swash Caps', 'Palatino Linotype', cursive;
    font-size: 1.5em;
    line-height: 1.8;
    color: #7F3300;
    text-align: justify;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.vulgate-verse-number {
    font-weight: bold;
    margin-right: 5px;
}