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
184 lines
3.5 KiB
CSS
184 lines
3.5 KiB
CSS
/**
|
|
* VisualEditor user interface Inspector styles.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-inspector {
|
|
font-family: sans-serif;
|
|
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.15em 0.5em 0 rgba(0, 0, 0, 0.2);
|
|
-moz-box-shadow: 0 0.15em 0.5em 0 rgba(0, 0, 0, 0.2);
|
|
box-shadow: 0 0.15em 0.5em 0 rgba(0, 0, 0, 0.2);
|
|
padding: 0.75em;
|
|
padding-top: 2.5em;
|
|
min-width: 15em;
|
|
z-index: 3;
|
|
}
|
|
|
|
.ve-ui-inspector-button {
|
|
position: absolute;
|
|
top: 0.25em;
|
|
width: 2em;
|
|
height: 2em;
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
cursor: pointer;
|
|
filter: alpha(opacity=75);
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.ve-ui-inspector-button:hover {
|
|
filter: alpha(opacity=100);
|
|
opacity: 1;
|
|
}
|
|
|
|
.ve-ui-inspector-button.ve-ui-inspector-button-disabled,
|
|
.ve-ui-inspector-button.ve-ui-inspector-button-disabled:hover {
|
|
filter: alpha(opacity=25);
|
|
opacity: 0.25;
|
|
}
|
|
|
|
.ve-ui-inspector-closeButton {
|
|
right: 0.25em;
|
|
/* @embed */
|
|
background-image: url(images/close.png);
|
|
}
|
|
|
|
.ve-ui-inspector-acceptButton {
|
|
right: 2.25em;
|
|
/* @embed */
|
|
background-image: url(images/accept.png);
|
|
}
|
|
|
|
.ve-ui-inspector-clearButton {
|
|
right: 4.25em;
|
|
/* @embed */
|
|
background-image: url(images/clear.png);
|
|
}
|
|
|
|
.ve-ui-inspector form {
|
|
margin: 0;
|
|
padding: 0.75em 0 0 0;
|
|
border-top: solid 1px #ddd;
|
|
white-space: nowrap;
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.ve-ui-inspector form input {
|
|
display: inline-block;
|
|
width: 20em;
|
|
font-size: 1em;
|
|
font-family: sans-serif;
|
|
background-color: #fff;
|
|
border: solid 1px #cccccc;
|
|
padding: 0.5em;
|
|
-webkit-border-radius: 0.25em;
|
|
-moz-border-radius: 0.25em;
|
|
-o-border-radius: 0.25em;
|
|
border-radius: 0.25em;
|
|
}
|
|
.ve-ui-inspector form input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.ve-ui-linkInspector-location {
|
|
/* @embed */
|
|
background-image: url(images/arrow-down.png);
|
|
background-position: 18.75em center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.ve-ui-inspector form label {
|
|
display: inline-block;
|
|
width: 6em;
|
|
}
|
|
|
|
.ve-ui-inspector-title {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0.75em;
|
|
height: 2.5em;
|
|
line-height: 2.5em;
|
|
font-weight: bold;
|
|
color: #666;
|
|
}
|
|
|
|
.ve-ui-suggest-select {
|
|
position: absolute;
|
|
background: #FFFFFF;
|
|
/* @embed */
|
|
background-image: url(images/gray.png);
|
|
background-position: 8em top;
|
|
background-repeat: repeat-y;
|
|
width: 20em;
|
|
margin-top: -1px;
|
|
font-size: 0.8em;
|
|
z-index: 101;
|
|
border: solid 1px #ccc;
|
|
-webkit-border-radius: 0 0 0.25em 0.25em;
|
|
-moz-border-radius: 0 0 0.25em 0.25em;
|
|
-o-border-radius: 0 0 0.25em 0.25em;
|
|
border-radius: 0 0 0.25em 0.25em;
|
|
-webkit-box-shadow: 0 0.15em 1em 0 rgba(0, 0, 0, 0.2);
|
|
-moz-box-shadow: 0 0.15em 1em 0 rgba(0, 0, 0, 0.2);
|
|
box-shadow: 0 0.15em 1em 0 rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.ve-ui-suggest-container {
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
.ve-ui-suggest-label {
|
|
float: left;
|
|
width: 6.5em;
|
|
padding: 0.33em 0.75em;
|
|
text-align: right;
|
|
color: #888;
|
|
}
|
|
|
|
.ve-ui-suggest-wrap {
|
|
float: left;
|
|
}
|
|
|
|
.ve-ui-suggest-dummy-item {
|
|
padding: 0.33em 0.75em;
|
|
width: 10.5em;
|
|
}
|
|
|
|
.ve-ui-suggest-item {
|
|
padding: 0.33em 0.75em;
|
|
width: 10.5em;
|
|
cursor: pointer;
|
|
/* CSS Elipsis */
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
-o-text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
color: #0645AD;
|
|
}
|
|
|
|
.ve-ui-suggest-item-newPage {
|
|
color: #BA0000;
|
|
}
|
|
|
|
.ve-ui-suggest-item-externalLink,
|
|
.ve-ui-suggest-item-existingPage {
|
|
color: #0645AD;
|
|
}
|
|
|
|
.ve-ui-suggest-item.selected {
|
|
background-color: #b3d6f6;
|
|
}
|
|
|
|
.ve-ui-suggest-item > a {
|
|
text-decoration: none;
|
|
}
|