2021-04-29 01:01:54 +00:00
|
|
|
@import '../../../../minerva.less/minerva.variables.less';
|
2018-07-11 12:00:36 +00:00
|
|
|
|
2018-05-08 22:03:52 +00:00
|
|
|
/**
|
|
|
|
* Ambox classes are nested in a top-level class
|
|
|
|
* for the page issues A/B test.
|
|
|
|
* This class is appended to the DOM via JS
|
|
|
|
**/
|
|
|
|
|
2018-07-11 12:00:36 +00:00
|
|
|
@amboxPadding: 8px;
|
|
|
|
@amboxIconPadding: @amboxPadding * 4;
|
2018-05-08 22:03:52 +00:00
|
|
|
|
|
|
|
.ambox,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Be more specific than .content table styles in Minerva */
|
2018-05-08 22:03:52 +00:00
|
|
|
table.ambox {
|
|
|
|
display: none;
|
2018-07-11 12:00:36 +00:00
|
|
|
margin: 0;
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Will show FOUC on mobile
|
|
|
|
.issues-group-B {
|
|
|
|
.ambox {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.client-js .ambox {
|
|
|
|
cursor: pointer;
|
2018-08-22 21:55:11 +00:00
|
|
|
width: auto;
|
2024-02-13 17:05:40 +00:00
|
|
|
// !important needed to override core ambox styles
|
|
|
|
background: var( --background-color-interactive-subtle ) !important;
|
2024-02-01 17:33:08 +00:00
|
|
|
color: var( --color-subtle );
|
2018-08-30 12:15:30 +00:00
|
|
|
margin-bottom: 1px;
|
2018-05-08 22:03:52 +00:00
|
|
|
|
2018-07-11 12:00:36 +00:00
|
|
|
tbody {
|
|
|
|
display: table;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Assuming that most ambox templates wrap content in this element.
|
|
|
|
// See https://en.wikipedia.org/w/index.php?title=Module:Message_box&action=raw (search for 'mbox-text-span').
|
2018-11-13 00:44:06 +00:00
|
|
|
// https://phabricator.wikimedia.org/T206887 suggests .mbox-text-div is also needed.
|
|
|
|
.mbox-text-div,
|
2018-05-08 22:03:52 +00:00
|
|
|
.mbox-text-span {
|
2019-03-26 12:11:16 +00:00
|
|
|
display: block;
|
2019-12-06 05:12:46 +00:00
|
|
|
max-height: @line-height-content * 2em;
|
2018-07-26 03:04:57 +00:00
|
|
|
// All will have this height (approx 2 lines) even if a single line e.g. {{dictdef}} when on mobile.
|
|
|
|
// Overriden later in tablet styles.
|
2019-12-06 05:12:46 +00:00
|
|
|
height: @line-height-content * 2em;
|
2018-07-11 12:00:36 +00:00
|
|
|
overflow: hidden;
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Wrestle with inline styles that editors may place on elements inside the ambox
|
|
|
|
div {
|
|
|
|
// e.g. on mw-collapsible inside Multiple issues template
|
|
|
|
margin: 0 !important;
|
|
|
|
// e.g. on Template:Expand Russian
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
2023-06-17 16:40:34 +00:00
|
|
|
td,
|
|
|
|
div.mbox-text {
|
2018-05-08 22:03:52 +00:00
|
|
|
position: relative;
|
2023-06-17 16:40:34 +00:00
|
|
|
// Override !important above if this is a div
|
|
|
|
padding: @amboxPadding @amboxPadding @amboxPadding @amboxIconPadding !important;
|
2019-08-30 17:23:55 +00:00
|
|
|
|
|
|
|
> div,
|
|
|
|
> span {
|
2019-09-23 22:02:16 +00:00
|
|
|
font-size: @font-size-minerva-smallest;
|
2019-08-30 17:23:55 +00:00
|
|
|
}
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// All text should be treated the same
|
|
|
|
b {
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide links in new treatment
|
|
|
|
a {
|
|
|
|
color: inherit !important;
|
2018-08-01 16:45:47 +00:00
|
|
|
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0 ) !important;
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2018-08-01 16:45:47 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2018-05-08 22:03:52 +00:00
|
|
|
text-decoration: none;
|
2018-08-01 16:45:47 +00:00
|
|
|
outline: inherit;
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
small,
|
|
|
|
.hide-when-compact,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Template:Expand Russian */
|
2018-05-08 22:03:52 +00:00
|
|
|
.mw-collapsible-content,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Remove empty leftmost column when present (.mbox-empty-cell)
|
|
|
|
* and .verbose and any hr tags that might be present in the ambox
|
|
|
|
* See https://en.wikipedia.org/w/index.php?
|
|
|
|
* title=Special:WhatLinksHere/Template:Proposed_deletion_notify
|
|
|
|
* (https://phabricator.wikimedia.org/T197265) */
|
2018-05-08 22:03:52 +00:00
|
|
|
.mbox-empty-cell,
|
|
|
|
hr,
|
|
|
|
.verbose,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Nested amboxes (multiple issues) */
|
2018-05-08 22:03:52 +00:00
|
|
|
table,
|
|
|
|
.mbox-image {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-11-07 16:29:17 +00:00
|
|
|
.minerva-ambox-icon {
|
2018-05-08 22:03:52 +00:00
|
|
|
position: absolute;
|
2019-09-13 13:47:50 +00:00
|
|
|
left: @amboxPadding;
|
2019-10-08 16:40:48 +00:00
|
|
|
top: 11px;
|
2018-07-10 20:06:51 +00:00
|
|
|
}
|
|
|
|
|
2018-05-08 22:03:52 +00:00
|
|
|
.ambox-learn-more {
|
2020-06-12 02:35:10 +00:00
|
|
|
color: @color-link;
|
2018-07-11 12:00:36 +00:00
|
|
|
position: absolute;
|
|
|
|
right: @amboxPadding;
|
|
|
|
bottom: @amboxPadding;
|
2024-01-31 15:06:56 +00:00
|
|
|
z-index: @z-index-base;
|
2019-12-06 05:12:46 +00:00
|
|
|
line-height: @line-height-content; // sets height for fade & aligns "learn more" to ambox text.
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2018-07-11 12:00:36 +00:00
|
|
|
/* creates a fade under the "learn more" button to avoid overlapping text. */
|
2023-03-31 19:50:36 +00:00
|
|
|
&::before {
|
2018-07-11 12:00:36 +00:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2024-01-31 15:06:56 +00:00
|
|
|
z-index: @z-index-occluded;
|
2018-07-11 12:00:36 +00:00
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 100%; // width & height defined by length of "learn more".
|
|
|
|
height: 100%;
|
|
|
|
box-sizing: content-box; // explicitly setting box-sizing so padding extends beyond 100%.
|
|
|
|
padding-left: 4em;
|
2024-02-01 17:33:08 +00:00
|
|
|
background: linear-gradient( to right, transparent 0, var( --background-color-interactive-subtle ) 3em );
|
2018-07-11 12:00:36 +00:00
|
|
|
}
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|
2018-07-11 12:00:36 +00:00
|
|
|
|
|
|
|
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
2018-12-13 19:41:15 +00:00
|
|
|
.mbox-text-div,
|
2018-07-11 12:00:36 +00:00
|
|
|
.mbox-text-span {
|
2018-07-26 03:04:57 +00:00
|
|
|
height: auto;
|
2018-07-11 12:00:36 +00:00
|
|
|
margin-bottom: @amboxPadding * 3 !important; // important offsets `.ambox div { margin:0!important}` which offsets inline styles.
|
|
|
|
}
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2018-07-11 12:00:36 +00:00
|
|
|
.ambox-learn-more {
|
|
|
|
left: @amboxIconPadding;
|
2018-08-03 00:59:17 +00:00
|
|
|
right: 0;
|
2018-07-11 12:00:36 +00:00
|
|
|
background: none;
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2018-08-03 00:59:17 +00:00
|
|
|
// Move blur to far right last line
|
|
|
|
// https://phabricator.wikimedia.org/T197931#4475197
|
2023-03-31 19:50:36 +00:00
|
|
|
&::before {
|
2019-12-06 05:12:46 +00:00
|
|
|
top: unit( -@line-height-content, em );
|
2018-08-03 00:59:17 +00:00
|
|
|
width: 10px;
|
|
|
|
}
|
2018-07-11 12:00:36 +00:00
|
|
|
}
|
|
|
|
}
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|