2018-07-11 12:00:36 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables';
|
|
|
|
|
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;
|
|
|
|
@amboxBackground: @colorGray15;
|
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;
|
|
|
|
font-size: 0.8em;
|
2018-08-22 21:55:11 +00:00
|
|
|
width: auto;
|
2018-07-11 12:00:36 +00:00
|
|
|
background: @amboxBackground;
|
2018-05-08 22:03:52 +00:00
|
|
|
color: @colorGray5;
|
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;
|
2018-07-11 12:00:36 +00:00
|
|
|
max-height: @contentLineHeight * 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.
|
|
|
|
height: @contentLineHeight * 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
position: relative;
|
2018-07-11 12:00:36 +00:00
|
|
|
padding: @amboxPadding @amboxPadding @amboxPadding @amboxIconPadding;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-ui-icon {
|
|
|
|
position: absolute;
|
2018-07-11 12:00:36 +00:00
|
|
|
left: -@amboxPadding;
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|
|
|
|
|
2018-07-10 20:06:51 +00:00
|
|
|
.mw-ui-icon:before {
|
2019-04-03 02:16:46 +00:00
|
|
|
background-size: 75%;
|
2018-07-10 20:06:51 +00:00
|
|
|
}
|
|
|
|
|
2018-05-08 22:03:52 +00:00
|
|
|
.ambox-learn-more {
|
|
|
|
color: @linkColor;
|
2018-07-11 12:00:36 +00:00
|
|
|
position: absolute;
|
|
|
|
right: @amboxPadding;
|
|
|
|
bottom: @amboxPadding;
|
2019-02-08 00:37:02 +00:00
|
|
|
z-index: @z-indexBase;
|
2018-07-11 12:00:36 +00:00
|
|
|
line-height: @contentLineHeight; // 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. */
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2019-02-19 12:31:15 +00:00
|
|
|
z-index: @z-indexBase - 1; // set z-index 1 below the parent element.
|
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;
|
|
|
|
background: -webkit-linear-gradient( left, fade( @amboxBackground, 0 ) 0, @amboxBackground 3em );
|
|
|
|
background: -moz-gradient( left, fade( @amboxBackground, 0 ) 0, @amboxBackground 3em );
|
|
|
|
background: linear-gradient( to right, fade( @amboxBackground, 0 ) 0, @amboxBackground 3em );
|
|
|
|
}
|
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
|
|
|
|
&:before {
|
|
|
|
top: unit( -@contentLineHeight, em );
|
|
|
|
width: 10px;
|
|
|
|
}
|
2018-07-11 12:00:36 +00:00
|
|
|
}
|
|
|
|
}
|
2018-05-08 22:03:52 +00:00
|
|
|
}
|