mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 02:16:51 +00:00
b370bbd0bc
* Moved icons into Illustrator (used to be in Photoshop) * Added SVG icons too * Added support for devices with pixel ratio > 1 (they use SVG) * Cleaned up icons (little rendering errors here and there) * Organized icons into their own folder * Increased the horizontal margin of the down arrows in the formatting (in the toolbar) and location (in the link inspector) drop down menus Change-Id: I29b7084c9b1145051b2a76f514cfca9826d53ddb
113 lines
2.3 KiB
CSS
113 lines
2.3 KiB
CSS
/**
|
|
* VisualEditor user interface Context styles.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-context {
|
|
position: absolute;
|
|
z-index: 2;
|
|
}
|
|
|
|
.ve-ui-context-icon {
|
|
position: absolute;
|
|
background-repeat: no-repeat;
|
|
width: 15px;
|
|
height: 15px;
|
|
display: none;
|
|
cursor: pointer;
|
|
border: solid 1px #ccc;
|
|
-webkit-border-radius: 1em;
|
|
-moz-border-radius: 1em;
|
|
-o-border-radius: 1em;
|
|
border-radius: 1em;
|
|
background-color: #fff;
|
|
-webkit-box-shadow: 0 0.25em 1em 0 rgba(0, 0, 0, 0.25);
|
|
-moz-box-shadow: 0 0.25em 1em 0 rgba(0, 0, 0, 0.25);
|
|
box-shadow: 0 0.25em 1em 0 rgba(0, 0, 0, 0.25);
|
|
z-index: 4;
|
|
}
|
|
.ve-ui-context-icon-active {
|
|
-webkit-box-shadow: 0 0.125em 0.25em 0 rgba(0, 0, 0, 0.125);
|
|
-moz-box-shadow: 0 0.125em 0.25em 0 rgba(0, 0, 0, 0.125);
|
|
box-shadow: 0 0.125em 0.25em 0 rgba(0, 0, 0, 0.125);
|
|
}
|
|
.ve-ui-context-position-start .ve-ui-context-icon {
|
|
top: -12px;
|
|
left: -8px;
|
|
}
|
|
|
|
.ve-ui-context-position-end .ve-ui-context-icon {
|
|
top: -6px;
|
|
left: -8px;
|
|
}
|
|
|
|
.ve-ui-context-position-above .ve-ui-context-icon {
|
|
/* @see ve.ui.Icons */
|
|
background-position: 50% 1px;
|
|
}
|
|
|
|
.ve-ui-context-position-below .ve-ui-context-icon {
|
|
/* @see ve.ui.Icons */
|
|
background-position: 50% 2px;
|
|
}
|
|
.ve-ui-context-position-above .ve-ui-context-icon:hover,
|
|
.ve-ui-context-position-below .ve-ui-context-icon:hover {
|
|
border-color: #b3d6f6;
|
|
}
|
|
|
|
.ve-ui-context-position-above .ve-menuView {
|
|
bottom: 2px;
|
|
}
|
|
|
|
.ve-ui-context-position-below .ve-menuView {
|
|
top: 2px;
|
|
}
|
|
|
|
.ve-ui-context-inspectors {
|
|
position: absolute;
|
|
}
|
|
|
|
.ve-ui-context-position-above .ve-ui-context-inspectors {
|
|
bottom: -8px;
|
|
}
|
|
|
|
.ve-ui-context-position-below .ve-ui-context-inspectors {
|
|
top: 2px;
|
|
}
|
|
|
|
.ve-ui-context-panels {
|
|
position: absolute;
|
|
border: solid 1px #ccc;
|
|
-webkit-border-radius: 0.25em;
|
|
-moz-border-radius: 0.25em;
|
|
-o-border-radius: 0.25em;
|
|
border-radius: 0.25em;
|
|
background-color: #fff;
|
|
-webkit-box-shadow: 0 0.25em 1em 0 rgba(0, 0, 0, 0.25);
|
|
-moz-box-shadow: 0 0.25em 1em 0 rgba(0, 0, 0, 0.25);
|
|
box-shadow: 0 0.25em 1em 0 rgba(0, 0, 0, 0.25);
|
|
padding: 0.33em 0;
|
|
}
|
|
|
|
.ve-ui-context-panel {
|
|
display: none;
|
|
padding: 1em;
|
|
}
|
|
|
|
.ve-ui-context-toolbar {
|
|
padding: 0.33em 0.66em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ve-ui-context .ve-ui-toolbarGroup {
|
|
border: none;
|
|
}
|
|
|
|
.ve-ui-context-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|