mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +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
201 lines
4 KiB
CSS
201 lines
4 KiB
CSS
/**
|
|
* VisualEditor user interface Toolbar styles.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-toolbarGroup {
|
|
display: inline-block;
|
|
padding: 0.25em;
|
|
border-right: solid 1px #f0f3f5;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.ve-ui-toolbarDivider {
|
|
display: inline-block;
|
|
width: 1px;
|
|
height: 24px;
|
|
margin: 0.5em 0 0.5em 0.5em;
|
|
background-color: #ddd;
|
|
}
|
|
|
|
.ve-ui-toolbarLabel {
|
|
display: inline-block;
|
|
padding: 0.5em 0.75em;
|
|
line-height: 22px;
|
|
font-size: 0.8em;
|
|
color: #555;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool,
|
|
.ve-ui-toolbarDropdownTool {
|
|
display: inline-block;
|
|
border: solid 1px transparent;
|
|
-webkit-border-radius: 0.125em;
|
|
-moz-border-radius: 0.125em;
|
|
-o-border-radius: 0.125em;
|
|
border-radius: 0.125em;
|
|
cursor: pointer;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool {
|
|
padding: 0.25em;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-right: 0.125em;
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool:before {
|
|
content: " ";
|
|
position: absolute;
|
|
display: block;
|
|
height: 22px;
|
|
width: 22px;
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool:hover,
|
|
.ve-ui-toolbarDropdownTool:hover {
|
|
border-color: #eee;
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool:active,
|
|
.ve-ui-toolbarButtonTool-down {
|
|
border-color: #ddd;
|
|
/* @embed */
|
|
background-image: url(images/fade-down.png);
|
|
background-position: left top;
|
|
background-repeat: repeat-x;
|
|
-webkit-box-shadow: inset 0 0.05em 0.125em 0 rgba(0, 0, 0, 0.07);
|
|
-moz-box-shadow: inset 0 0.05em 0.125em 0 rgba(0, 0, 0, 0.07);
|
|
box-shadow: inset 0 0.05em 0.125em 0 rgba(0, 0, 0, 0.07);
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool-undo:before {
|
|
/* @embed */
|
|
background-image: url(images/undo.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-redo:before {
|
|
/* @embed */
|
|
background-image: url(images/redo.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-bold:before {
|
|
/* @embed */
|
|
background-image: url(images/bold.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-italic:before {
|
|
/* @embed */
|
|
background-image: url(images/italic.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-link:before {
|
|
/* @embed */
|
|
background-image: url(images/link.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-clear:before {
|
|
/* @embed */
|
|
background-image: url(images/clear.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-number:before {
|
|
/* @embed */
|
|
background-image: url(images/number.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-bullet:before {
|
|
/* @embed */
|
|
background-image: url(images/bullet.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-indent:before {
|
|
/* @embed */
|
|
background-image: url(images/indent.png);
|
|
}
|
|
.ve-ui-toolbarButtonTool-outdent:before {
|
|
/* @embed */
|
|
background-image: url(images/outdent.png);
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool-disabled,
|
|
.ve-ui-toolbarButtonTool-disabled:before {
|
|
filter: alpha(opacity=50);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.ve-ui-toolbarButtonTool-disabled:hover {
|
|
border-color: transparent;
|
|
}
|
|
|
|
.ve-ui-toolbarDropdownTool {
|
|
position: relative;
|
|
border-color: #ddd;
|
|
-webkit-border-radius: 0.25em;
|
|
-moz-border-radius: 0.25em;
|
|
-o-border-radius: 0.25em;
|
|
border-radius: 0.25em;
|
|
background-color: white;
|
|
}
|
|
.ve-ui-toolbarDropdownTool-label {
|
|
overflow: hidden;
|
|
height: 2em;
|
|
padding-right: 0.25em;
|
|
padding-left: 0.75em;
|
|
line-height: 2em;
|
|
}
|
|
|
|
.ve-ui-toolbarDropdownTool-label span {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.ve-ui-toolbarDropdownTool-icon {
|
|
position: absolute;
|
|
right: 0;
|
|
width: 1.5em;
|
|
height: 2em;
|
|
/* @embed */
|
|
background-image: url(images/arrow-down.png);
|
|
background-position: 50% 50%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.ve-ui-toolbarDropdownTool .ve-ui-menu {
|
|
left: -1px;
|
|
top: -1px;
|
|
}
|
|
|
|
.ve-ui-toolbarDropdownTool-format {
|
|
width: 8em;
|
|
}
|
|
|
|
.ve-ui-menu-item[rel="heading-1"] span {
|
|
font-size: 188%;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.ve-ui-menu-item[rel="heading-2"] span {
|
|
font-size: 150%;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.ve-ui-menu-item[rel="heading-3"] span {
|
|
font-size: 132%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ve-ui-menu-item[rel="heading-4"] span {
|
|
font-size: 116%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ve-ui-menu-item[rel="heading-5"] span {
|
|
font-size: 100%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ve-ui-menu-item[rel="heading-6"] span {
|
|
font-size: 80%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ve-ui-menu-item[rel="pre"] span {
|
|
font-family: monospace, "Courier New";
|
|
}
|