mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles/content/tables.less
Volker E dd154b4ea7 styles: Replace deprecated breakpoints
The values have slightly changed:
- Tablet breakpoint is decreased by 80px,
  pushing lesser devices into a mobile only experience but
  should make barely a difference to vast majority of our users.
- Biggest difference is in `min-width-breakpoint-desktop`,
  which is increased by 120px in comparison to
  `@width-breakpoint-desktop: 1000px`

Also removing one out-dated feature phone clause.

TECHNICAL CHANGES:
* The previous breakpoint was tied to the maximum content width.
The previous maximum content width is preserved, and several media
queries are adjusted to make use of it.
* The header (logo) is not optimized for  640px-720px. For now
a temporary fix is but in place which will be investigated as part
of T366859

VISUAL CHANGES:
* 6 visual changes which improve alignment in language and
visual editor overlay and diffs (where wikidiff2 is not
installed)

Bug: T349793
Depends-On: I3afba8c51f60de9271054499bfa3ffbcc1a9d779
Change-Id: I9552d8ad7509aae90e15edda26e786465773d3ac
2024-06-07 12:52:39 -07:00

61 lines
1.5 KiB
Plaintext

// Tables
@import 'mediawiki.mixins.less';
@import '../../../minerva.less/minerva.variables.less';
@import '../../../minerva.less/minerva.mixins.less';
// FIXME: Upstream to ResourceLoader/SkinModule content-tables styles [T359888]
// These are only intended for smaller screens.
// This avoids having to undo them from another media query,
// by putting the original in a media query instead.
// This also avoids having a reset with too-high specificity, which
// would break unrelated styles from core and extensions.
@media all and ( max-width: @max-width-breakpoint-mobile ) {
.content {
table {
display: block;
width: 100% !important;
box-sizing: border-box;
&.wikitable {
// Remove the outer table border as the table container may be
// wider than all the cells (T206762). In most cases the table
// border is not visible anyway due to border-collapse.
border: 0;
}
}
caption {
display: block;
}
}
}
.content {
table {
margin: 1em 0;
/* following 4 rules are needed for scrolling */
overflow: auto; /* for browsers that don't support overflow-y */
overflow-y: hidden;
overflow-x: auto;
}
caption {
font-weight: bold;
text-align: left;
}
}
// Overrides for ResourceLoaderSkinModule "content".
.wikitable {
// We only style cells that are direct children of the wikitable table since
// table tags may be used for non-table purposes within the cells.
> tr > th,
> tr > td,
> * > tr > th,
> * > tr > td {
// content-tables uses 0.2em 0.4em. Can these be consolidated?
padding: 0.2em;
}
}