mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-18 11:46:01 +00:00
2717ea1645
Objectives: * Use a class for toolbar groups to add more functionality later * Rename addTools method to setup Changes: *.php * Add link to new file * Move ui element classes up for more general use ve.init.mw.ViewPageTarget.js, ve.init.sa.Target.js, ve.ui.Context.js, ve.ui.SurfaceWidget.js * Update use of addTools method ve.ui.Tool.css, ve.ui.Toolbar.css * Move styles between sheets ve.ui.Toolbar.js * Rename addTools to setup * Use ve.ui.ToolGroup objects when building tools ve.ui.ToolGroup.js * New class, encapsulates tools Change-Id: Ic3a643634a80a8ac7d6f6f47f031d001c7efaee7
61 lines
1.2 KiB
CSS
61 lines
1.2 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-embed .ve-ui-popupWidget-callout {
|
|
display: none;
|
|
}
|
|
|
|
.ve-ui-context-embed .ve-ui-popupWidget-body {
|
|
margin-top: 0.25em;
|
|
}
|
|
|
|
/* @noflip */
|
|
.ltr .ve-ui-context-embed .ve-ui-popupWidget-body {
|
|
margin-left: -0.75em;
|
|
}
|
|
|
|
/* @noflip */
|
|
.rtl .ve-ui-context-embed .ve-ui-popupWidget-body {
|
|
margin-left: 0.75em;
|
|
}
|
|
|
|
.ve-ui-context-embed .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;
|
|
}
|