2020-12-15 19:45:05 +00:00
|
|
|
@width-breakpoint-tablet: 720px;
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-ui-replyWidget {
|
2020-04-07 14:33:32 +00:00
|
|
|
margin-bottom: 1em;
|
2020-04-27 16:23:27 +00:00
|
|
|
position: relative;
|
|
|
|
clear: both;
|
2022-04-19 19:58:20 +00:00
|
|
|
// This is in user language, do not inherit text-align from the content (T306137).
|
|
|
|
// 'initial' is not widely supported, but luckily, browsers that don't support it (IE 11) also
|
|
|
|
// don't suffer from that bug. We can't set 'text-align: left' (and rely on flipping), because
|
|
|
|
// that would affect the input field, which is in content language.
|
2021-06-10 17:32:17 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
2022-04-19 19:58:20 +00:00
|
|
|
text-align: initial;
|
2021-04-14 18:18:43 +00:00
|
|
|
}
|
2020-04-07 14:33:32 +00:00
|
|
|
|
2021-04-14 18:18:43 +00:00
|
|
|
// @supports does not work when nested
|
2021-06-10 17:32:17 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
2021-04-14 18:18:43 +00:00
|
|
|
@supports ( display: flow-root ) {
|
|
|
|
.ext-discussiontools-ui-replyWidget {
|
|
|
|
// Allow the widget to be squished next to floating elements (T278476).
|
|
|
|
//
|
|
|
|
// To ensure that everything is squished to the same width, introduce a block formatting context
|
|
|
|
// (otherwise the preview or textarea could be wider than the container and mess up the layout).
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
|
|
|
|
//
|
|
|
|
// All of the usual ways to do this (listed on that page) have unwanted side-effects
|
|
|
|
// (in particular, `overflow: hidden` cuts off VE inspectors), so we must use this relatively
|
|
|
|
// recent property, and only apply this fix on supporting browsers, notably excluding IE 11
|
|
|
|
// (https://caniuse.com/?search=flow-root)
|
|
|
|
display: flow-root;
|
|
|
|
min-width: 250px;
|
|
|
|
clear: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-ui-replyWidget { /* stylelint-disable-line no-duplicate-selectors */
|
2022-05-05 17:08:24 +00:00
|
|
|
&-bodyWrapper > .oo-ui-textInputWidget {
|
2019-11-22 21:53:31 +00:00
|
|
|
max-width: none;
|
2020-03-04 14:40:55 +00:00
|
|
|
|
|
|
|
.oo-ui-inputWidget-input {
|
|
|
|
line-height: 1.5em;
|
2021-01-03 16:22:13 +00:00
|
|
|
overflow-y: hidden;
|
2022-05-05 17:08:24 +00:00
|
|
|
// Leave space for newComments button
|
|
|
|
padding-bottom: 22px;
|
2020-03-04 14:40:55 +00:00
|
|
|
}
|
2019-11-22 21:53:31 +00:00
|
|
|
}
|
|
|
|
|
2020-04-27 15:42:35 +00:00
|
|
|
.ve-ui-targetToolbar > .oo-ui-toolbar-bar {
|
|
|
|
background: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border: 0;
|
2020-12-15 19:45:05 +00:00
|
|
|
// Stretch to all available space
|
|
|
|
flex-grow: 1;
|
2020-04-27 15:42:35 +00:00
|
|
|
}
|
|
|
|
|
2020-06-11 15:02:37 +00:00
|
|
|
.oo-ui-toolbar-position-top .ve-ui-toolbarDialog-position-above {
|
|
|
|
border-top: 0;
|
|
|
|
|
|
|
|
.oo-ui-window-body {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-28 22:08:54 +00:00
|
|
|
.ve-ui-targetToolbar {
|
2020-07-31 20:24:51 +00:00
|
|
|
display: flex;
|
|
|
|
// Allow wrapping when the space is very narrow (mode switcher above toolbar)
|
|
|
|
flex-wrap: wrap-reverse;
|
2021-02-28 22:08:54 +00:00
|
|
|
|
|
|
|
> .oo-ui-windowManager {
|
|
|
|
flex-basis: 100%;
|
|
|
|
box-shadow: 0 -1px 1px 0 rgba( 0, 0, 0, 0.1 );
|
|
|
|
}
|
2020-07-31 20:24:51 +00:00
|
|
|
}
|
|
|
|
|
2020-12-15 19:45:05 +00:00
|
|
|
.skin-minerva & .ve-ui-surface-visual .ve-ce-paragraphNode {
|
|
|
|
// Reduce paragraph spacing in editor, as replies will actually generate <dd> not <p>
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-27 16:23:27 +00:00
|
|
|
&-modeTabs {
|
|
|
|
box-shadow: none;
|
|
|
|
height: 3em;
|
2020-07-06 19:29:08 +00:00
|
|
|
text-align: right;
|
2021-02-25 22:29:22 +00:00
|
|
|
// Hide outline that can appear after switching modes via keyboard
|
|
|
|
outline: 0;
|
2020-07-06 19:29:08 +00:00
|
|
|
|
|
|
|
.oo-ui-tabOptionWidget:last-child {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
2021-02-25 22:29:22 +00:00
|
|
|
|
|
|
|
// When mode tabs are focussed, the only available option uses the same styles as normal focus
|
|
|
|
.ext-discussiontools-ui-modeTab.oo-ui-optionWidget-highlighted {
|
|
|
|
color: #36c;
|
|
|
|
border-radius: 2px;
|
|
|
|
box-shadow: inset 0 0 0 2px #36c;
|
|
|
|
}
|
|
|
|
|
|
|
|
// The unavailable option in mode tabs is disabled, to make it un-interactable, but we want it
|
|
|
|
// to look as if it was selected
|
|
|
|
.ext-discussiontools-ui-modeTab.oo-ui-widget-disabled {
|
|
|
|
color: #36c;
|
|
|
|
box-shadow: inset 0 -2px 0 0 #36c;
|
|
|
|
}
|
2020-04-27 16:23:27 +00:00
|
|
|
}
|
|
|
|
|
2020-12-15 19:45:05 +00:00
|
|
|
&-editSwitch {
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
.oo-ui-toolbar-bar { /* stylelint-disable-line no-descending-specificity */
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-toolbar-popups {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-03 20:34:13 +00:00
|
|
|
&-actionsWrapper {
|
|
|
|
margin-top: 0.5em;
|
2020-07-31 20:24:51 +00:00
|
|
|
display: flex;
|
|
|
|
// Allow wrapping when the space is very narrow (buttons above the footer text)
|
|
|
|
flex-wrap: wrap-reverse;
|
|
|
|
// When wrapping, align actions to the right
|
|
|
|
justify-content: flex-end;
|
2020-02-03 20:34:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
2020-07-31 20:24:51 +00:00
|
|
|
// Add spacing before the footer when wrapping
|
|
|
|
margin-bottom: 0.5em;
|
2020-02-03 20:34:13 +00:00
|
|
|
margin-left: 3em;
|
|
|
|
white-space: nowrap;
|
2019-12-09 14:20:06 +00:00
|
|
|
}
|
|
|
|
|
2020-03-12 19:58:36 +00:00
|
|
|
&-footer {
|
2020-07-31 20:24:51 +00:00
|
|
|
// Preferred width; if there isn't enough space, this wraps under the actions
|
|
|
|
flex-basis: 20em;
|
|
|
|
// Stretch to all available space
|
2019-12-09 14:20:06 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
font-size: 0.75em;
|
|
|
|
color: #54595d;
|
2020-03-12 19:58:36 +00:00
|
|
|
|
2021-09-21 10:15:44 +00:00
|
|
|
> * {
|
2020-04-07 14:33:32 +00:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2020-03-12 19:58:36 +00:00
|
|
|
}
|
2021-09-21 10:15:44 +00:00
|
|
|
|
|
|
|
&-links {
|
|
|
|
// Extra specificity to override rules from MediaWiki
|
|
|
|
.mw-content-ltr &,
|
|
|
|
.mw-content-rtl & {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: ' • ';
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child:after {
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-22 21:53:31 +00:00
|
|
|
}
|
2019-11-19 19:33:14 +00:00
|
|
|
|
2019-11-20 20:27:08 +00:00
|
|
|
&-preview {
|
2020-02-03 20:34:13 +00:00
|
|
|
background: #f6f6f6;
|
|
|
|
padding: 0.5em 1em;
|
2022-02-14 19:42:45 +00:00
|
|
|
// Establish a block formatting context, so that floated content (e.g. image thumbnails)
|
|
|
|
// doesn't leak out and mess up our layout. (Also hides the 'Preview' label when empty.)
|
|
|
|
overflow: hidden;
|
2020-02-03 20:34:13 +00:00
|
|
|
|
|
|
|
&:empty {
|
2020-03-23 22:50:03 +00:00
|
|
|
height: 0;
|
|
|
|
padding: 0;
|
2020-02-03 20:34:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: attr( data-label );
|
|
|
|
color: #808080;
|
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-ui-replyWidget:not( .ext-discussiontools-ui-replyWidget-newTopic ) & > .mw-parser-output {
|
2020-02-03 20:34:13 +00:00
|
|
|
margin-left: -1.6em;
|
2020-12-15 19:45:05 +00:00
|
|
|
|
|
|
|
.skin-minerva & {
|
|
|
|
margin-left: -1em;
|
|
|
|
}
|
2020-02-03 20:34:13 +00:00
|
|
|
}
|
2020-08-29 12:00:51 +00:00
|
|
|
|
|
|
|
> .mw-parser-output > h2:first-child {
|
|
|
|
// Remove excess spacing above section title for preview
|
|
|
|
padding-top: 0;
|
|
|
|
margin-top: 0.25em;
|
|
|
|
}
|
2019-11-20 20:27:08 +00:00
|
|
|
}
|
|
|
|
|
2022-05-05 17:08:24 +00:00
|
|
|
&-bodyWrapper {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-02-02 16:18:01 +00:00
|
|
|
&-newComments {
|
2022-05-05 17:08:24 +00:00
|
|
|
position: absolute;
|
|
|
|
bottom: -1em;
|
|
|
|
left: 50%;
|
|
|
|
transition: transform 250ms ease-in, opacity 250ms ease-in;
|
|
|
|
transform: translate( -50%, 30px );
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&-open {
|
|
|
|
transform: translate( -50%, 0 );
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Same border-radius is applied to all these elements to ensure that the trimmed-off corner
|
|
|
|
// areas don't capture clicks
|
|
|
|
&,
|
|
|
|
.oo-ui-buttonElement-framed:first-child,
|
|
|
|
.oo-ui-buttonElement-framed:first-child .oo-ui-buttonElement-button {
|
|
|
|
border-bottom-left-radius: 1.1em;
|
|
|
|
border-top-left-radius: 1.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Same border-radius is applied to all these elements to ensure that the trimmed-off corner
|
|
|
|
// areas don't capture clicks
|
|
|
|
&,
|
|
|
|
.oo-ui-buttonElement-framed:last-child,
|
|
|
|
.oo-ui-buttonElement-framed:last-child .oo-ui-buttonElement-button {
|
|
|
|
border-bottom-right-radius: 1.1em;
|
|
|
|
border-top-right-radius: 1.1em;
|
|
|
|
}
|
2022-02-02 16:18:01 +00:00
|
|
|
}
|
|
|
|
|
2020-12-11 16:27:07 +00:00
|
|
|
&-anonWarning,
|
|
|
|
&-advanced {
|
|
|
|
&.oo-ui-messageWidget-block {
|
|
|
|
padding: 8px 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-captcha {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-error {
|
|
|
|
margin-bottom: 0.5em;
|
2020-03-09 19:35:15 +00:00
|
|
|
}
|
|
|
|
|
2020-02-03 20:34:13 +00:00
|
|
|
&-anonWarning {
|
2020-08-25 12:31:54 +00:00
|
|
|
margin-bottom: 0.5em;
|
2020-02-03 20:34:13 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-12-16 14:16:53 +00:00
|
|
|
// Allow wrapping when the space is very narrow (buttons below the warning text)
|
|
|
|
flex-wrap: wrap;
|
|
|
|
// When wrapping, align actions to the right
|
|
|
|
justify-content: flex-end;
|
2020-02-03 20:34:13 +00:00
|
|
|
|
|
|
|
&.oo-ui-messageWidget-block {
|
|
|
|
> .oo-ui-iconElement-icon {
|
|
|
|
background-position: center center;
|
|
|
|
transform: scale( 1.5 );
|
2020-06-30 14:19:13 +00:00
|
|
|
transform-origin: 0 center;
|
2020-12-16 14:16:53 +00:00
|
|
|
left: 1em;
|
2022-06-03 15:33:26 +00:00
|
|
|
|
|
|
|
// Hide warning icon below tablet width
|
|
|
|
@media all and ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
& {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-02-03 20:34:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .oo-ui-labelElement-label {
|
|
|
|
flex-grow: 1;
|
2020-12-16 14:16:53 +00:00
|
|
|
flex-basis: 20em;
|
2020-06-30 14:19:13 +00:00
|
|
|
margin-left: 3em;
|
2022-06-03 15:33:26 +00:00
|
|
|
|
|
|
|
// Hide warning icon below tablet width
|
|
|
|
@media all and ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
& {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-02-03 20:34:13 +00:00
|
|
|
}
|
2020-09-24 14:49:33 +00:00
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
.ext-discussiontools-ui-replyWidget-actions {
|
2020-09-24 14:49:33 +00:00
|
|
|
// Fix alignment within message widget
|
2020-12-16 14:16:53 +00:00
|
|
|
margin-top: 0.5em;
|
2020-09-24 14:49:33 +00:00
|
|
|
}
|
2019-11-19 19:33:14 +00:00
|
|
|
}
|
2020-03-04 16:19:19 +00:00
|
|
|
|
2021-03-22 16:28:13 +00:00
|
|
|
&-editSummaryField {
|
|
|
|
// We want to display the "Summary" label and the checkboxes on the same line (above the summary
|
|
|
|
// field), but prevent them from overlapping if there's not enough space. The checkboxes are
|
|
|
|
// after the summary field in the DOM for accessibility reasons, but we want to display them
|
|
|
|
// above it, and we can't achieve this with floats.
|
|
|
|
.oo-ui-fieldLayout-body {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row-reverse wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-ui-replyWidget-checkboxes {
|
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-fieldLayout-header {
|
|
|
|
order: 2;
|
|
|
|
// Stretch to all available space on the line
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-fieldLayout-field {
|
|
|
|
order: 3;
|
|
|
|
// Force to a separate line
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-12-15 19:45:05 +00:00
|
|
|
|
|
|
|
// Change field layout and order on mobile
|
|
|
|
@media all and ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
.oo-ui-fieldLayout-header {
|
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-fieldLayout-field {
|
|
|
|
order: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ext-discussiontools-ui-replyWidget-checkboxes {
|
|
|
|
order: 3;
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
}
|
2020-08-25 12:31:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-editSummary {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2021-03-13 14:39:39 +00:00
|
|
|
&-advanced.oo-ui-element-hidden + .ext-discussiontools-ui-replyWidget-anonWarning {
|
2020-08-25 12:31:54 +00:00
|
|
|
// Removing spacing between message widgets when the first is hidden
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-advancedToggle {
|
|
|
|
font-size: 0.75em;
|
|
|
|
|
|
|
|
.oo-ui-indicatorElement-indicator {
|
|
|
|
min-width: auto;
|
|
|
|
}
|
2020-12-15 14:55:59 +00:00
|
|
|
|
|
|
|
.oo-ui-buttonElement-button {
|
|
|
|
min-height: auto;
|
|
|
|
}
|
2020-08-25 12:31:54 +00:00
|
|
|
}
|
2019-11-22 21:53:31 +00:00
|
|
|
}
|
2020-12-15 19:45:05 +00:00
|
|
|
|
|
|
|
.skin-minerva .ext-discussiontools-init-replylink-open dl dd {
|
|
|
|
// Disable overflow hack for scrolling images in <dd> in Minerva
|
|
|
|
// while the tool is open, as we need negative margins on the widget.
|
|
|
|
overflow: visible;
|
|
|
|
}
|