Jump to content

MediaWiki:Common.css: Difference between revisions

From Continuum Universes Wiki
Cdjensen94
Cdjensen94 (talk | contribs) (Created page with "================================ 🌟 BASE.CSS - Continuum Skin Uses Variables from Mode-Specific CSS ================================: Import Google Fonts: @import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&family=Metamorphous&display=swap'); === Typography ===: .bona-nova-regular { font-family: "Bona Nova", serif; font-weight: 400; font-style: normal; } .bona-nova-bold { font-family: "Bona Nova", serif;...")
 
 
(143 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ================================
.welcome {
  🌟 BASE.CSS - Continuum Skin
text-align: center;
  Uses Variables from Mode-Specific CSS
font-size: 4em;
  ================================ */
 
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&family=Metamorphous&display=swap');
 
/* === Typography === */
.bona-nova-regular { font-family: "Bona Nova", serif; font-weight: 400; font-style: normal; }
.bona-nova-bold { font-family: "Bona Nova", serif; font-weight: 700; font-style: normal; }
.bona-nova-regular-italic { font-family: "Bona Nova", serif; font-weight: 400; font-style: italic; }
.metamorphous-regular { font-family: "Metamorphous", serif; font-style: normal; }
 
/* === Global Variables (Defined in -mode.css) === */
:root, .skin-continuum, .notheme {
    /* Color Variables */
    --color-text-primary: var(--color-base, #FFFFFF);
    --color-text-secondary: var(--color-base--hover, #FFB84D);
    --color-text-emphasized: var(--color-emphasized, #FFFFFF);
    --color-text-muted: var(--color-subtle, #FF851B);
    --color-placeholder: var(--color-placeholder, #FFB84D);
    --color-link: var(--color-progressive, #FF851B);
    --color-link-hover: var(--color-progressive--hover, #FFB84D);
    --color-link-active: var(--color-progressive--active, #FF6300);
    --color-link-focus: var(--color-progressive--focus, #FF851B);
    --color-error: var(--color-error, #FF4500);
    --color-success: var(--color-success, #177860);
    --color-warning: var(--color-warning, #FFB84D);
 
    /* Background Variables */
    --background-primary: var(--background-color-base, #001F3F);
    --background-secondary: var(--background-color-neutral, #002855);
    --background-tertiary: var(--background-color-neutral-subtle, #001933);
    --background-interactive: var(--background-color-interactive, #002B5C);
    --background-inverted: var(--background-color-inverted, #101418);
 
    /* Borders */
    --border-primary: var(--border-color-base, #FF851B);
    --border-hover: var(--border-color-progressive--hover, #FFB84D);
    --border-active: var(--border-color-progressive--active, #FF6300);
    --border-error: var(--border-color-error, #FF4500);
 
    /* Shadows */
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
 
    /* Opacity */
    --opacity-disabled: 0.5;
}
}
 
.lore-spotlight-widget {
/* === General Body === */
     background: #001933;
body {
     border: 1px solid #FF6300;
    margin: 0;
     padding: 0.75em;
    padding: 0;
     margin: 1em 0;
    background-color: var(--background-primary);
     font-style: italic;
    color: var(--color-text-primary);
    font-family: 'Bona Nova', serif;
}
 
/* === Headers === */
h1, h2, h3, h4, h5, h6 {
     font-family: 'Metamorphous', cursive;
     color: var(--color-link-active);
}
 
/* === Links === */
a {
     color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s ease;
}
 
a:hover {
     color: var(--color-link-hover);
     text-decoration: underline;
}
 
/* === Personal User Links === */
#p-personal {
    background-color: var(--background-tertiary);
     border-radius: 4px;
     border-radius: 4px;
    padding: 4px 8px;
}
}
 
.mw-datatable th {
#p-personal li {
     background-color: var(--color-accent-navy);
     display: inline-block;
    margin-left: 8px;
}
}


#p-personal a {
/* Let user tool links wrap instead of forcing one line */
    color: var(--color-link);
.mw-usertoollinks {
    font-weight: bold;
  white-space: normal !important;  /* undo the nowrap */
  overflow-wrap: anywhere;        /* modern browsers */
  word-break: break-word;         /* fallback */
  display: inline-block;           /* makes wrapping cleaner inside cells */
}
}
 
/* 7) Special:ListFiles specifics you already touched, but keep them here for consistency */
#p-personal a:hover {
body.page-Special_ListFiles .mw-datatable.listfiles { table-layout: fixed; }
    color: var(--color-link-hover);
body.page-Special_ListFiles .mw-datatable.listfiles td.TablePager_col_thumb img { max-width: 100%; height: auto; }
body.page-Special_ListFiles .mw-usertoollinks { white-space: normal !important; overflow-wrap: anywhere; }
/* FIELDSET: allow shrinking, no scrollbars */
.continuum-body fieldset {
  min-width: 0;          /* crucial in flex layouts */
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: visible;   /* you said no scrolling */
}
}


/* === Main Structure === */
/* LEGEND shouldn’t inflate width */
.mw-header {
.continuum-body fieldset > legend {
    background-color: var(--background-secondary);
  display: block;
    border-bottom: 3px solid var(--border-primary);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}


#mw-panel {
/* TABLE should fit container and wrap content */
    background-color: var(--background-secondary);
.continuum-body fieldset table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;      /* enables predictable wrapping */
  border-collapse: collapse;
  box-sizing: border-box;
}
}


#content {
/* CELLS: wrap, don’t grow the table */
    background-color: var(--background-tertiary);
.continuum-body fieldset table th,
    border: 1px solid var(--border-primary);
.continuum-body fieldset table td {
    padding: 20px;
  min-width: 0;             /* lets fixed layout actually shrink */
    color: var(--color-text-primary);
  white-space: normal;     /* kill any nowraps */
  overflow-wrap: anywhere; /* modern long-word wrap */
  word-break: break-word;   /* fallback for older browsers */
}
}


.mw-body {
/* Usual offenders inside cells: links, codey bits, “nowrap” classes, user tools */
    background-color: var(--background-primary);
.continuum-body fieldset table a,
.continuum-body fieldset table code,
.continuum-body fieldset table .nowrap,
.continuum-body fieldset table .mw-usertoollinks,
.continuum-body fieldset table .mw-sha1,
.continuum-body fieldset table .mime-type {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}


/* === Table of Contents (TOC) === */
/* Images/Thumbs must shrink with the cell */
#toc {
.continuum-body fieldset table img {
    background-color: var(--background-interactive);
  max-width: 100%;
    border: 2px solid var(--border-primary);
  height: auto;
    border-radius: 8px;
  object-fit: contain;
    padding: 10px;
  display: block;
    color: var(--color-text-primary);
}
}


#toc h2 {
/* ===== Special:Upload (and its stash step) ===== */
    font-family: 'Metamorphous', cursive;
body.page-Special_Upload .continuum-body,
    color: var(--color-link-active);
body.page-Special_UploadStash .continuum-body {
  min-width: 0;
  max-width: 100%;
}
}


#toc a {
/* Fieldsets & forms on Upload */
    color: var(--color-link);
body.page-Special_Upload .continuum-body fieldset,
body.page-Special_UploadStash .continuum-body fieldset {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible; /* no scrollbars, make it fit */
}
}


#toc a:hover {
body.page-Special_Upload .continuum-body fieldset > legend,
    color: var(--color-link-hover);
body.page-Special_UploadStash .continuum-body fieldset > legend {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 .25em 0;
}
}


/* === Buttons === */
/* Tables/forms inside Upload */
.mw-ui-button {
body.page-Special_Upload .continuum-body table,
    background-color: var(--color-link);
body.page-Special_UploadStash .continuum-body table {
    color: var(--color-text-primary);
  width: 100%;
    border: none;
  max-width: 100%;
    padding: 8px 16px;
  table-layout: fixed;
    border-radius: 4px;
  border-collapse: collapse;
    cursor: pointer;
  box-sizing: border-box;
    transition: background-color 0.3s ease;
}
}
 
body.page-Special_Upload .continuum-body th,
.mw-ui-button:hover {
body.page-Special_Upload .continuum-body td,
    background-color: var(--color-link-hover);
body.page-Special_UploadStash .continuum-body th,
body.page-Special_UploadStash .continuum-body td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}
 
body.page-Special_Upload .continuum-body img,
/* === Notifications & Alerts === */
body.page-Special_UploadStash .continuum-body img {
.mw-notice {
  max-width: 100%;
    background-color: var(--background-secondary);
  height: auto;
    color: var(--color-text-primary);
  display: block;
    border-left: 4px solid var(--border-primary);
    padding: 8px;
    border-radius: 4px;
}
}


.mw-warning {
/* ===== Special:ListFiles ===== */
    background-color: var(--color-warning);
body.page-Special_ListFiles .continuum-body { min-width: 0; max-width: 100%; }
    color: var(--background-primary);
}


.mw-error {
body.page-Special_ListFiles .mw-datatable.listfiles {
    background-color: var(--color-error);
  width: 100%;
    color: var(--color-text-primary);
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
}
 
body.page-Special_ListFiles .mw-datatable.listfiles th,
/* === Code Editors (Ace & CodeMirror) === */
body.page-Special_ListFiles .mw-datatable.listfiles td {
.ace_editor, .CodeMirror {
  min-width: 0;
    background-color: var(--background-tertiary);
  white-space: normal;
    color: var(--color-text-primary);
  overflow-wrap: anywhere;
    border: 1px solid var(--border-primary);
  word-break: break-word;
    border-radius: 4px;
}
}


/* Syntax Highlighting */
/* Thumbnails column stays narrow; images shrink to fit */
.ace_keyword, .cm-keyword { color: var(--color-link); font-weight: bold; }
body.page-Special_ListFiles .mw-datatable.listfiles td.TablePager_col_thumb,
.ace_string, .cm-string { color: #7FDBFF; }
body.page-Special_ListFiles .mw-datatable.listfiles th.TablePager_col_thumb { width: 120px; }
.ace_comment, .cm-comment { color: #AAAAAA; font-style: italic; }
body.page-Special_ListFiles .mw-datatable.listfiles td.TablePager_col_thumb img {
.ace_variable, .cm-variable { color: #FFD700; }
  max-width: 100%;
.ace_error, .cm-error { text-decoration: underline; text-decoration-color: var(--color-error); }
  height: auto;
 
  object-fit: contain;
/* Cursor & Selection */
  display: block;
.CodeMirror-cursor { border-left: 1px solid var(--color-link); }
.CodeMirror-selected { background-color: rgba(255, 133, 27, 0.3); }
 
/* === Scrollbar === */
::-webkit-scrollbar {
    width: 12px;
}
}


::-webkit-scrollbar-track {
/* Usual overflow goblins on ListFiles only */
    background: var(--background-primary);
body.page-Special_ListFiles .mw-usertoollinks,
body.page-Special_ListFiles .mw-datatable.listfiles .mw-sha1,
body.page-Special_ListFiles .mw-datatable.listfiles .mime-type,
body.page-Special_ListFiles .mw-datatable.listfiles .nowrap,
body.page-Special_ListFiles .mw-datatable.listfiles a,
body.page-Special_ListFiles .mw-datatable.listfiles code {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}


::-webkit-scrollbar-thumb {
    background-color: var(--color-link);
    border-radius: 10px;
    border: 3px solid var(--background-primary);
}


::-webkit-scrollbar-thumb:hover {
/* Preformatted chunks (sometimes appear in tables) should wrap too */
    background-color: var(--color-link-hover);
.continuum-body fieldset table pre,
.continuum-body fieldset table .mw-code {
  white-space: pre-wrap;
  word-break: break-word;
}
}
 
/* ===== Fieldset containment: no overflow, no scroll, everything fits ===== */
/* === Navbar === */
.continuum-body fieldset {
#top-navbar {
  position: relative;    /* keeps abs-pos kids referenced here */
    background-color: var(--background-interactive);
  min-width: 0;           /* flex/grid shrinking allowed */
     border-bottom: 3px solid var(--border-primary);
  max-width: 100%;
    padding: 10px 20px;
  box-sizing: border-box;
    display: flex;
  overflow: visible;     /* no scrollbars, no clipping */
    align-items: center;
  padding-top: .75em;    /* legend breathing room */
    justify-content: space-between;
    position: sticky;
    top: 0;
     z-index: 999;
    box-shadow: var(--box-shadow);
}
}
 
.continuum-body fieldset > legend {
.navbar-logo a {
  display: block;
    font-family: 'Metamorphous', cursive;
  max-width: 100%;
    color: var(--color-link);
  white-space: normal;
    font-size: 1.5em;
  overflow-wrap: anywhere;
    text-decoration: none;
  word-break: break-word;
  margin: 0 0 .25em 0;
}
}


.navbar-links a {
/* Universal “be nice” rules for descendants */
    color: var(--color-text-primary);
.continuum-body fieldset * {
    text-decoration: none;
  box-sizing: border-box;   /* widths include padding */
    font-weight: bold;
  min-width: 0;             /* critical for flex descendants */
}
}


.navbar-links a:hover {
/* Text and links: wrap instead of stretching */
    color: var(--color-link-hover);
.continuum-body fieldset,
.continuum-body fieldset .mw-parser-output,
.continuum-body fieldset a,
.continuum-body fieldset code,
.continuum-body fieldset .nowrap,
.continuum-body fieldset .mw-usertoollinks,
.continuum-body fieldset .mw-sha1,
.continuum-body fieldset .mime-type {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
}


/* === Responsive Navbar === */
/* Pre/code blocks that otherwise run off the edge */
@media screen and (max-width: 768px) {
.continuum-body fieldset pre,
    #top-navbar {
.continuum-body fieldset .mw-code {
        flex-direction: column;
  white-space: pre-wrap;    /* preserve formatting, allow wrap */
        align-items: flex-start;
  overflow-wrap: anywhere;
    }
 
    .navbar-links {
        flex-direction: column;
        width: 100%;
     }
 
    .navbar-links li {
        margin: 10px 0;
    }
}
}


/* === Infobox === */
/* Tables: fill container and wrap cells */
.infobox {
.continuum-body fieldset table {
    border: 2px solid var(--border-primary);
  width: 100%;
    background-color: var(--background-interactive);
  max-width: 100%;
    color: var(--color-text-primary);
  table-layout: fixed;       /* predictable widths + wrapping */
    width: 250px;
  border-collapse: collapse;
    font-size: 90%;
    float: right;
    margin: 0 0 1em 1em;
    padding: 10px;
    border-radius: 8px;
}
}
 
.continuum-body fieldset table th,
.infobox th {
.continuum-body fieldset table td {
    background-color: var(--background-secondary);
  min-width: 0;
    color: var(--color-text-secondary);
  white-space: normal;
    text-align: center;
  overflow-wrap: anywhere;
    border-bottom: 1px solid var(--border-primary);
  word-break: break-word;
}
}


.infobox td {
/* Media shrink to fit */
    padding: 5px;
.continuum-body fieldset img,
    border-top: 1px solid var(--border-primary);
.continuum-body fieldset svg,
.continuum-body fieldset video,
.continuum-body fieldset canvas,
.continuum-body fieldset audio {
  max-width: 100%;
  height: auto;
  display: block;
}
}


.infobox caption {
/* Iframes & embeds: make them fluid (set aspect-ratio if you know it) */
    font-family: 'Metamorphous', cursive;
.continuum-body fieldset iframe,
    font-size: 1.2em;
.continuum-body fieldset embed,
    color: var(--color-text-secondary);
.continuum-body fieldset object {
    text-align: center;
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* adjust per your content, prevents goofy heights */
}
}


/* === Images === */
/* Forms & OOUI controls: never overflow narrow containers */
img {
.continuum-body fieldset input,
    display: block;
.continuum-body fieldset select,
    width: auto;
.continuum-body fieldset textarea,
    height: auto;
.continuum-body fieldset button {
    max-width: 100%;
  max-width: 100%;
    max-height: 100%;
    opacity: 1;
    border: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
}
 
/* VE overlays live outside your content column: don't force wrapping there */
img:hover {
html.ve-activated .ve-ui-overlay-global *,
    opacity: 0.9;
html.ve-activated .oo-ui-defaultOverlay * {
  /* Restore normal text behavior inside VE/OOUI */
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  min-width: 0;            /* allow flex children to shrink */
  box-sizing: border-box;
}
}


/* SVG Glow */
/* Buttons should never wrap letter-by-letter */
img[src$=".svg"] {
html.ve-activated .ve-ui-overlay-global .oo-ui-buttonElement .oo-ui-labelElement-label,
    filter: drop-shadow(0 0 5px rgba(255, 133, 27, 0.7));
html.ve-activated .oo-ui-defaultOverlay .oo-ui-buttonElement .oo-ui-labelElement-label {
  white-space: nowrap !important;
}
}


/* === Icons === */
/* VE template search results menu: give it breathable height */
.continuum-icon {
html.ve-activated .ve-ui-overlay-global .oo-ui-menuSelectWidget .oo-ui-menuSelectWidget-menu,
    background-color: #FFB800;
html.ve-activated .oo-ui-defaultOverlay .oo-ui-menuSelectWidget .oo-ui-menuSelectWidget-menu {
  max-height: 60vh;          /* visible results */
  overflow-y: auto;
}
}


/* === Editing Interface === */
/* Don’t force fixed table layout inside dialogs (some widgets use tables) */
.mw-editinginterface {
html.ve-activated .ve-ui-overlay-global table,
    color: var(--color-text-primary);
html.ve-activated .oo-ui-defaultOverlay table {
  table-layout: auto !important;
}
}
 
input#title {
.cdx-message--error {
     background-color: var(--background-color-base);
     background-color: var(--background-primary);
     color: var(--color-emphasized);
}
     margin: 0;
 
.vehide {
     display: none;
}
#theme-switcher-container {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
}
 
#theme-switcher {
     padding: 5px;
    border-radius: 4px;
     border: 1px solid var(--border-color-base);
     border: 1px solid var(--border-color-base);
    background-color: var(--background-color-neutral);
    color: var(--color-base);
}
/* CSS placed here will be app/* ================================
  🌟 BASE.CSS - Continuum Skin
  Uses Variables from Mode-Specific CSS
  ================================ */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&family=Metamorphous&display=swap');
/* === Typography === */
.bona-nova-regular { font-family: "Bona Nova", serif; font-weight: 400; font-style: normal; }
.bona-nova-bold { font-family: "Bona Nova", serif; font-weight: 700; font-style: normal; }
.bona-nova-regular-italic { font-family: "Bona Nova", serif; font-weight: 400; font-style: italic; }
.metamorphous-regular { font-family: "Metamorphous", serif; font-style: normal; }
/* === Global Variables (Defined in -mode.css) === */
:root, .skin-continuum, .notheme {
    /* Color Variables */
    --color-text-primary: var(--color-base, #FFFFFF);
    --color-text-secondary: var(--color-base--hover, #FFB84D);
    --color-text-emphasized: var(--color-emphasized, #FFFFFF);
    --color-text-muted: var(--color-subtle, #FF851B);
    --color-placeholder: var(--color-placeholder, #FFB84D);
    --color-link: var(--color-progressive, #FF851B);
    --color-link-hover: var(--color-progressive--hover, #FFB84D);
    --color-link-active: var(--color-progressive--active, #FF6300);
    --color-link-focus: var(--color-progressive--focus, #FF851B);
    --color-error: var(--color-error, #FF4500);
    --color-success: var(--color-success, #177860);
    --color-warning: var(--color-warning, #FFB84D);
    /* Background Variables */
    --background-primary: var(--background-color-base, #001F3F);
    --background-secondary: var(--background-color-neutral, #002855);
    --background-tertiary: var(--background-color-neutral-subtle, #001933);
    --background-interactive: var(--background-color-interactive, #002B5C);
    --background-inverted: var(--background-color-inverted, #101418);
    /* Borders */
    --border-primary: var(--border-color-base, #FF851B);
    --border-hover: var(--border-color-progressive--hover, #FFB84D);
    --border-active: var(--border-color-progressive--active, #FF6300);
    --border-error: var(--border-color-error, #FF4500);
    /* Shadows */
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Opacity */
    --opacity-disabled: 0.5;
}
/* === General Body === */
body {
    margin: 0;
    padding: 0;
    background-color: var(--background-primary);
    color: var(--color-text-primary);
    font-family: 'Bona Nova', serif;
}
/* === Headers === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Metamorphous', cursive;
    color: var(--color-link-active);
}
/* === Links === */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}
/* === Personal User Links === */
#p-personal {
    background-color: var(--background-tertiary);
    border-radius: 4px;
    padding: 4px 8px;
}
#p-personal li {
    display: inline-block;
    margin-left: 8px;
}
#p-personal a {
    color: var(--color-link);
    font-weight: bold;
}
#p-personal a:hover {
    color: var(--color-link-hover);
}
/* === Main Structure === */
.mw-header {
    background-color: var(--background-secondary);
    border-bottom: 3px solid var(--border-primary);
}
#mw-panel {
    background-color: var(--background-secondary);
}
#content {
    background-color: var(--background-tertiary);
    border: 1px solid var(--border-primary);
    padding: 20px;
    color: var(--color-text-primary);
}
.mw-body {
    background-color: var(--background-primary);
}
/* === Table of Contents (TOC) === */
#toc {
    background-color: var(--background-interactive);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    padding: 10px;
    color: var(--color-text-primary);
}
#toc h2 {
    font-family: 'Metamorphous', cursive;
    color: var(--color-link-active);
}
#toc a {
    color: var(--color-link);
}
#toc a:hover {
    color: var(--color-link-hover);
}
/* === Buttons === */
.mw-ui-button {
    background-color: var(--color-link);
    color: var(--color-text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.mw-ui-button:hover {
    background-color: var(--color-link-hover);
}
/* === Notifications & Alerts === */
.mw-notice {
    background-color: var(--background-secondary);
    color: var(--color-text-primary);
    border-left: 4px solid var(--border-primary);
    padding: 8px;
    border-radius: 4px;
}
.mw-warning {
    background-color: var(--color-warning);
    color: var(--background-primary);
}
.mw-error {
    background-color: var(--color-error);
    color: var(--color-text-primary);
}
/* === Code Editors (Ace & CodeMirror) === */
.ace_editor, .CodeMirror {
    background-color: var(--background-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
}
/* Syntax Highlighting */
.ace_keyword, .cm-keyword { color: var(--color-link); font-weight: bold; }
.ace_string, .cm-string { color: #7FDBFF; }
.ace_comment, .cm-comment { color: #AAAAAA; font-style: italic; }
.ace_variable, .cm-variable { color: #FFD700; }
.ace_error, .cm-error { text-decoration: underline; text-decoration-color: var(--color-error); }
/* Cursor & Selection */
.CodeMirror-cursor { border-left: 1px solid var(--color-link); }
.CodeMirror-selected { background-color: rgba(255, 133, 27, 0.3); }
/* === Scrollbar === */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--background-primary);
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-link);
    border-radius: 10px;
    border: 3px solid var(--background-primary);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-link-hover);
}
/* === Navbar === */
#top-navbar {
    background-color: var(--background-interactive);
    border-bottom: 3px solid var(--border-primary);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--box-shadow);
}
.navbar-logo a {
    font-family: 'Metamorphous', cursive;
    color: var(--color-link);
    font-size: 1.5em;
    text-decoration: none;
}
.navbar-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: bold;
}
.navbar-links a:hover {
    color: var(--color-link-hover);
}
/* === Responsive Navbar === */
@media screen and (max-width: 768px) {
    #top-navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-links {
        flex-direction: column;
        width: 100%;
    }
    .navbar-links li {
        margin: 10px 0;
    }
}
/* === Infobox === */
.infobox {
    border: 2px solid var(--border-primary);
    background-color: var(--background-interactive);
    color: var(--color-text-primary);
    width: 250px;
    font-size: 90%;
    float: right;
    margin: 0 0 1em 1em;
    padding: 10px;
     border-radius: 8px;
     border-radius: 8px;
    padding: 5px 8px;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.42857143em;
}
}
 
.create-title {
.infobox th {
color: #FFF;
    background-color: var(--background-secondary);
    color: var(--color-text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
}
 
.infobox td {
    padding: 5px;
    border-top: 1px solid var(--border-primary);
}
}
 
div.copyright-warning p {
.infobox caption {
color: #FFF;
    font-family: 'Metamorphous', cursive;
    font-size: 1.2em;
    color: var(--color-text-secondary);
    text-align: center;
}
}
 
#blog-page-right {
/* === Images === */
background-color: var(--color-accent-navy);
img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    opacity: 1;
    border: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
 
img:hover {
    opacity: 0.9;
}
 
/* SVG Glow */
img[src$=".svg"] {
    filter: drop-shadow(0 0 5px rgba(255, 133, 27, 0.7));
}
 
/* === Icons === */
.continuum-icon {
    background-color: #FFB800;
}
 
/* === Editing Interface === */
.mw-editinginterface {
    color: var(--color-text-primary);
}
 
.cdx-message--error {
    background-color: var(--background-primary);
}
 
.vehide {
    display: none;
}
#theme-switcher-container {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
}
 
#theme-switcher {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--border-color-base);
    background-color: var(--background-color-neutral);
    color: var(--color-base);
}
}

Latest revision as of 10:12, 27 August 2025

.welcome {
	text-align: center;
	font-size: 4em;
}
.lore-spotlight-widget {
    background: #001933;
    border: 1px solid #FF6300;
    padding: 0.75em;
    margin: 1em 0;
    font-style: italic;
    border-radius: 4px;
}
.mw-datatable th {
    background-color: var(--color-accent-navy);
}

/* Let user tool links wrap instead of forcing one line */
.mw-usertoollinks {
  white-space: normal !important;  /* undo the nowrap */
  overflow-wrap: anywhere;         /* modern browsers */
  word-break: break-word;          /* fallback */
  display: inline-block;           /* makes wrapping cleaner inside cells */
}
/* 7) Special:ListFiles specifics you already touched, but keep them here for consistency */
body.page-Special_ListFiles .mw-datatable.listfiles { table-layout: fixed; }
body.page-Special_ListFiles .mw-datatable.listfiles td.TablePager_col_thumb img { max-width: 100%; height: auto; }
body.page-Special_ListFiles .mw-usertoollinks { white-space: normal !important; overflow-wrap: anywhere; }
/* FIELDSET: allow shrinking, no scrollbars */
.continuum-body fieldset {
  min-width: 0;          /* crucial in flex layouts */
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: visible;   /* you said no scrolling */
}

/* LEGEND shouldn’t inflate width */
.continuum-body fieldset > legend {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* TABLE should fit container and wrap content */
.continuum-body fieldset table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;      /* enables predictable wrapping */
  border-collapse: collapse;
  box-sizing: border-box;
}

/* CELLS: wrap, don’t grow the table */
.continuum-body fieldset table th,
.continuum-body fieldset table td {
  min-width: 0;             /* lets fixed layout actually shrink */
  white-space: normal;      /* kill any nowraps */
  overflow-wrap: anywhere;  /* modern long-word wrap */
  word-break: break-word;   /* fallback for older browsers */
}

/* Usual offenders inside cells: links, codey bits, “nowrap” classes, user tools */
.continuum-body fieldset table a,
.continuum-body fieldset table code,
.continuum-body fieldset table .nowrap,
.continuum-body fieldset table .mw-usertoollinks,
.continuum-body fieldset table .mw-sha1,
.continuum-body fieldset table .mime-type {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Images/Thumbs must shrink with the cell */
.continuum-body fieldset table img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== Special:Upload (and its stash step) ===== */
body.page-Special_Upload .continuum-body,
body.page-Special_UploadStash .continuum-body {
  min-width: 0;
  max-width: 100%;
}

/* Fieldsets & forms on Upload */
body.page-Special_Upload .continuum-body fieldset,
body.page-Special_UploadStash .continuum-body fieldset {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible; /* no scrollbars, make it fit */
}

body.page-Special_Upload .continuum-body fieldset > legend,
body.page-Special_UploadStash .continuum-body fieldset > legend {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 .25em 0;
}

/* Tables/forms inside Upload */
body.page-Special_Upload .continuum-body table,
body.page-Special_UploadStash .continuum-body table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  box-sizing: border-box;
}
body.page-Special_Upload .continuum-body th,
body.page-Special_Upload .continuum-body td,
body.page-Special_UploadStash .continuum-body th,
body.page-Special_UploadStash .continuum-body td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.page-Special_Upload .continuum-body img,
body.page-Special_UploadStash .continuum-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Special:ListFiles ===== */
body.page-Special_ListFiles .continuum-body { min-width: 0; max-width: 100%; }

body.page-Special_ListFiles .mw-datatable.listfiles {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
body.page-Special_ListFiles .mw-datatable.listfiles th,
body.page-Special_ListFiles .mw-datatable.listfiles td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Thumbnails column stays narrow; images shrink to fit */
body.page-Special_ListFiles .mw-datatable.listfiles td.TablePager_col_thumb,
body.page-Special_ListFiles .mw-datatable.listfiles th.TablePager_col_thumb { width: 120px; }
body.page-Special_ListFiles .mw-datatable.listfiles td.TablePager_col_thumb img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Usual overflow goblins on ListFiles only */
body.page-Special_ListFiles .mw-usertoollinks,
body.page-Special_ListFiles .mw-datatable.listfiles .mw-sha1,
body.page-Special_ListFiles .mw-datatable.listfiles .mime-type,
body.page-Special_ListFiles .mw-datatable.listfiles .nowrap,
body.page-Special_ListFiles .mw-datatable.listfiles a,
body.page-Special_ListFiles .mw-datatable.listfiles code {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Preformatted chunks (sometimes appear in tables) should wrap too */
.continuum-body fieldset table pre,
.continuum-body fieldset table .mw-code {
  white-space: pre-wrap;
  word-break: break-word;
}
/* ===== Fieldset containment: no overflow, no scroll, everything fits ===== */
.continuum-body fieldset {
  position: relative;     /* keeps abs-pos kids referenced here */
  min-width: 0;           /* flex/grid shrinking allowed */
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;      /* no scrollbars, no clipping */
  padding-top: .75em;     /* legend breathing room */
}
.continuum-body fieldset > legend {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 .25em 0;
}

/* Universal “be nice” rules for descendants */
.continuum-body fieldset * {
  box-sizing: border-box;   /* widths include padding */
  min-width: 0;             /* critical for flex descendants */
}

/* Text and links: wrap instead of stretching */
.continuum-body fieldset,
.continuum-body fieldset .mw-parser-output,
.continuum-body fieldset a,
.continuum-body fieldset code,
.continuum-body fieldset .nowrap,
.continuum-body fieldset .mw-usertoollinks,
.continuum-body fieldset .mw-sha1,
.continuum-body fieldset .mime-type {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Pre/code blocks that otherwise run off the edge */
.continuum-body fieldset pre,
.continuum-body fieldset .mw-code {
  white-space: pre-wrap;     /* preserve formatting, allow wrap */
  overflow-wrap: anywhere;
}

/* Tables: fill container and wrap cells */
.continuum-body fieldset table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;       /* predictable widths + wrapping */
  border-collapse: collapse;
}
.continuum-body fieldset table th,
.continuum-body fieldset table td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Media shrink to fit */
.continuum-body fieldset img,
.continuum-body fieldset svg,
.continuum-body fieldset video,
.continuum-body fieldset canvas,
.continuum-body fieldset audio {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Iframes & embeds: make them fluid (set aspect-ratio if you know it) */
.continuum-body fieldset iframe,
.continuum-body fieldset embed,
.continuum-body fieldset object {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* adjust per your content, prevents goofy heights */
}

/* Forms & OOUI controls: never overflow narrow containers */
.continuum-body fieldset input,
.continuum-body fieldset select,
.continuum-body fieldset textarea,
.continuum-body fieldset button {
  max-width: 100%;
}
/* VE overlays live outside your content column: don't force wrapping there */
html.ve-activated .ve-ui-overlay-global *,
html.ve-activated .oo-ui-defaultOverlay * {
  /* Restore normal text behavior inside VE/OOUI */
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  min-width: 0;             /* allow flex children to shrink */
  box-sizing: border-box;
}

/* Buttons should never wrap letter-by-letter */
html.ve-activated .ve-ui-overlay-global .oo-ui-buttonElement .oo-ui-labelElement-label,
html.ve-activated .oo-ui-defaultOverlay .oo-ui-buttonElement .oo-ui-labelElement-label {
  white-space: nowrap !important;
}

/* VE template search results menu: give it breathable height */
html.ve-activated .ve-ui-overlay-global .oo-ui-menuSelectWidget .oo-ui-menuSelectWidget-menu,
html.ve-activated .oo-ui-defaultOverlay .oo-ui-menuSelectWidget .oo-ui-menuSelectWidget-menu {
  max-height: 60vh;          /* visible results */
  overflow-y: auto;
}

/* Don’t force fixed table layout inside dialogs (some widgets use tables) */
html.ve-activated .ve-ui-overlay-global table,
html.ve-activated .oo-ui-defaultOverlay table {
  table-layout: auto !important;
}
input#title {
    background-color: var(--background-color-base);
    color: var(--color-emphasized);
    margin: 0;
    border: 1px solid var(--border-color-base);
    border-radius: 8px;
    padding: 5px 8px;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.42857143em;
}
.create-title {
	color: #FFF;
}
div.copyright-warning p {
	color: #FFF;
}
#blog-page-right {
	background-color: var(--color-accent-navy);
}