mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
Merge "Allow the widget to be squished next to floating elements"
This commit is contained in:
commit
e56a8ad756
|
@ -2,7 +2,28 @@
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
position: relative;
|
position: relative;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
// @supports does not work when nested
|
||||||
|
@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 */
|
||||||
> .oo-ui-textInputWidget {
|
> .oo-ui-textInputWidget {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue