mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-27 07:13:06 +00:00
71de06a682
Changes: - Removes redundant styles now inside Codex - With the new component, it's not possible to display 3 cards in a single line at a tablet resolution, so the media query responsible is bumped to apply only at the desktop threshold - Decisions are documented in ADR Bug: T286835 Change-Id: I493e8e601ccc31b3cf1f16c0b5a8975f12ef336c
58 lines
951 B
Plaintext
58 lines
951 B
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
@import 'mediawiki.mixins';
|
|
|
|
@baseFontSize: 1em;
|
|
@thumbWidth: 80px;
|
|
@cardBorder: 1px solid rgba( 0, 0, 0, 0.2 );
|
|
|
|
.read-more-container-heading {
|
|
color: @color-subtle;
|
|
border-bottom: 0;
|
|
padding-bottom: 0.5em;
|
|
font-size: 0.8em;
|
|
font-weight: normal;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.read-more-container-card-list {
|
|
font-size: @baseFontSize;
|
|
list-style: none;
|
|
display: grid;
|
|
row-gap: 10px;
|
|
|
|
li {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
a,
|
|
a:hover {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
.cdx-card {
|
|
box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.1 );
|
|
}
|
|
}
|
|
}
|
|
|
|
@supports ( display: grid ) {
|
|
@media all and ( min-width: @width-breakpoint-desktop ) {
|
|
.read-more-container-card-list {
|
|
grid-template-columns: repeat( 3, 1fr );
|
|
column-gap: 10px;
|
|
|
|
.read-more-container-card {
|
|
width: 100%;
|
|
}
|
|
|
|
.cdx-card {
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
}
|
|
}
|