2017-07-12 15:12:40 +00:00
|
|
|
/*
|
|
|
|
A file for css that corrects known rendering issues on known Wikimedia wikis.
|
|
|
|
|
|
|
|
the following definitions exist to deal with certain inline styles
|
|
|
|
present in wikitext.
|
|
|
|
This file should not need to exist
|
|
|
|
It will become redundant when the following RFC is resolved:
|
|
|
|
https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
|
|
|
|
|
|
|
|
FIXME: Review all of these hacks to see if they still apply.
|
|
|
|
*/
|
2018-05-19 18:17:31 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
2018-05-08 22:03:52 +00:00
|
|
|
@import 'templates/ambox.less';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
.collapsible td {
|
|
|
|
width: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
2017-08-01 18:52:11 +00:00
|
|
|
.vertical-navbox,
|
|
|
|
.navbox {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
// Hide cleanup templates by default to non-javascript users as these stop them from reading the article itself
|
2017-08-28 14:43:12 +00:00
|
|
|
// Edit page notices
|
2017-09-26 13:40:46 +00:00
|
|
|
.action-edit .fmbox,
|
2017-07-12 15:12:40 +00:00
|
|
|
// Talk page informational boxes
|
|
|
|
.tmbox,
|
|
|
|
#coordinates,
|
|
|
|
// Hide article badges, clean-up notices, stub notices, and navigation boxes
|
2018-05-08 22:03:52 +00:00
|
|
|
.topicon {
|
2017-07-12 15:12:40 +00:00
|
|
|
// It's important as some of these are tables which become display: table on larger screens
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
// A lot of templates introduce floating and horizontal margins inline styles
|
|
|
|
float: none !important;
|
|
|
|
margin-left: 0 !important;
|
|
|
|
margin-right: 0 !important;
|
|
|
|
|
2017-12-22 18:30:36 +00:00
|
|
|
&.infobox {
|
2018-01-02 22:02:12 +00:00
|
|
|
font-size: 90%;
|
|
|
|
position: relative;
|
|
|
|
border: 1px solid @colorGray14;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
background-color: @colorGray15;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
2018-01-13 20:07:29 +00:00
|
|
|
display: flex;
|
|
|
|
flex: 1 1 100%;
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
|
2018-01-02 22:02:12 +00:00
|
|
|
th, td {
|
|
|
|
vertical-align: top;
|
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px solid @colorGray14;
|
|
|
|
padding: 7px 10px;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2018-01-13 20:07:29 +00:00
|
|
|
tbody > tr > td,
|
|
|
|
tbody > tr > th {
|
|
|
|
flex: 1 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
td:only-child,
|
|
|
|
th:only-child {
|
2018-01-02 22:02:12 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
2017-12-22 18:30:36 +00:00
|
|
|
|
2018-01-02 22:02:12 +00:00
|
|
|
tr:last-child th,
|
|
|
|
tr:last-child td {
|
|
|
|
border: 0;
|
|
|
|
}
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
2018-01-13 20:07:29 +00:00
|
|
|
|
2018-05-24 12:19:58 +00:00
|
|
|
&.infobox > tbody,
|
|
|
|
&.infobox > caption {
|
2018-01-13 20:07:29 +00:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.infobox > tbody > tr {
|
|
|
|
min-width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
}
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
2018-06-17 18:58:38 +00:00
|
|
|
|
|
|
|
// Hack to assign info boxes properly when using RTL languages on LTR wiki
|
|
|
|
.mw-content-ltr table.infobox {
|
|
|
|
/* @noflip */
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hack to assign info boxes properly when using LTR languages on RTL wiki
|
|
|
|
.mw-content-rtl table.infobox {
|
|
|
|
/* @noflip */
|
|
|
|
text-align: right;
|
|
|
|
}
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: Remove when filetoc is stripped from file pages a la table of contents (toc)
|
|
|
|
#filetoc,
|
|
|
|
.mw-editsection {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* bug 34878: Set an optimal width for a column.
|
|
|
|
* Makes sure that on small screens column-count is only honored if column-width hint is not violated.
|
|
|
|
* https://developer.mozilla.org/en-US/docs/CSS/column-width
|
|
|
|
*/
|
|
|
|
.references-column-count,
|
|
|
|
.column-count {
|
|
|
|
-moz-column-width: 35em;
|
|
|
|
-webkit-column-width: 35em;
|
|
|
|
column-width: 35em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// When JavaScript is disabled clarify to the user which reference they clicked on
|
|
|
|
.references li:target {
|
|
|
|
background-color: #def;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hatnote,
|
|
|
|
.dablink,
|
|
|
|
.rellink {
|
2017-09-06 14:09:54 +00:00
|
|
|
padding: 5px 7px;
|
|
|
|
color: @colorGray5;
|
2017-07-12 15:12:40 +00:00
|
|
|
font-size: 0.8em;
|
2017-09-06 14:09:54 +00:00
|
|
|
background-color: @colorGray15;
|
|
|
|
margin-bottom: 1px;
|
2018-04-24 11:51:48 +00:00
|
|
|
overflow: hidden;
|
2017-09-06 14:09:54 +00:00
|
|
|
a {
|
|
|
|
color: @colorProgressive;
|
|
|
|
}
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2018-02-05 19:17:54 +00:00
|
|
|
@media all and ( min-width: @width-breakpoint-tablet ) {
|
2017-08-01 18:52:11 +00:00
|
|
|
// When in the HTML these should be revealed at tablet resolution (T172078)
|
|
|
|
.content {
|
|
|
|
.vertical-navbox,
|
|
|
|
.navbox {
|
|
|
|
display: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
// Hacks to render galleries and multicol tables better on mobile
|
2018-02-05 19:17:54 +00:00
|
|
|
@media all and ( max-width: @width-breakpoint-tablet ) {
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
.content {
|
|
|
|
table {
|
|
|
|
// Make {{col-beg}}, {{col-break}}, and {{col-end}} templates display single column tables
|
|
|
|
&.multicol {
|
|
|
|
> tr > td,
|
|
|
|
> tbody > tr > td {
|
|
|
|
display: block !important;
|
|
|
|
width: auto !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Deal with Template:Multiple_image. T38030 and T148505
|
|
|
|
.thumb .thumbinner {
|
|
|
|
.flex-display( flex );
|
|
|
|
justify-content: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-content: flex-start;
|
2018-08-02 09:58:37 +00:00
|
|
|
// avoid image child overflowing the container (T200518)
|
|
|
|
flex-direction: column;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
> .thumbcaption {
|
|
|
|
.flex( 1, 0, 100% );
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|