mediawiki-extensions-Discus.../modules/dt.init.less
David Lynch 91af0594b5 Apply an empty-state to pages with the new topic tool enabled
This includes the dtrepliedto URL functionality from
I3f81e4d77faed367606e47678b8896051982359d.

Bug: T274831
Bug: T274832
Bug: T277329
Change-Id: I035d04f30c8312b0cb42902d3bf940df1482ffb3
2021-08-04 18:46:28 -05:00

179 lines
3.7 KiB
Plaintext

span[ data-mw-comment-start ] {
// Give comment anchors a negative offset so we don't position
// them right at the edge of the page when jumping to them
position: relative;
top: -1em;
}
.ext-discussiontools-init-replylink-buttons {
user-select: none;
display: none;
.mw-content-ltr & {
/* @noflip */
margin-left: 0.5em;
}
.mw-content-rtl & {
/* @noflip */
margin-right: 0.5em;
}
.ext-discussiontools-replytool-enabled & {
// 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
display: inline-flex;
.client-nojs & {
display: none;
}
}
.ext-discussiontools-init-replylink {
&-reply {
cursor: pointer;
}
// Similar to mw-editsection-bracket
&-bracket {
color: #54595d;
.mw-content-ltr &:first-of-type,
.mw-content-rtl &:not( :first-of-type ) {
/* @noflip */
margin-right: 0.25em;
}
.mw-content-ltr &:not( :first-of-type ),
.mw-content-rtl &:first-of-type {
/* @noflip */
margin-left: 0.25em;
}
}
}
&.ext-discussiontools-init-replylink-active {
visibility: hidden;
}
.ext-discussiontools-init-replylink-open & > a {
color: #72777d;
pointer-events: none;
}
@media print {
display: none;
}
}
.ext-discussiontools-init-highlight {
position: absolute;
pointer-events: none;
opacity: 0;
}
@supports ( mix-blend-mode: multiply ) {
.ext-discussiontools-init-highlight {
mix-blend-mode: multiply;
// Support: Safari
// Safari doesn't blend this overlay with the text unless GPU rendering is forced.
transform: translateZ( 0 );
}
}
.ext-discussiontools-init-highlight-fadein {
opacity: 1;
}
.ext-discussiontools-init-highlight-fadeout {
opacity: 0;
transition: opacity 250ms ease-out;
}
.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 );
}
@supports ( mix-blend-mode: multiply ) {
.ext-discussiontools-init-publishedcomment {
background-color: #ffe29e;
}
}
.ext-discussiontools-init-targetcomment {
// Support: IE11, see above
background-color: rgba( 216, 235, 255, 0.5 );
}
@supports ( mix-blend-mode: multiply ) {
.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;
}
}
// NB Directional properties for anything immediately visible
// in the header must be based on content direction.
.ext-discussiontools-init-section {
&-subscribe {
display: none;
.mw-content-ltr & {
/* @noflip */
float: right;
}
.mw-content-rtl & {
/* @noflip */
float: left;
}
&.mw-editsection-like {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
margin-top: 0.7em;
}
.ext-discussiontools-topicsubscription-enabled & {
display: block;
}
// Similar to mw-editsection-bracket
&-bracket {
color: #54595d;
.mw-content-ltr &:first-of-type,
.mw-content-rtl &:not( :first-of-type ) {
/* @noflip */
margin-right: 0.25em;
}
.mw-content-ltr &:not( :first-of-type ),
.mw-content-rtl &:first-of-type {
/* @noflip */
margin-left: 0.25em;
}
}
}
}
.ext-discussiontools-emptystate {
display: flex;
justify-content: space-between;
.ext-discussiontools-emptystate-text > p {
margin: 2em 0;
}
}
.ext-discussiontools-init-replylink-open .ext-discussiontools-emptystate {
display: none;
}