|
|
| (17 intermediate revisions by the same user not shown) |
| Line 3: |
Line 3: |
| font-size: 4em; | | font-size: 4em; |
| } | | } |
| .lore-spotlight-widget { | | .emoji-trigger-wrap { margin-bottom: .5rem; } |
| background: #001933;
| | #emoji-trigger { margin-right: .5rem; } |
| 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 */
| |
| }
| |
| /* 1) Let the content column actually shrink (flexbox gotcha) */
| |
| .continuum-body { min-width: 0; }
| |
| | |
| /* 2) Any table in the content should respect the container */
| |
| .continuum-body table {
| |
| width: 100%;
| |
| max-width: 100%;
| |
| border-collapse: collapse;
| |
| box-sizing: border-box;
| |
| }
| |
| | |
| /* 3) Cells: allow wrapping of long stuff */
| |
| .continuum-body table th,
| |
| .continuum-body table td {
| |
| min-width: 0; /* crucial with table-layout:fixed */
| |
| white-space: normal; /* kill any stray nowraps */
| |
| overflow-wrap: anywhere; /* modern break for long tokens */
| |
| word-break: break-word; /* fallback */
| |
| }
| |
| | |
| /* 4) Common offenders inside cells */
| |
| .continuum-body table a,
| |
| .continuum-body table code,
| |
| .continuum-body table .nowrap,
| |
| .continuum-body table .mw-usertoollinks,
| |
| .continuum-body table .mw-parser-output .nowrap {
| |
| white-space: normal !important;
| |
| overflow-wrap: anywhere;
| |
| word-break: break-word;
| |
| }
| |
| | |
| /* 5) Images/thumbs shrink with the cell */
| |
| .continuum-body table img {
| |
| max-width: 100%;
| |
| height: auto;
| |
| object-fit: contain;
| |
| display: block;
| |
| }
| |
| | |
| /* 6) Safety: horizontally scroll if something truly can’t shrink (e.g., embedded iframes) */
| |
| .continuum-body { overflow-x: auto; }
| |
| | |
| /* 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;
| |
| }
| |
| | |
| /* If this is the ListFiles thumb column, keep it narrow (adjust nth-child if needed) */
| |
| 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;
| |
| }
| |
| | |
| /* 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,
| |
| .continuum-body fieldset .oo-ui-widget {
| |
| max-width: 100%;
| |
| }
| |
| | |
| /* Special:ListFiles niceties (if the table is inside this fieldset) */
| |
| body.page-Special_ListFiles .mw-datatable.listfiles { table-layout: fixed; }
| |
| 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;
| |
| }
| |
| /* Stop RecentChanges rows from hogging width */
| |
| body.page-Special_RecentChanges .mw-changeslist-line-inner {
| |
| display: block; /* break out of the table-cell style */
| |
| min-width: 0; /* let it shrink */
| |
| max-width: 100%; /* never wider than the container */
| |
| white-space: normal; /* undo nowrap */
| |
| overflow-wrap: anywhere; /* modern wrapping */
| |
| word-break: break-word; /* fallback for old browsers */
| |
| box-sizing: border-box; /* widths behave predictably */
| |
| } | |