mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
6ec34a3dee
Objectives: * Use widgets to render toolbar actions * Remove labels next to help notices and edit notices buttons * Add a close button to the help notices and edit notices Overview: * ve.ui.ButtonWidget is now abstract, use ve.ui.PushButtonWidget instead * ve.ui.IconButtonWidget now inherits from ve.ui.ButtonWidget * ve.ui.PopupWidget's display method no longer takes x and y arguments * Fixup naming issues in MWCategoryPopupWidget * Fixup naming issues with some ve-init-mw CSS classes * Rename ve-mw/ui/styles/ve.ui.Widget.css to ve.ui.MWWidget.css * Change uses of "callout" to "tail" * Add hyperlink functionality to buttons * Make buttons accessible through focusing, but make unfocusable by clicking * Add head option to popup for rendering a title and close button Bug: 52386 Change-Id: Iea2c8df1be64d40f9c039873d89ee540cc56e687
57 lines
1.3 KiB
CSS
57 lines
1.3 KiB
CSS
/*!
|
|
* VisualEditor UserInterface Context styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-context,
|
|
.ve-ui-context-inspectors,
|
|
.ve-ui-context-menu {
|
|
position: absolute;
|
|
}
|
|
|
|
.ve-ui-context-menu .ve-ui-toolbar-bar {
|
|
white-space: nowrap;
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
.ve-ui-context-menu .ve-ui-toolGroup {
|
|
border: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.ve-ui-context-menu .ve-ui-buttonTool,
|
|
.ve-ui-context-menu .ve-ui-buttonTool:hover {
|
|
border: none;
|
|
}
|
|
|
|
.ve-ui-context-menu .ve-ui-buttonTool:active,
|
|
.ve-ui-context-menu .ve-ui-buttonTool-active {
|
|
background-image: none;
|
|
}
|
|
|
|
.ve-ui-context > .ve-ui-popupWidget:not(.ve-ui-popupWidget-tailed) .ve-ui-popupWidget-popup {
|
|
margin-top: 0.25em;
|
|
}
|
|
|
|
/* @noflip */
|
|
.ltr .ve-ui-context > .ve-ui-popupWidget:not(.ve-ui-popupWidget-tailed) .ve-ui-popupWidget-popup {
|
|
margin-left: -0.5em;
|
|
}
|
|
|
|
/* @noflip */
|
|
.rtl .ve-ui-context > .ve-ui-popupWidget:not(.ve-ui-popupWidget-tailed) .ve-ui-popupWidget-popup {
|
|
margin-left: 0.5em;
|
|
}
|
|
|
|
.ve-ui-context > .ve-ui-popupWidget:not(.ve-ui-popupWidget-tailed) .ve-ui-context-menu {
|
|
right: 0;
|
|
}
|
|
|
|
/* HACK: Compensate for ve-ui-frame-content setting the font size to 0.8em */
|
|
.ve-ui-frame-content .ve-ui-context {
|
|
font-size: 1.25em;
|
|
}
|