2023-04-02 20:57:43 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2021-01-28 17:19:52 +00:00
|
|
|
|
2023-04-02 20:57:43 +00:00
|
|
|
/* stylelint-disable no-descending-specificity */
|
2021-03-10 17:25:52 +00:00
|
|
|
span[ data-mw-comment-start ] {
|
|
|
|
// Give comment anchors a negative offset so we don't position
|
2022-09-14 08:01:53 +00:00
|
|
|
// them right at the edge of the page when jumping to them.
|
|
|
|
// Use margin rather than position to avoid Chrome bug (T317135).
|
|
|
|
position: absolute;
|
|
|
|
margin-top: -1em;
|
2021-03-10 17:25:52 +00:00
|
|
|
}
|
|
|
|
|
2022-05-12 00:31:22 +00:00
|
|
|
// stylelint-disable-next-line selector-list-comma-newline-after
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
span[ data-mw-comment-end ] {
|
|
|
|
// Support: Safari
|
|
|
|
// Markers at the end of a line and before an inline-block (e.g. edit icon)
|
|
|
|
// can cause text to stop wrapping properly. (T298371)
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-init-replylink-buttons {
|
2019-10-30 16:12:27 +00:00
|
|
|
user-select: none;
|
2021-02-10 15:36:13 +00:00
|
|
|
display: none;
|
2019-10-30 16:12:27 +00:00
|
|
|
|
2021-08-20 18:46:23 +00:00
|
|
|
// If a site has text-indent set on content, it would be inherited here and cause excessive padding
|
|
|
|
text-indent: 0;
|
|
|
|
|
2023-02-23 22:30:38 +00:00
|
|
|
// Add space before the buttons using actual spaces rather than margin, so that they may collapse
|
|
|
|
// when the buttons wrap to a new line (T325416).
|
2023-03-13 14:11:33 +00:00
|
|
|
&::before {
|
2023-02-23 22:30:38 +00:00
|
|
|
// Must use character escapes to avoid CSS minifier messing up the spaces
|
|
|
|
content: '\20\20';
|
|
|
|
white-space: pre-wrap;
|
2021-01-08 17:05:32 +00:00
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-replytool-enabled & {
|
2023-02-23 22:30:38 +00:00
|
|
|
display: inline;
|
2021-02-10 15:36:13 +00:00
|
|
|
|
|
|
|
.client-nojs & {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-09-16 12:07:27 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 16:45:14 +00:00
|
|
|
// Archived talk section (T295553)
|
|
|
|
.ext-discussiontools-replytool-enabled .mw-archivedtalk & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-init-replylink {
|
2020-06-09 18:55:14 +00:00
|
|
|
&-reply {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Similar to mw-editsection-bracket
|
|
|
|
&-bracket {
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-subtle;
|
2020-06-09 18:55:14 +00:00
|
|
|
|
2022-04-21 13:08:59 +00:00
|
|
|
.mw-content-ltr &:not( :last-child ),
|
2022-08-26 10:43:54 +00:00
|
|
|
.mw-content-rtl .mw-content-ltr &:not( :last-child ),
|
|
|
|
.mw-content-rtl &:last-child,
|
|
|
|
.mw-content-ltr .mw-content-rtl &:last-child {
|
2021-01-08 17:05:32 +00:00
|
|
|
/* @noflip */
|
2020-06-09 18:55:14 +00:00
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:52:12 +00:00
|
|
|
.mw-content-ltr &:last-child,
|
2022-08-26 10:43:54 +00:00
|
|
|
.mw-content-rtl .mw-content-ltr &:last-child,
|
|
|
|
.mw-content-rtl &:not( :last-child ),
|
|
|
|
.mw-content-ltr .mw-content-rtl &:not( :last-child ), {
|
2021-01-08 17:05:32 +00:00
|
|
|
/* @noflip */
|
2020-06-09 18:55:14 +00:00
|
|
|
margin-left: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
2019-11-25 16:20:41 +00:00
|
|
|
}
|
|
|
|
|
2022-01-07 17:00:01 +00:00
|
|
|
.ext-discussiontools-init-replylink-open & > .ext-discussiontools-init-replylink-reply {
|
2019-10-30 16:12:27 +00:00
|
|
|
color: #72777d;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-08-10 15:54:45 +00:00
|
|
|
|
2022-01-07 17:00:01 +00:00
|
|
|
&.ext-discussiontools-init-replylink-active > .ext-discussiontools-init-replylink-reply {
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-base;
|
2022-01-07 17:00:01 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2023-01-10 00:00:33 +00:00
|
|
|
// Flip the icon in LTR interface languages. Un-flip it in RTL.
|
|
|
|
// TODO This should use a different icon, with the image itself flipped (T325664).
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
body.ltr & .ext-discussiontools-init-replybutton .oo-ui-iconElement-icon.oo-ui-icon-share {
|
2022-04-21 13:08:59 +00:00
|
|
|
transform: scaleX( -1 );
|
|
|
|
}
|
|
|
|
|
2020-08-10 15:54:45 +00:00
|
|
|
@media print {
|
2022-11-28 23:26:16 +00:00
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
2020-08-10 15:54:45 +00:00
|
|
|
}
|
2019-10-30 16:12:27 +00:00
|
|
|
}
|
2019-11-13 13:57:57 +00:00
|
|
|
|
2022-09-30 12:40:26 +00:00
|
|
|
// Don't re-color :visited links that act as buttons (T319019)
|
|
|
|
.ext-discussiontools-init-replylink-reply,
|
|
|
|
.ext-discussiontools-init-section-subscribe-link {
|
|
|
|
&:visited {
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-link;
|
2022-09-30 12:40:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-30 22:02:17 +00:00
|
|
|
.ext-discussiontools-init-timestamplink {
|
|
|
|
&,
|
|
|
|
&:visited,
|
|
|
|
&:active {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-19 19:41:49 +00:00
|
|
|
.ext-discussiontools-init-noMarker {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-init-highlight {
|
2019-11-13 13:57:57 +00:00
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
2020-11-30 23:32:29 +00:00
|
|
|
opacity: 0;
|
2023-04-12 16:19:44 +00:00
|
|
|
mix-blend-mode: darken;
|
|
|
|
// Support: Safari
|
|
|
|
// Safari doesn't blend this overlay with the text unless GPU rendering is forced.
|
|
|
|
transform: translateZ( 0 );
|
2020-11-30 23:32:29 +00:00
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-init-highlight-fadein {
|
2019-11-13 13:57:57 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-init-highlight-fadeout {
|
2019-11-13 13:57:57 +00:00
|
|
|
opacity: 0;
|
2021-02-04 19:12:03 +00:00
|
|
|
transition: opacity 250ms ease-out;
|
2019-11-13 13:57:57 +00:00
|
|
|
}
|
2021-02-17 22:34:02 +00:00
|
|
|
|
2021-04-29 18:03:37 +00:00
|
|
|
.ext-discussiontools-init-publishedcomment {
|
2023-04-12 16:19:44 +00:00
|
|
|
background-color: #ffe29e;
|
2021-04-29 18:03:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-targetcomment {
|
2023-04-12 16:19:44 +00:00
|
|
|
// Same color as the :target selector for references (from Cite).
|
|
|
|
// Not sure if that's a good idea, but it should be different from -publishedcomment.
|
|
|
|
background-color: #eaf3ff;
|
2021-04-29 18:03:37 +00:00
|
|
|
}
|
|
|
|
|
2023-01-20 04:49:47 +00:00
|
|
|
// Topic subscriptions (both kinds)
|
2022-12-08 16:15:02 +00:00
|
|
|
/* stylelint-disable selector-max-id, selector-class-pattern */
|
|
|
|
#ca-dt-page-subscribe,
|
|
|
|
.menu__item--page-actions-overflow-t-page-subscribe,
|
|
|
|
.ext-discussiontools-init-section-subscribe,
|
|
|
|
.ext-discussiontools-init-section-subscribeButton {
|
|
|
|
// If JS is enabled, disable the buttons until it's loaded, so that users don't accidentally
|
|
|
|
// navigate to the no-JS interface.
|
|
|
|
// TODO: These clicks will be ignored, but ideally we would process them once ready (T183720).
|
|
|
|
.client-js:not( .ext-discussiontools-init-ready ) & {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* stylelint-enable selector-max-id, selector-class-pattern */
|
|
|
|
|
2023-01-20 04:49:47 +00:00
|
|
|
.ext-discussiontools-visualenhancements-enabled .ext-discussiontools-init-section {
|
|
|
|
// Introduce a block formatting context so that floated "subscribe" links/buttons
|
|
|
|
// aren't affected by other floats (T327469). Most skins already include this rule
|
|
|
|
// for headings, but we add the floating stuff outside of headings (since T314714).
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
|
|
|
|
overflow: hidden;
|
2023-05-12 12:38:26 +00:00
|
|
|
// Prevent squishing too much (T335823)
|
|
|
|
min-width: 20em;
|
2023-03-09 16:50:38 +00:00
|
|
|
|
|
|
|
.skin-minerva& {
|
2023-10-05 17:51:29 +00:00
|
|
|
// Prevent the ellipsis button's focus ring from being clipped.
|
|
|
|
// We have no floated links/buttons on mobile, so this is okay.
|
2023-03-09 16:50:38 +00:00
|
|
|
overflow: visible;
|
|
|
|
}
|
2023-01-20 04:49:47 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
// Topic subscriptions (link)
|
|
|
|
.ext-discussiontools-init-section-subscribe {
|
|
|
|
display: none;
|
|
|
|
|
2021-12-22 21:20:29 +00:00
|
|
|
.ext-discussiontools-topicsubscription-enabled & {
|
2021-01-28 17:19:52 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2022-08-26 10:43:54 +00:00
|
|
|
// Directional properties must be based on content direction.
|
|
|
|
.mw-content-ltr &,
|
|
|
|
.mw-content-rtl .mw-content-ltr & {
|
2021-01-28 17:19:52 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2022-08-26 10:43:54 +00:00
|
|
|
.mw-content-rtl &,
|
|
|
|
.mw-content-ltr .mw-content-rtl & {
|
2021-01-28 17:19:52 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
2021-12-22 21:20:29 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
&.mw-editsection-like {
|
|
|
|
-moz-user-select: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
margin-top: 0.7em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-minerva & {
|
|
|
|
// Subscribe button is used instead in Minerva
|
2021-02-17 22:34:02 +00:00
|
|
|
display: none;
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
2021-02-17 22:34:02 +00:00
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
// Similar to mw-editsection-bracket
|
|
|
|
&-bracket {
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-subtle;
|
2021-01-28 17:19:52 +00:00
|
|
|
|
2022-07-27 15:52:12 +00:00
|
|
|
.mw-content-ltr &:first-child,
|
2022-08-26 10:43:54 +00:00
|
|
|
.mw-content-rtl .mw-content-ltr &:first-child,
|
|
|
|
.mw-content-rtl &:last-child,
|
|
|
|
.mw-content-ltr .mw-content-rtl &:last-child {
|
2021-05-05 11:44:51 +00:00
|
|
|
/* @noflip */
|
2021-01-28 17:19:52 +00:00
|
|
|
margin-right: 0.25em;
|
2021-05-05 11:44:51 +00:00
|
|
|
}
|
2021-02-17 22:34:02 +00:00
|
|
|
|
2022-07-27 15:52:12 +00:00
|
|
|
.mw-content-ltr &:last-child,
|
2022-08-26 10:43:54 +00:00
|
|
|
.mw-content-rtl .mw-content-ltr &:last-child,
|
|
|
|
.mw-content-rtl &:first-child,
|
|
|
|
.mw-content-ltr .mw-content-rtl &:first-child {
|
2021-05-05 11:44:51 +00:00
|
|
|
/* @noflip */
|
2021-01-28 17:19:52 +00:00
|
|
|
margin-left: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-link&-link-pending {
|
|
|
|
color: #72777d;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2022-11-28 23:26:16 +00:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Topic subscriptions (button)
|
2022-12-07 20:42:13 +00:00
|
|
|
// Boost specificity by adding .oo-ui-buttonElement
|
2021-01-28 17:19:52 +00:00
|
|
|
.ext-discussiontools-init-section-subscribeButton.oo-ui-buttonElement {
|
|
|
|
display: none;
|
|
|
|
|
2022-07-20 13:05:21 +00:00
|
|
|
> .oo-ui-buttonElement-button {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-topicsubscription-enabled.ext-discussiontools-visualenhancements-enabled & {
|
2021-01-28 17:19:52 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2022-07-20 13:05:21 +00:00
|
|
|
|
2022-08-26 10:43:54 +00:00
|
|
|
// Directional properties must be based on content direction.
|
|
|
|
body:not( .skin-minerva ) .mw-content-ltr &,
|
|
|
|
body:not( .skin-minerva ) .mw-content-rtl .mw-content-ltr & {
|
|
|
|
/* @noflip */
|
|
|
|
float: right;
|
|
|
|
/* @noflip */
|
2022-07-20 13:05:21 +00:00
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
margin: -2px 0 0 1em !important;
|
|
|
|
}
|
2022-08-26 10:43:54 +00:00
|
|
|
|
|
|
|
body:not( .skin-minerva ) .mw-content-rtl &,
|
|
|
|
body:not( .skin-minerva ) .mw-content-ltr .mw-content-rtl & {
|
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
/* @noflip */
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
margin: -2px 1em 0 0 !important;
|
|
|
|
}
|
2022-11-28 23:26:16 +00:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Visual enhancements disabled
|
2023-09-28 11:00:36 +00:00
|
|
|
// TODO: Remove reference to ellipsisButton after parser cache is updated
|
2022-06-30 21:27:51 +00:00
|
|
|
.ext-discussiontools-init-section-ellipsisButton.oo-ui-buttonElement,
|
2023-09-28 11:00:36 +00:00
|
|
|
.ext-discussiontools-init-section-overflowMenuButton.oo-ui-buttonElement,
|
2021-01-28 17:19:52 +00:00
|
|
|
.ext-discussiontools-init-section-bar,
|
2022-04-21 13:08:59 +00:00
|
|
|
.ext-discussiontools-init-replybutton.oo-ui-buttonElement,
|
2022-04-21 14:29:56 +00:00
|
|
|
.ext-discussiontools-init-readAsWikiPage,
|
2022-04-07 00:00:05 +00:00
|
|
|
.ext-discussiontools-init-pageframe-latestcomment,
|
|
|
|
.ext-discussiontools-init-sidebar-meta {
|
2021-01-28 17:19:52 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-04-21 14:29:56 +00:00
|
|
|
.ext-discussiontools-init-pageframe-latestcomment {
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-subtle;
|
2022-04-21 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
// Visual enhancements enabled
|
2022-04-21 13:08:59 +00:00
|
|
|
// Reply sub-feature
|
|
|
|
.ext-discussiontools-visualenhancements_reply-enabled {
|
2022-08-01 23:09:41 +00:00
|
|
|
.ext-discussiontools-init-replylink-bracket,
|
2023-02-25 20:31:06 +00:00
|
|
|
.ext-discussiontools-init-replylink-reply {
|
2022-04-21 13:08:59 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-02-23 22:30:38 +00:00
|
|
|
.ext-discussiontools-init-replybutton {
|
2022-04-21 13:08:59 +00:00
|
|
|
display: inline-block;
|
2023-02-23 22:30:38 +00:00
|
|
|
margin-right: 0;
|
2022-04-21 13:08:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not( .skin-minerva ) .ext-discussiontools-init-replybutton.oo-ui-buttonElement {
|
|
|
|
// Slim height for inline placement. Minerva uses block placement.
|
|
|
|
margin-top: -8px;
|
2023-02-23 22:30:38 +00:00
|
|
|
margin-bottom: -8px;
|
2022-09-29 13:42:11 +00:00
|
|
|
|
2022-12-13 05:49:51 +00:00
|
|
|
&:not( .oo-ui-iconElement ) > .oo-ui-buttonElement-button {
|
2022-09-29 13:42:11 +00:00
|
|
|
padding: 4px 6px;
|
|
|
|
}
|
2022-12-13 05:49:51 +00:00
|
|
|
|
|
|
|
&.oo-ui-iconElement > .oo-ui-buttonElement-button {
|
|
|
|
padding-top: 4px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
}
|
2023-02-23 22:30:38 +00:00
|
|
|
|
|
|
|
&.oo-ui-buttonElement-frameless.oo-ui-labelElement:first-child {
|
|
|
|
// Cancel out 6px padding (set above) and 1px border (set in OOUI)
|
|
|
|
// to align the button text with surrounding text
|
|
|
|
margin-left: -7px;
|
|
|
|
}
|
2022-04-21 13:08:59 +00:00
|
|
|
}
|
|
|
|
|
2023-03-13 14:11:33 +00:00
|
|
|
// Use block placement for the reply buttons on mobile, to make them easier to tap.
|
2022-04-21 13:08:59 +00:00
|
|
|
&.skin-minerva .ext-discussiontools-init-replylink-buttons {
|
|
|
|
display: block;
|
2023-03-13 14:11:33 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
// Remove the spaces that are used for inline placement (T325416), added at the top of this file.
|
|
|
|
content: '';
|
|
|
|
}
|
2022-04-21 13:08:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-19 17:43:49 +00:00
|
|
|
// Page frame sub-feature
|
|
|
|
.ext-discussiontools-visualenhancements_pageframe-enabled {
|
|
|
|
.mw-page-title-separator {
|
|
|
|
// Support IE: We could use :after { content: ' '; } but IE doesn't follow
|
|
|
|
// the spec and inserts the space into the clipboard when copied.
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
2022-04-21 14:29:56 +00:00
|
|
|
|
|
|
|
.ext-discussiontools-init-pageframe-latestcomment {
|
|
|
|
display: block;
|
|
|
|
}
|
2022-04-07 00:00:05 +00:00
|
|
|
|
|
|
|
.ext-discussiontools-init-sidebar-meta {
|
2022-09-02 13:43:19 +00:00
|
|
|
display: block;
|
2023-05-14 14:47:48 +00:00
|
|
|
padding-bottom: 6px;
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-subtle;
|
2022-04-07 00:00:05 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2022-04-19 17:43:49 +00:00
|
|
|
}
|
|
|
|
|
2022-04-21 13:08:59 +00:00
|
|
|
// Main feature (topic containers)
|
2022-10-18 00:27:35 +00:00
|
|
|
.skin-minerva .ext-discussiontools-init-section {
|
|
|
|
// Need to fix some styles on mobile even when the feature is not enabled
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
> h2 {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
.ext-discussiontools-visualenhancements-enabled {
|
|
|
|
.ext-discussiontools-init-section {
|
2022-08-30 12:41:51 +00:00
|
|
|
margin: 36px 0 12px 0;
|
|
|
|
padding: 10px 0 0 0;
|
2021-01-28 17:19:52 +00:00
|
|
|
font-weight: bold;
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
font-family: sans-serif !important;
|
|
|
|
border: 0;
|
2023-04-02 20:57:43 +00:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-base;
|
2021-01-28 17:19:52 +00:00
|
|
|
|
2022-06-28 14:17:33 +00:00
|
|
|
&:first-child {
|
|
|
|
border-top: 0;
|
|
|
|
margin-top: 0;
|
2021-05-05 11:44:51 +00:00
|
|
|
}
|
2021-02-17 22:34:02 +00:00
|
|
|
|
2022-10-18 00:27:35 +00:00
|
|
|
> h2 {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
font-weight: bold;
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
font-family: sans-serif !important;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
// Hide old subscribe link
|
|
|
|
&-subscribe {
|
|
|
|
display: none;
|
2021-02-17 22:34:02 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
&-bar {
|
|
|
|
display: flex;
|
2022-06-30 00:32:18 +00:00
|
|
|
// Use interface language direction (auto-flipped for RTL)
|
|
|
|
direction: ltr;
|
2021-11-05 00:16:23 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
&-metadata {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2021-05-05 11:44:51 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
&-metaitem {
|
|
|
|
font-weight: normal;
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-subtle;
|
2021-01-28 17:19:52 +00:00
|
|
|
// Make same height as "unsubscribe" button
|
|
|
|
margin: 7px 0;
|
2021-05-05 11:44:51 +00:00
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
& + .ext-discussiontools-init-section-metaitem {
|
|
|
|
margin-left: 12px;
|
|
|
|
padding-left: 12px;
|
2023-04-02 20:57:43 +00:00
|
|
|
border-left: @border-width-base @border-style-base @border-color-base;
|
2021-05-05 11:44:51 +00:00
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-21 20:39:40 +00:00
|
|
|
h1 + .ext-discussiontools-init-section {
|
|
|
|
border-top: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2022-08-18 15:28:36 +00:00
|
|
|
// TOC can output a meta tag meaning we aren't the first child anymore
|
|
|
|
meta:first-child + .ext-discussiontools-init-section {
|
2022-06-28 14:17:33 +00:00
|
|
|
border-top: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
// Also re-style topic header input in new topic tool
|
|
|
|
h2.ext-discussiontools-ui-newTopic-sectionTitle .oo-ui-inputWidget-input {
|
2022-10-03 15:20:10 +00:00
|
|
|
font-weight: bold;
|
2021-01-28 17:19:52 +00:00
|
|
|
font-family: sans-serif;
|
2022-10-03 15:20:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.skin-minerva h2.ext-discussiontools-ui-newTopic-sectionTitle .oo-ui-inputWidget-input {
|
2022-08-18 14:52:15 +00:00
|
|
|
font-size: 0.75em;
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Mobile
|
|
|
|
&.skin-minerva .ext-discussiontools-init-section {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
border-bottom: 0 !important;
|
2022-08-18 14:52:15 +00:00
|
|
|
margin: 5px 0 0 0;
|
2021-01-28 17:19:52 +00:00
|
|
|
padding-bottom: 0;
|
|
|
|
// The tap-highlight is an odd shape and shows even for cancelled events on -actions,
|
|
|
|
// just hide it.
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
2023-04-02 20:57:43 +00:00
|
|
|
border-top: @border-width-base @border-style-base #eaecf0;
|
2021-01-28 17:19:52 +00:00
|
|
|
|
2022-10-18 00:27:35 +00:00
|
|
|
> h2,
|
2021-01-28 17:19:52 +00:00
|
|
|
> .mw-headline {
|
|
|
|
width: auto;
|
|
|
|
flex-grow: 1;
|
2022-10-18 00:27:35 +00:00
|
|
|
// Needed to display multi-line headings correctly (because of flex-wrap on the parent, they
|
|
|
|
// would be put on a line of their own otherwise)
|
2021-01-28 17:19:52 +00:00
|
|
|
flex-basis: 0;
|
2022-10-18 00:27:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-headline {
|
2022-08-18 14:52:15 +00:00
|
|
|
/* T311612 */
|
|
|
|
font-size: 0.75em;
|
|
|
|
}
|
|
|
|
|
2023-09-28 11:00:36 +00:00
|
|
|
/* TODO: Remove reference to ellipsisButton after parser cache is updated */
|
2023-01-24 10:09:49 +00:00
|
|
|
&-bar,
|
2023-09-28 11:00:36 +00:00
|
|
|
&-overflowMenuButton,
|
2023-01-24 10:09:49 +00:00
|
|
|
&-ellipsisButton {
|
|
|
|
font-size: 0.875em;
|
|
|
|
}
|
|
|
|
|
2023-09-28 11:00:36 +00:00
|
|
|
/* TODO: Remove reference to ellipsisButton after parser cache is updated */
|
2022-08-18 14:52:15 +00:00
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
> .indicator,
|
2023-09-28 11:00:36 +00:00
|
|
|
&-overflowMenuButton,
|
2022-08-18 14:52:15 +00:00
|
|
|
&-ellipsisButton {
|
|
|
|
// Adjust for smaller headings
|
|
|
|
margin-top: -5px;
|
|
|
|
margin-bottom: -5px;
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
2022-06-28 14:17:33 +00:00
|
|
|
&:first-child {
|
|
|
|
border-top: 0;
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-bar {
|
|
|
|
width: 100%;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2022-11-14 14:01:35 +00:00
|
|
|
&-actions,
|
|
|
|
&-metadata {
|
2021-01-28 17:19:52 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-11-14 14:01:35 +00:00
|
|
|
.client-js & {
|
|
|
|
&-actions,
|
|
|
|
&-metadata {
|
|
|
|
padding-left: 24px;
|
2022-11-28 23:26:16 +00:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2022-11-14 14:01:35 +00:00
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
|
2023-09-28 11:00:36 +00:00
|
|
|
/* TODO: Remove reference to ellipsisButton after parser cache is updated */
|
|
|
|
&-overflowMenuButton,
|
2022-11-14 14:01:35 +00:00
|
|
|
&-ellipsisButton {
|
2023-09-28 11:00:36 +00:00
|
|
|
font-weight: normal;
|
2022-11-14 14:01:35 +00:00
|
|
|
display: inline-block;
|
|
|
|
margin-right: -5px;
|
|
|
|
// Fix height so MenuWidget appears in the correct place with wrapped text (T311558)
|
|
|
|
height: 32px;
|
2022-11-28 23:26:16 +00:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
|
|
|
}
|
2022-11-14 14:01:35 +00:00
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
|
2022-11-14 14:01:35 +00:00
|
|
|
.mw-editsection {
|
|
|
|
// Replaced by the ellipsis button
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-authorCountLabel,
|
|
|
|
&-commentCountLabel {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-11-14 14:01:35 +00:00
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
&.section-heading .ext-discussiontools-init-section-actions {
|
|
|
|
// Hidden until expanded
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
&.open-block {
|
2022-08-18 14:50:34 +00:00
|
|
|
margin-bottom: 12px;
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
.ext-discussiontools-init-section-actions {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-ui-icon + span {
|
|
|
|
margin-left: 0;
|
2021-08-19 20:35:32 +00:00
|
|
|
}
|
2021-02-17 22:34:02 +00:00
|
|
|
}
|
2021-07-29 06:12:10 +00:00
|
|
|
|
2023-10-05 17:51:29 +00:00
|
|
|
&.skin-minerva .ext-discussiontools-init-section-overflowMenu {
|
|
|
|
// Not sure if this should have custom styles like this…
|
|
|
|
// They were once accidentally inherited from the heading,
|
|
|
|
// before the menu was moved to an overlay.
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 0.875em;
|
|
|
|
}
|
|
|
|
|
2022-08-26 20:05:24 +00:00
|
|
|
&.skin-minerva .mf-section-0 + .ext-discussiontools-init-section {
|
|
|
|
border-top: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2021-04-29 14:24:49 +00:00
|
|
|
}
|
|
|
|
|
2021-07-29 06:12:10 +00:00
|
|
|
.ext-discussiontools-emptystate {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2022-05-21 05:09:25 +00:00
|
|
|
// Add space between this and any existing page content above,
|
|
|
|
// or page-actions-menu in Minerva for non-existing pages
|
|
|
|
margin-top: 1em;
|
2022-08-02 17:37:12 +00:00
|
|
|
clear: both;
|
2021-04-29 14:24:49 +00:00
|
|
|
|
2021-08-11 19:33:43 +00:00
|
|
|
> img {
|
|
|
|
width: 250px;
|
2021-07-29 06:12:10 +00:00
|
|
|
}
|
2022-05-21 05:09:25 +00:00
|
|
|
|
2022-09-28 16:02:03 +00:00
|
|
|
&:not( :first-child ) {
|
2022-05-21 05:09:25 +00:00
|
|
|
// Separate from existing (non-discussion) content
|
|
|
|
margin-top: 2em;
|
|
|
|
padding-top: 1em;
|
2023-04-02 20:57:43 +00:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-base;
|
2022-05-21 05:09:25 +00:00
|
|
|
}
|
2021-07-29 06:12:10 +00:00
|
|
|
}
|
|
|
|
|
2022-04-01 17:34:53 +00:00
|
|
|
// Mobile
|
|
|
|
@media ( max-width: 719px ) {
|
|
|
|
.ext-discussiontools-emptystate {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.oo-ui-buttonElement {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
width: 80%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> img {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-27 15:06:22 +00:00
|
|
|
.ext-discussiontools-init-replylink-open {
|
|
|
|
.ext-discussiontools-emptystate,
|
2022-11-01 13:55:01 +00:00
|
|
|
.mw-body-content > .mw-message-box-warning {
|
|
|
|
// Top level warnings, such as "User account --- is not registered" will re-apppear
|
|
|
|
// in the new topic tool, so we can hide the original. (T289354#7312789)
|
2021-08-27 15:06:22 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-07-29 06:12:10 +00:00
|
|
|
}
|
2021-08-23 20:23:37 +00:00
|
|
|
|
2022-05-21 05:09:25 +00:00
|
|
|
.skin-minerva.ext-discussiontools-emptystate-shown {
|
2023-04-03 19:41:42 +00:00
|
|
|
// The mobile "Add topic" button is very eye-catching.
|
2022-05-21 05:09:25 +00:00
|
|
|
// No need to show it when the empty state banner is shown.
|
|
|
|
.ext-discussiontools-init-new-topic {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-23 20:23:37 +00:00
|
|
|
// Styles inspired by the Popups extension
|
|
|
|
// (and occasionally copypasted from there)
|
|
|
|
.ext-discussiontools-autotopicsubpopup {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
// Increase specificity to override .oo-ui-popupWidget
|
|
|
|
.oo-ui-popupWidget& {
|
|
|
|
// Animations
|
|
|
|
opacity: 0;
|
2021-12-09 15:11:04 +00:00
|
|
|
// Support: Safari
|
|
|
|
// 3D transform is needed to work around a Safari bug, which causes shadows to remain when the
|
|
|
|
// popup is removed (T297266, T226872). Otherwise this should just use 2D translate().
|
|
|
|
transform: translate3d( 0, -20px, 0 );
|
2021-08-23 20:23:37 +00:00
|
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
|
|
|
|
|
|
&-fadein {
|
|
|
|
opacity: 1;
|
2021-12-09 15:11:04 +00:00
|
|
|
// Support: Safari
|
|
|
|
// 3D transform is needed to work around a Safari bug, which causes shadows to remain when the
|
|
|
|
// popup is removed (T297266, T226872). Otherwise this should just use 2D translate().
|
|
|
|
transform: translate3d( 0, 0, 0 );
|
2021-08-23 20:23:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-popupWidget-popup {
|
|
|
|
padding: 1.5em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
// Center horizontally
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: 0 auto;
|
|
|
|
// Position above the highlight
|
|
|
|
bottom: 3em;
|
|
|
|
|
|
|
|
&.ext-discussiontools-autotopicsubpopup-overlap {
|
|
|
|
// If there isn't enough space above, position on top of the highlight
|
|
|
|
top: -1em;
|
|
|
|
bottom: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.2em;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-image {
|
|
|
|
/* @embed */
|
|
|
|
background: url( autotopicsubpopup-image.svg ) center center no-repeat;
|
|
|
|
width: 200px;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Desktop
|
|
|
|
@media ( min-width: 720px ) {
|
|
|
|
.oo-ui-popupWidget-popup {
|
|
|
|
width: 450px;
|
|
|
|
min-height: 200px;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-image {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 100%;
|
2021-12-15 23:43:56 +00:00
|
|
|
z-index: 1;
|
2021-08-23 20:23:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-body {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
margin-top: 1em;
|
2021-12-15 23:43:56 +00:00
|
|
|
margin-right: 200px;
|
2021-08-23 20:23:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-title,
|
|
|
|
&-actions {
|
2021-12-15 23:43:56 +00:00
|
|
|
margin-right: 150px;
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
2021-08-23 20:23:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mobile
|
|
|
|
@media ( max-width: 719px ) {
|
|
|
|
.oo-ui-popupWidget-popup {
|
|
|
|
width: 320px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-image {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-body {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-30 17:48:05 +00:00
|
|
|
|
2023-06-06 12:24:23 +00:00
|
|
|
// DiscussionTools automatically enables most features on mobile.
|
2023-04-03 19:41:42 +00:00
|
|
|
// When we detect that it's enabled, hide the lede section, and show a "Read as wiki page" button
|
2022-07-06 13:05:39 +00:00
|
|
|
// to reveal it.
|
2023-04-03 19:41:42 +00:00
|
|
|
// The button will disable all DT features by removing feature CSS classes.
|
2022-07-06 13:05:39 +00:00
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
.skin-minerva.ns-talk.ext-discussiontools-replytool-enabled {
|
2022-11-30 19:01:42 +00:00
|
|
|
&.ext-discussiontools-init-lede-hidden {
|
|
|
|
// .mw-body-content selector prevents this applying to content in the preview (T318758)
|
|
|
|
// On non-existent pages MobileFrontend wrapping isn't there
|
|
|
|
.mw-body-content > .mw-talkpageheader,
|
|
|
|
.mw-body-content > .mf-section-0,
|
|
|
|
.mw-body-content > .mw-parser-output > .mf-section-0 {
|
|
|
|
> *:not( .ext-discussiontools-emptystate ) {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-07-06 13:05:39 +00:00
|
|
|
|
2022-11-30 19:01:42 +00:00
|
|
|
> .ext-discussiontools-emptystate {
|
|
|
|
border-top: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2022-09-28 13:38:20 +00:00
|
|
|
}
|
2022-07-26 12:52:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-06 13:05:39 +00:00
|
|
|
.ext-discussiontools-init-readAsWikiPage {
|
|
|
|
display: block;
|
2022-11-01 13:55:45 +00:00
|
|
|
}
|
2022-11-16 21:01:17 +00:00
|
|
|
|
|
|
|
// Always hide the table of content. This is usually hidden by the mf-section-0 rules,
|
|
|
|
// but can sometimes appear elsewhere (e.g in the lede section overlay)
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
.toc {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-11-01 13:55:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.minerva-footer-button() {
|
|
|
|
width: 100%;
|
|
|
|
padding: 1em;
|
|
|
|
box-sizing: content-box;
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-progressive;
|
|
|
|
background: @background-color-interactive-subtle;
|
|
|
|
border-top: @border-width-base @border-style-base #eaecf0;
|
2022-11-01 13:55:45 +00:00
|
|
|
text-align: center;
|
2023-02-01 15:17:08 +00:00
|
|
|
|
2022-11-01 13:55:45 +00:00
|
|
|
// Match Minerva styles
|
|
|
|
max-width: 993.3px;
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
margin-left: -16px !important;
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
margin-right: -16px !important;
|
2022-11-28 23:26:16 +00:00
|
|
|
|
2023-02-01 15:17:08 +00:00
|
|
|
// Avoid smooshing with content / empty state (T320755)
|
|
|
|
margin-top: 32px;
|
|
|
|
// (it's not redundant longhand, some margins are !important and some aren't)
|
|
|
|
// stylelint-disable-next-line declaration-block-no-redundant-longhand-properties
|
|
|
|
margin-bottom: -32px;
|
|
|
|
|
2022-11-28 23:26:16 +00:00
|
|
|
@media print {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
|
|
|
}
|
2022-11-01 13:55:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-readAsWikiPage {
|
|
|
|
/* Not sticky per T309889 */
|
|
|
|
.minerva-footer-button();
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-new-topic {
|
|
|
|
.minerva-footer-button();
|
|
|
|
position: sticky;
|
|
|
|
// Required for IntersectionObserver trick
|
|
|
|
bottom: -1px;
|
|
|
|
transition: transform 250ms, opacity 250ms;
|
|
|
|
transform: translateY( 100% );
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
.ext-discussiontools-init-new-topic-open &,
|
|
|
|
.ext-discussiontools-init-new-topic-opened &,
|
|
|
|
.client-nojs & {
|
|
|
|
transform: translateY( 0 );
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-new-topic-close & {
|
|
|
|
transform: translateY( 100% );
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-new-topic-closed &,
|
|
|
|
.ext-discussiontools-init-virtual-keyboard-open &,
|
2023-02-01 18:45:34 +00:00
|
|
|
&-pinned {
|
2022-11-01 13:55:45 +00:00
|
|
|
transform: translateY( 0 );
|
|
|
|
opacity: 1;
|
|
|
|
position: static;
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-replylink-open & {
|
|
|
|
.ext-discussiontools-fake-disabled();
|
|
|
|
transform: translateY( 0 );
|
|
|
|
opacity: 1;
|
|
|
|
position: static;
|
2022-06-30 17:48:05 +00:00
|
|
|
}
|
2022-09-27 14:48:25 +00:00
|
|
|
}
|
|
|
|
|
2023-02-01 16:46:39 +00:00
|
|
|
// Tweak to prevent our footer buttons from overlapping Minerva skin elements (T328452).
|
2023-09-17 20:24:40 +00:00
|
|
|
// In cases where the "Read as wiki page" button is not shown:
|
|
|
|
.client-nojs .ext-discussiontools-init-new-topic,
|
|
|
|
.ext-discussiontools-init-new-topic-pinned.ext-discussiontools-init-button-notFlush {
|
2023-02-01 16:46:39 +00:00
|
|
|
margin-bottom: 32px;
|
|
|
|
}
|
|
|
|
|
2023-09-17 20:24:40 +00:00
|
|
|
// In cases where the "Read as wiki page" button is shown:
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
.client-js .skin-minerva.ns-talk.ext-discussiontools-replytool-enabled {
|
|
|
|
.ext-discussiontools-init-new-topic-pinned.ext-discussiontools-init-button-notFlush {
|
|
|
|
margin-bottom: -32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-readAsWikiPage.ext-discussiontools-init-button-notFlush {
|
|
|
|
margin-bottom: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-27 14:48:25 +00:00
|
|
|
.ext-discussiontools-init-lede-button-container {
|
|
|
|
margin: 0.5em 0;
|
2022-11-28 23:26:16 +00:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
|
|
|
}
|
2022-09-27 14:48:25 +00:00
|
|
|
}
|
|
|
|
|
2022-12-07 20:42:13 +00:00
|
|
|
// Boost specificity by adding .oo-ui-buttonElement
|
|
|
|
.ext-discussiontools-init-lede-button.oo-ui-buttonElement {
|
2022-09-27 14:48:25 +00:00
|
|
|
> .oo-ui-buttonElement-button {
|
|
|
|
font-weight: normal;
|
2022-12-07 20:42:13 +00:00
|
|
|
|
|
|
|
> .oo-ui-labelElement-label {
|
2023-04-02 20:57:43 +00:00
|
|
|
color: @color-subtle;
|
2022-12-07 20:42:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Boost specificity
|
|
|
|
> .oo-ui-iconElement-icon.oo-ui-iconElement-icon.oo-ui-iconElement-icon {
|
2023-04-02 20:57:43 +00:00
|
|
|
// When this opacity is applied to black color, we end up with exactly @color-subtle (`#54595d`)
|
|
|
|
opacity: @opacity-icon-subtle;
|
2022-12-07 20:42:13 +00:00
|
|
|
}
|
2022-09-27 14:48:25 +00:00
|
|
|
}
|
2022-06-30 17:48:05 +00:00
|
|
|
}
|
2022-08-01 21:19:14 +00:00
|
|
|
|
2023-02-01 14:37:01 +00:00
|
|
|
// Avoid double margin/padding caused by combining .oo-ui-panelLayout-padded and .content
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
.ext-discussiontools-ui-ledeSectionDialog-content.oo-ui-panelLayout-padded.content {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
2022-08-01 21:19:14 +00:00
|
|
|
// HACK: Fake disabled styles for the .mw-ui-button in Vector sticky header (T307726)
|
|
|
|
.ext-discussiontools-fake-disabled {
|
|
|
|
filter: saturate( 0 );
|
|
|
|
opacity: 0.8;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|