mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 09:16:34 +00:00
2cc9516cde
This is programmatic output from python3 scripts/migrate.py This will result in a Minerva skin dependent on MobileFrontend. Post merge we will rename message keys to have minerva- prefix Bug: T166748 Change-Id: Iff1f7e63e796cc5d4a6d2ab0370e0c33248d2fce
69 lines
1.5 KiB
Plaintext
69 lines
1.5 KiB
Plaintext
// Full-size images
|
|
//
|
|
// Inline and floated full-size images will be styled like so.
|
|
//
|
|
// Example wikitext:
|
|
// This is an [[File:Book.png]] inline image.
|
|
// [[File:Book.png|left]]Left-aligned image
|
|
// [[File:Book.png|right]]Right-aligned image
|
|
//
|
|
// Markup:
|
|
// <div class="content">
|
|
// <p>This is an <img src="images/arrow-left.png"> inline image.</p>
|
|
// <div class="floatleft"><img src="images/arrow-left.png">Left-aligned image</div>
|
|
// <div class="floatright"><img src="images/arrow-left.png">Right-aligned image</div>
|
|
// </div>
|
|
//
|
|
// Styleguide 1.3.
|
|
@import 'mediawiki.mixins.less';
|
|
@import 'minerva.variables.less';
|
|
@import 'minerva.mixins.less';
|
|
|
|
.content {
|
|
|
|
img {
|
|
// Matches commonElements.css
|
|
vertical-align: middle;
|
|
}
|
|
|
|
// Applied to divs containing aligned, full-size images
|
|
.floatright {
|
|
/* @noflip */
|
|
clear: right;
|
|
/* @noflip */
|
|
float: right;
|
|
/* @noflip */
|
|
margin: 0 0 0.6em 0.6em;
|
|
}
|
|
|
|
// Applied to divs containing aligned, full-size images
|
|
.floatleft {
|
|
/* @noflip */
|
|
clear: left;
|
|
/* @noflip */
|
|
float: left;
|
|
/* @noflip */
|
|
margin: 0 0.6em 0.6em 0;
|
|
}
|
|
|
|
// Prevent inline styles on images in wikitext
|
|
// Note we restrict to img's to avoid conflicts with VisualEditor shields
|
|
// See bug T64460
|
|
a > img {
|
|
// make sure that images in articles don't cause a horizontal scrollbar
|
|
// on small screens
|
|
max-width: 100% !important;
|
|
height: auto !important;
|
|
}
|
|
|
|
// bug T22030
|
|
.noresize {
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
|
|
a > img {
|
|
max-width: none !important;
|
|
}
|
|
}
|
|
}
|