2022-08-26 10:43:54 +00:00
|
|
|
/* stylelint-disable no-descending-specificity */
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
@import 'mediawiki.ui/variables.less';
|
|
|
|
|
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;
|
|
|
|
|
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-08 17:05:32 +00:00
|
|
|
/* @noflip */
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2022-08-26 10:43:54 +00:00
|
|
|
.mw-content-rtl,
|
|
|
|
.mw-content-ltr .mw-content-rtl & {
|
2021-01-08 17:05:32 +00:00
|
|
|
/* @noflip */
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-replytool-enabled & {
|
2021-02-10 15:36:13 +00:00
|
|
|
// Chromium bug (T260072): Element with `user-select: none` at the end of a paragraph causes
|
|
|
|
// triple-click (to select the paragraph) to also select the first character of the next paragraph
|
|
|
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1116214
|
2021-06-10 17:32:17 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
2021-02-10 15:36:13 +00:00
|
|
|
display: inline-flex;
|
|
|
|
|
|
|
|
.client-nojs & {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-09-16 12:07:27 +00:00
|
|
|
}
|
|
|
|
|
2020-12-15 19:45:05 +00:00
|
|
|
// No support for reply links in the mobile talk overlay
|
2022-08-26 10:43:54 +00:00
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
2020-12-15 19:45:05 +00:00
|
|
|
.talk-overlay & {
|
|
|
|
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 {
|
|
|
|
color: #54595d;
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2020-04-20 22:49:20 +00:00
|
|
|
|
2022-01-07 17:00:01 +00:00
|
|
|
// Similar to mw-editsection-divider
|
|
|
|
&-divider {
|
|
|
|
color: #54595d;
|
2022-01-09 00:42:25 +00:00
|
|
|
// display:inline-flex causes whitespace to collapse
|
|
|
|
white-space: pre;
|
2022-01-07 17:00:01 +00:00
|
|
|
}
|
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 {
|
|
|
|
color: #202122;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-04-21 13:08:59 +00:00
|
|
|
.ext-discussiontools-init-replybutton .oo-ui-iconElement-icon.oo-ui-icon-share {
|
|
|
|
transform: scaleX( -1 );
|
|
|
|
}
|
|
|
|
|
2020-08-10 15:54:45 +00:00
|
|
|
@media print {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-10-30 16:12:27 +00:00
|
|
|
}
|
2019-11-13 13:57:57 +00:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-06-10 17:32:17 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
Handle highlighting and scrolling to comments for bundled notifications
Notifications are bundled by section, so instead of linking to the
comment, link to the section.
Additionally, add a parameter to the URL listing all the comment IDs
from the bundle, and highlight them all and scroll to the topmost one.
Having to handle both URL fragments and URL query parameters makes
this code kind of a mess :(
Also, some unexpected changes became necessary:
* EventDispatcher.php: Store the section title in events using
HeadingItem::getLinkableTitle() instead of ThreadItem::getText().
The result is mostly the same, except in case of wacky markup like
images or extension tags. We can more reliably use it to link to the
section on the page, and we already use getLinkableTitle() when
generating edit summaries in the reply tool for this reason.
* dt.init.less: Change the mix-blend-mode for the highlights from
'multiply' to 'darken', so that multiple overlapping highlights do
not look more opaque. This affects how the highlights look on
non-white backgrounds and images (they're less blue, and on darker
backgrounds entirely invisible), but it seems worth it.
Bug: T286620
Change-Id: I21bb5c003abc2747f0350d3f3af558dfb55693e9
2021-08-05 20:04:17 +00:00
|
|
|
@supports ( mix-blend-mode: darken ) {
|
2021-05-31 19:31:01 +00:00
|
|
|
.ext-discussiontools-init-highlight {
|
2021-06-10 17:32:17 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
Handle highlighting and scrolling to comments for bundled notifications
Notifications are bundled by section, so instead of linking to the
comment, link to the section.
Additionally, add a parameter to the URL listing all the comment IDs
from the bundle, and highlight them all and scroll to the topmost one.
Having to handle both URL fragments and URL query parameters makes
this code kind of a mess :(
Also, some unexpected changes became necessary:
* EventDispatcher.php: Store the section title in events using
HeadingItem::getLinkableTitle() instead of ThreadItem::getText().
The result is mostly the same, except in case of wacky markup like
images or extension tags. We can more reliably use it to link to the
section on the page, and we already use getLinkableTitle() when
generating edit summaries in the reply tool for this reason.
* dt.init.less: Change the mix-blend-mode for the highlights from
'multiply' to 'darken', so that multiple overlapping highlights do
not look more opaque. This affects how the highlights look on
non-white backgrounds and images (they're less blue, and on darker
backgrounds entirely invisible), but it seems worth it.
Bug: T286620
Change-Id: I21bb5c003abc2747f0350d3f3af558dfb55693e9
2021-08-05 20:04:17 +00:00
|
|
|
mix-blend-mode: darken;
|
2020-12-14 22:56:08 +00:00
|
|
|
// 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 {
|
|
|
|
// Support: IE11
|
|
|
|
// On supporting browsers, we instead use non-transparent color with mix-blend-mode.
|
|
|
|
// Identical to #ffe29e on white background.
|
|
|
|
background-color: rgba( 255, 198, 60, 0.5 );
|
|
|
|
}
|
|
|
|
|
2021-06-10 17:32:17 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
Handle highlighting and scrolling to comments for bundled notifications
Notifications are bundled by section, so instead of linking to the
comment, link to the section.
Additionally, add a parameter to the URL listing all the comment IDs
from the bundle, and highlight them all and scroll to the topmost one.
Having to handle both URL fragments and URL query parameters makes
this code kind of a mess :(
Also, some unexpected changes became necessary:
* EventDispatcher.php: Store the section title in events using
HeadingItem::getLinkableTitle() instead of ThreadItem::getText().
The result is mostly the same, except in case of wacky markup like
images or extension tags. We can more reliably use it to link to the
section on the page, and we already use getLinkableTitle() when
generating edit summaries in the reply tool for this reason.
* dt.init.less: Change the mix-blend-mode for the highlights from
'multiply' to 'darken', so that multiple overlapping highlights do
not look more opaque. This affects how the highlights look on
non-white backgrounds and images (they're less blue, and on darker
backgrounds entirely invisible), but it seems worth it.
Bug: T286620
Change-Id: I21bb5c003abc2747f0350d3f3af558dfb55693e9
2021-08-05 20:04:17 +00:00
|
|
|
@supports ( mix-blend-mode: darken ) {
|
2021-04-29 18:03:37 +00:00
|
|
|
.ext-discussiontools-init-publishedcomment {
|
|
|
|
background-color: #ffe29e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-targetcomment {
|
|
|
|
// Support: IE11, see above
|
|
|
|
background-color: rgba( 216, 235, 255, 0.5 );
|
|
|
|
}
|
|
|
|
|
2021-06-10 17:32:17 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
Handle highlighting and scrolling to comments for bundled notifications
Notifications are bundled by section, so instead of linking to the
comment, link to the section.
Additionally, add a parameter to the URL listing all the comment IDs
from the bundle, and highlight them all and scroll to the topmost one.
Having to handle both URL fragments and URL query parameters makes
this code kind of a mess :(
Also, some unexpected changes became necessary:
* EventDispatcher.php: Store the section title in events using
HeadingItem::getLinkableTitle() instead of ThreadItem::getText().
The result is mostly the same, except in case of wacky markup like
images or extension tags. We can more reliably use it to link to the
section on the page, and we already use getLinkableTitle() when
generating edit summaries in the reply tool for this reason.
* dt.init.less: Change the mix-blend-mode for the highlights from
'multiply' to 'darken', so that multiple overlapping highlights do
not look more opaque. This affects how the highlights look on
non-white backgrounds and images (they're less blue, and on darker
backgrounds entirely invisible), but it seems worth it.
Bug: T286620
Change-Id: I21bb5c003abc2747f0350d3f3af558dfb55693e9
2021-08-05 20:04:17 +00:00
|
|
|
@supports ( mix-blend-mode: darken ) {
|
2021-04-29 18:03:37 +00:00
|
|
|
.ext-discussiontools-init-targetcomment {
|
|
|
|
// 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-01-28 17:19:52 +00:00
|
|
|
.ext-discussiontools-init-new-topic {
|
2022-08-18 14:52:15 +00:00
|
|
|
margin: 0.5em 0;
|
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 {
|
|
|
|
color: #54595d;
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Topic subscriptions (button)
|
|
|
|
.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
|
|
|
|
|
|
|
body:not( .skin-minerva ) & {
|
|
|
|
// stylelint-disable-next-line declaration-property-unit-disallowed-list
|
|
|
|
font-size: 14px;
|
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;
|
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Visual enhancements disabled
|
2022-06-30 21:27:51 +00:00
|
|
|
.ext-discussiontools-init-section-ellipsisButton.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 {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
|
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 20:43:05 +00:00
|
|
|
// Handle cached HTML: don't hide if the button is missing (TODO remove the -replybutton selector)
|
|
|
|
.ext-discussiontools-init-replybutton ~ .ext-discussiontools-init-replylink-bracket,
|
|
|
|
.ext-discussiontools-init-replybutton ~ .ext-discussiontools-init-replylink-reply,
|
|
|
|
.ext-discussiontools-init-replybutton ~ .ext-discussiontools-init-replylink-divider {
|
2022-04-21 13:08:59 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-replybutton.oo-ui-buttonElement {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not( .skin-minerva ) .ext-discussiontools-init-replybutton.oo-ui-buttonElement {
|
|
|
|
// Slim height for inline placement. Minerva uses block placement.
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
min-height: 0;
|
|
|
|
margin-top: -8px;
|
|
|
|
margin-bottom: -6px;
|
2022-09-29 13:42:11 +00:00
|
|
|
|
|
|
|
> .oo-ui-buttonElement-button {
|
|
|
|
padding: 4px 6px;
|
|
|
|
}
|
2022-04-21 13:08:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.skin-minerva .ext-discussiontools-init-replylink-buttons {
|
|
|
|
margin-left: 0;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
.sidebar-toc .sidebar-toc-list-item {
|
2022-09-02 13:43:19 +00:00
|
|
|
margin: 8px 0;
|
2022-04-07 00:00:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-init-sidebar-meta {
|
2022-09-02 13:43:19 +00:00
|
|
|
display: block;
|
2022-04-07 00:00:05 +00:00
|
|
|
color: #666;
|
|
|
|
white-space: nowrap;
|
|
|
|
font-size: 0.875em;
|
|
|
|
}
|
2022-04-19 17:43:49 +00:00
|
|
|
}
|
|
|
|
|
2022-04-21 13:08:59 +00:00
|
|
|
// Main feature (topic containers)
|
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;
|
2022-06-28 14:17:33 +00:00
|
|
|
border-top: 1px solid #a2a9b1;
|
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
|
|
|
|
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 {
|
|
|
|
// stylelint-disable-next-line declaration-property-unit-disallowed-list
|
|
|
|
font-size: 14px;
|
|
|
|
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;
|
|
|
|
color: #666;
|
|
|
|
// 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;
|
|
|
|
border-left: 1px solid #a2a9b1;
|
2021-05-05 11:44:51 +00:00
|
|
|
}
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
2021-05-05 11:44:51 +00:00
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
&-actions {
|
|
|
|
margin-left: auto;
|
2022-06-29 23:38:12 +00:00
|
|
|
// Prevent the focus outline from being cut off (T311662), do not set to negative values
|
|
|
|
margin-right: 0;
|
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 {
|
|
|
|
font-family: sans-serif;
|
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;
|
2022-06-28 14:17:33 +00:00
|
|
|
border-top: 1px solid #eaecf0;
|
2021-01-28 17:19:52 +00:00
|
|
|
|
|
|
|
> .mw-headline {
|
|
|
|
width: auto;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-basis: 0;
|
2022-08-18 14:52:15 +00:00
|
|
|
/* T311612 */
|
|
|
|
font-size: 0.75em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
> .indicator,
|
|
|
|
&-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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
2022-06-24 16:25:06 +00:00
|
|
|
padding-left: 24px;
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
&.section-heading .ext-discussiontools-init-section-actions {
|
|
|
|
// Hidden until expanded
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-ellipsisButton {
|
|
|
|
display: inline-block;
|
2022-06-24 16:25:06 +00:00
|
|
|
// stylelint-disable-next-line declaration-property-unit-disallowed-list
|
|
|
|
font-size: 14px;
|
2022-06-29 11:22:53 +00:00
|
|
|
margin-right: -5px;
|
2022-06-29 11:27:13 +00:00
|
|
|
// Fix height so MenuWidget appears in the correct place with wrapped text (T311558)
|
|
|
|
height: 32px;
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-metadata {
|
|
|
|
width: 100%;
|
|
|
|
padding-left: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-authorCountLabel,
|
|
|
|
&-commentCountLabel {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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-editsection {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
2021-02-17 22:34:02 +00:00
|
|
|
}
|
2021-08-19 20:35:32 +00:00
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
.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
|
|
|
|
2022-08-26 20:05:24 +00:00
|
|
|
&.skin-minerva .mf-section-0 + .ext-discussiontools-init-section {
|
|
|
|
border-top: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2021-01-28 17:19:52 +00:00
|
|
|
&.skin-monobook .ext-discussiontools-init-section {
|
|
|
|
&-bar {
|
|
|
|
// stylelint-disable-next-line declaration-property-unit-disallowed-list
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
2022-06-29 23:38:12 +00:00
|
|
|
// Prevent the Apex theme focus outline from being cut off (T311662)
|
|
|
|
margin-right: 4px;
|
2021-01-28 17:19:52 +00:00
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
border-top: 1px solid #a2a9b1;
|
|
|
|
}
|
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-02-09 20:35:49 +00:00
|
|
|
> .mw-message-box-warning {
|
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 {
|
|
|
|
// The Minerva "Add topic" button is very eye-catching.
|
|
|
|
// No need to show it when the empty state banner is shown.
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
.minerva-talk-add-button,
|
|
|
|
.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
|
|
|
|
2022-07-06 13:05:39 +00:00
|
|
|
// DiscussionToolsEnableMobile disables the Minerva simplified talk page
|
|
|
|
// (SkinMinerva::isSimplifiedTalkPageEnabled). This is enabled on all pages
|
|
|
|
// in the talk namespace (with wikitext content model, but this file is not
|
|
|
|
// loaded on non-wikitext pages).
|
|
|
|
//
|
|
|
|
// DiscussionToolsEnableMobile enables multiple features, including the reply tool.
|
|
|
|
//
|
|
|
|
// Whenever we detect that DiscussionToolsEnableMobile is disabling the Minerva
|
|
|
|
// simplified talk page, hide the lede section, and show a "Read as wiki page" button
|
|
|
|
// to reveal it.
|
|
|
|
//
|
|
|
|
// The button will disable all DT features byt remove feature CSS classes.
|
|
|
|
// stylelint-disable-next-line selector-class-pattern
|
|
|
|
.skin-minerva.ns-talk.ext-discussiontools-replytool-enabled {
|
2022-09-28 13:38:20 +00:00
|
|
|
// .mw-body-content selector prevents this applying to content in the preview (T318758)
|
|
|
|
.mw-body-content > .mw-parser-output > .mf-section-0 {
|
|
|
|
> *:not( .ext-discussiontools-emptystate ) {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-07-06 13:05:39 +00:00
|
|
|
|
2022-09-28 13:38:20 +00:00
|
|
|
> .ext-discussiontools-emptystate {
|
|
|
|
border-top: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2022-07-26 12:52:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-06 13:05:39 +00:00
|
|
|
.ext-discussiontools-init-readAsWikiPage {
|
|
|
|
display: block;
|
|
|
|
/* Not sticky per T309889 */
|
|
|
|
width: 100%;
|
|
|
|
padding: 1em;
|
|
|
|
color: @colorProgressive;
|
|
|
|
background: @colorGray15;
|
|
|
|
border-top: 1px solid @colorGray14;
|
|
|
|
text-align: center;
|
2022-06-30 17:48:05 +00:00
|
|
|
}
|
|
|
|
}
|
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 {
|
|
|
|
// stylelint-disable-next-line plugin/no-unsupported-browser-features
|
|
|
|
filter: saturate( 0 );
|
|
|
|
opacity: 0.8;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|