mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-02 01:46:47 +00:00
a52d7ff65a
* Switched a lot of classes from es-* to ve-ui-* * Removed all the DOM structure left over from the old sandbox demo * Got rid of transparent backgrounds * Added menu font-size rule to stand-alone target * Moved some rules around that were in the wrong places * Got rid of some unused/unneeded methods in the mw target (attach and detach surface methods) * Added active class to context icon with shallower shadow effect so it doesn't break your spacial perception when you click on it * Renamed the iframe and iframe wrapper elements so it's easier to see where they came from * Removed unused CSS rules * Fixed some uses of prop( 'class', … ) to addClass Change-Id: I54a660ca0baf0baa4463faca7a1edcf648130b6b
115 lines
2.4 KiB
CSS
115 lines
2.4 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 {
|
|
/* @embed */
|
|
background-image: url(images/arrow-up.png);
|
|
background-position: 50% 4px;
|
|
}
|
|
|
|
.ve-ui-context-position-below .ve-ui-context-icon {
|
|
/* @embed */
|
|
background-image: url(images/arrow-down.png);
|
|
background-position: 50% 5px;
|
|
}
|
|
.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;
|
|
}
|