mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
c4c9923c91
This fix adds a directionality property to the frame objects so directions can be inherited and manipulated inside the frame <body> tags. There are also several corrections to flipping positioning of panels in the GridLayout and of the icons in fieldsets and labeled elements so they appear properly (right instead of left). I've added a 've-rtl' / 've-ltr' class to frame content divs to serve as selectors for rtl fixes and general language fixes. Most CSS corrections would likely be fixed when CSSJanus works in iframes, but the selectors would still be useful. This sets the stage for directionality inheritance inside iframes, and fixes most of the problem with the Page Settings window in RTL wikis. It also fixes all the labels with icons across VE interface. Bug: 49613 Change-Id: I418e669b0999552167683352acb365a4249ab9cc
44 lines
854 B
CSS
44 lines
854 B
CSS
/*!
|
|
* VisualEditor UserInterface Layout styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/* ve.ui.GridLayout */
|
|
/* ve.ui.PanelLayout */
|
|
|
|
.ve-ui-gridLayout,
|
|
.ve-ui-panelLayout {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
/* ve.ui.FieldsetLayout */
|
|
|
|
.ve-ui-fieldsetLayout {
|
|
border: none;
|
|
margin: 0 0 2em 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.ve-ui-fieldsetLayout > legend.ve-ui-labeledElement-label {
|
|
font-size: 1.5em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.ve-ui-fieldsetLayout-decorated > legend.ve-ui-labeledElement-label {
|
|
padding-left: 1.75em;
|
|
background-position: left center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
/* @noflip */
|
|
.ve-rtl .ve-ui-fieldsetLayout-decorated > legend.ve-ui-labeledElement-label {
|
|
padding-right: 1.75em;
|
|
background-position: right center;
|
|
}
|