|
|
| (42 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;
| | /* --- VoteNY: render as 👍1 --- */ |
| padding: 0.75em;
| | .vote-box { |
| margin: 1em 0;
| | background-color: transparent; /* remove green box */ |
| 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%;
| |
| table-layout: fixed; /* enables wrapping based on cell width */
| |
| 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; | | height: auto; |
| object-fit: contain; | | width: auto; |
| display: block; | | padding: 0; |
| | display: inline-block !important; |
| | align-items: center; |
| } | | } |
|
| |
|
| /* 6) Safety: horizontally scroll if something truly can’t shrink (e.g., embedded iframes) */
| | #PollVotes.vote-number { |
| .continuum-body { overflow-x: auto; }
| | color: inherit; /* stop forcing white */ |
| | | display: inline-block !important; |
| /* 7) Special:ListFiles specifics you already touched, but keep them here for consistency */ | | background-color: transparent; |
| body.page-Special_ListFiles .mw-datatable.listfiles { table-layout: fixed; }
| | font-size: var(--font-size-medium) !important; |
| body.page-Special_ListFiles .mw-datatable.listfiles td.TablePager_col_thumb img { max-width: 100%; height: auto; }
| | font-weight: 600; |
| 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 */ | |
| } | | } |
| | | .vote-box::before { |
| /* LEGEND shouldn’t inflate width */
| | content: "👍"; |
| .continuum-body fieldset > legend { | | display: inline-block; |
| display: block; | | font-size: var(--font-size-medium) !important; |
| max-width: 100%; | | line-height: 1; |
| white-space: normal; | |
| overflow-wrap: anywhere;
| |
| word-break: break-word; | |
| } | | } |
|
| |
|
| /* TABLE should fit container and wrap content */
| | #PollVotes.vote-number::before { |
| .continuum-body fieldset table { | | content: none !important; |
| 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 */ | | /* Hide the Vote/unvote link (we’ll keep it functional via JS) */ |
| .continuum-body fieldset table pre, | | #Answer.vote-action { |
| .continuum-body fieldset table .mw-code {
| | display: none; |
| white-space: pre-wrap; | |
| word-break: break-word;
| |
| } | | } |
.welcome {
text-align: center;
font-size: 4em;
}
.emoji-trigger-wrap { margin-bottom: .5rem; }
#emoji-trigger { margin-right: .5rem; }
/* --- VoteNY: render as 👍1 --- */
.vote-box {
background-color: transparent; /* remove green box */
height: auto;
width: auto;
padding: 0;
display: inline-block !important;
align-items: center;
}
#PollVotes.vote-number {
color: inherit; /* stop forcing white */
display: inline-block !important;
background-color: transparent;
font-size: var(--font-size-medium) !important;
font-weight: 600;
}
.vote-box::before {
content: "👍";
display: inline-block;
font-size: var(--font-size-medium) !important;
line-height: 1;
}
#PollVotes.vote-number::before {
content: none !important;
}
/* Hide the Vote/unvote link (we’ll keep it functional via JS) */
#Answer.vote-action {
display: none;
}