mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
8e5b7fc5ce
-Changed es class prefixes to ve. -Organized Context & Inspector construction. -Updated comments & Whitespace. Change-Id: I4a387621e5147e72d3869ff46eef4790091442c0
105 lines
2.2 KiB
CSS
105 lines
2.2 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-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: rgba(255, 255, 255, 0.95);
|
|
-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 .es-toolbarGroup {
|
|
border: none;
|
|
}
|