mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +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
75 lines
1.5 KiB
CSS
75 lines
1.5 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-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;
|
|
}
|