mediawiki-extensions-Visual.../modules/ve/ui/styles/ve.ui.Toolbar.css
Trevor Parscal b370bbd0bc Improved icons
* 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
2012-08-31 13:23:04 -07:00

161 lines
3.1 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;
height: 1.5em;
width: 1.5em;
margin-right: 0.125em;
}
.ve-ui-toolbarButtonTool:before {
content: " ";
position: absolute;
display: block;
height: 1.5em;
width: 1.5em;
background-position: center center;
background-repeat: no-repeat;
}
.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-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: 2em;
height: 2em;
/* @see ve.ui.Icons */
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";
}