mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-05 22:22:54 +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
83 lines
1.7 KiB
CSS
83 lines
1.7 KiB
CSS
/*!
|
|
* VisualEditor UserInterface Toolbar styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-toolbar {
|
|
clear: both;
|
|
}
|
|
|
|
.ve-ui-toolbar-bar {
|
|
border-bottom: solid 1px #ccc;
|
|
background-color: white;
|
|
/* @embed */
|
|
background-image: url(images/fade-up.png);
|
|
background-position: left bottom;
|
|
background-repeat: repeat-x;
|
|
padding-bottom: 1px;
|
|
line-height: 1em;
|
|
}
|
|
|
|
.ve-ui-toolbar-floating .ve-ui-toolbar-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
z-index: 100;
|
|
border-top: none; /* TODO: Do we need this? What does it reset? */
|
|
}
|
|
|
|
.ve-ui-toolbar-bottom .ve-ui-toolbar-bar {
|
|
position: absolute;
|
|
}
|
|
|
|
.ve-ui-toolbar-actions {
|
|
float: right;
|
|
padding: 0.25em;
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.ve-ui-toolbar-tools {
|
|
float: left;
|
|
}
|
|
|
|
.ve-ui-toolbar-tools,
|
|
.ve-ui-toolbar-actions,
|
|
.ve-ui-toolbar-shadow {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.ve-ui-toolbar-actions .ve-ui-popupWidget {
|
|
-webkit-touch-callout: default;
|
|
-webkit-user-select: all;
|
|
-moz-user-select: all;
|
|
-ms-user-select: all;
|
|
user-select: all;
|
|
}
|
|
|
|
.ve-ui-toolbar-shadow {
|
|
/* @embed */
|
|
background-image: url(images/toolbar-shadow.png);
|
|
background-position: left top;
|
|
background-repeat: repeat-x;
|
|
position: absolute;
|
|
bottom: -9px;
|
|
height: 9px;
|
|
width: 100%;
|
|
pointer-events: none;
|
|
-webkit-transition: opacity 500ms ease-in-out;
|
|
-moz-transition: opacity 500ms ease-in-out;
|
|
-ms-transition: opacity 500ms ease-in-out;
|
|
-o-transition: opacity 500ms ease-in-out;
|
|
transition: opacity 500ms ease-in-out;
|
|
opacity: 0.125;
|
|
}
|
|
|
|
.ve-ui-toolbar-floating .ve-ui-toolbar-shadow {
|
|
opacity: 0.5;
|
|
}
|