MediaWiki:Minerva.css: Difference between revisions

Created page with "All CSS here will be loaded for users of the MinervaNeue skin. This is the skin used by MobileFrontend.: <nowiki>: .tunk, .tneg, .tpos { vertical-align: 20%; font-size: 80%; } .use-with-mention, .ib-content { font-style: italic; } .senseid:target { background: var(--wikt-palette-lightblue, #DEF); } hide redundant second interProject links: .interProject { display: none; clear: both; border-top: 2px dotted var(--border-color-base, #AA..."
 
Replaced content with "All CSS here will be loaded for users of the MinervaNeue skin. This is the skin used by MobileFrontend.: <nowiki>: .tunk, .tneg, .tpos { vertical-align: 20%; font-size: 80%; } .use-with-mention, .ib-content { font-style: italic; } .senseid:target { background: var(--wikt-palette-lightblue); } hide redundant second interProject links: .interProject { display: none; clear: both; border-top: 2px dotted var(--border-color-base, #AAAAAA); margin..."
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


.tunk, .tneg, .tpos {
.tunk, .tneg, .tpos {
    vertical-align: 20%;
vertical-align: 20%;
    font-size: 80%;
font-size: 80%;
}
}


.use-with-mention, .ib-content {
.use-with-mention, .ib-content {
    font-style: italic;
font-style: italic;
}
}


.senseid:target {
.senseid:target {
    background: var(--wikt-palette-lightblue, #DEF);
background: var(--wikt-palette-lightblue);
}
}


Line 28: Line 28:
.ul-column-count > dl,
.ul-column-count > dl,
.term-list .CategoryTreeChildren {
.term-list .CategoryTreeChildren {
-moz-column-count: 1 !important;
column-count: 1 !important;
    column-count: 1 !important;
}
}


/* Default background color for multi-column lists. */
.columns-bg {
.columns-bg {
/* Default background color for multi-column lists. */
background: var(--wikt-palette-lavender);
background: var(--wikt-palette-lavender, #f8f8ff);
}
}


Line 53: Line 52:
.wikt-hierokludge {
.wikt-hierokludge {
display: inline-block;
display: inline-block;
}
/* Support lists that automatically split into limited-width columns (for translations tables and the like): */
.multicolumn-list > ul {
    -moz-column-width: 25em;
        column-width: 25em;
    -moz-column-gap: 20px;
        column-gap: 20px;
}
.multicolumn-list-wide > ul {
    -moz-column-width: 55em;
        column-width: 55em;
    -moz-column-gap: 20px;
        column-gap: 20px;
}
.multicolumn-list-narrow > ul {
    -moz-column-width: 22em;
        column-width: 22em;
    -moz-column-gap: 20px;
        column-gap: 20px;
}
}


Line 84: Line 63:


/* Don't float sister project boxes and the like. Note, table.floatright is already dealt with by  
/* Don't float sister project boxes and the like. Note, table.floatright is already dealt with by  
  built-in MediaWiki mobile site style overrides, but only when the width is < 720 px,
built-in MediaWiki mobile site style overrides, but only when the width is < 720 px,
  so match that behavior */
so match that behavior */
@media screen and (max-width: 719px) {
@media screen and (max-width: 719px) {
    .content .floatright {
.content .floatright {
        float: none;
float: none;
        margin-left: 0;
margin-left: 0;
        margin-right: 0;
margin-right: 0;
    }
}
}
}


/* stuff visible when previewing an edit only */
/* stuff visible when previewing an edit only */
.previewonly {
display: none;
}


.previewonly { display: none; }
#wikiPreview .previewonly {
 
display: inline;
#wikiPreview .previewonly { display: inline; }
}
 
/* To colour links in inflection tables (currently done with
{{notred}}) black without using #ifexist and allowing for user
override */
.inflection-table a.new { color: inherit; }


/* Shorten margins in nested definitions and discussions on narrow screens */
/* Shorten margins in nested definitions and discussions on narrow screens */
Line 142: Line 119:
}
}


/* [[phab:T316670]] */
.mw-heading * {
.mw-heading * {
word-break: normal;
word-break: normal;
}
}


/* aesthetic tweak */
#content .mw-heading3 {
#content .mw-heading3 {
    margin-top: 0;
margin-top: 0;
}
}


/* aesthetic tweak */
.mw-parser-output ul {
.mw-parser-output ul {
    margin-bottom: 0.5em;
margin-bottom: 0.5em;
}
}


Line 161: Line 141:
max-width: fit-content;
max-width: fit-content;
margin-top: 0.6em;
margin-top: 0.6em;
}
/* From [[Module:shortcut box/styles.css]] */
a .redlink {
    color: var(--color-destructive, #d73333);
}
a:visited .redlink {
    color: var(--color-destructive--visited, #a55858);
}
a:visited:hover .redlink {
    color: var(--color-destructive--visited, #a55858);
}
a:hover .redlink {
    color: var(--color-destructive, #d73333);
    text-decoration: underline;
}
a:active .redlink {
    color: inherit;
}
a:visited:active .redlink {
    color: var(--color-destructive--visited, #a55858);
}
}


/* undo https://phabricator.wikimedia.org/T367240, where Wikimedia devs again assumed they know better than everyone else */
/* undo https://phabricator.wikimedia.org/T367240, where Wikimedia devs again assumed they know better than everyone else */
.client-js .mw-parser-output > section > .mw-heading:not(.mf-collapsible-heading) {
.client-js .mw-parser-output > section > .mw-heading:not(.mf-collapsible-heading) {
    padding-left: 0;
padding-left: 0;
    border: none;
border: none;
}
}


/* [[Wiktionary:Beer_parlour#Heading level 4 appearance]]:
/* [[Wiktionary:Beer_parlour/2024/September#Heading_level_4_appearance]]:
* h3 is 120% 1.2em, and h5 is 100%. make h4 110% = 1.1em.
* h3 is 120% 1.2em, and h5 is 100%. make h4 110% = 1.1em.
* increase h3 to 125% to compensate, since otherwise h3 and h4 are too similar.
* increase h3 to 125% to compensate, since otherwise h3 and h4 are too similar.
Line 219: Line 178:
}
}


/*</nowiki>*/
/* </nowiki> */