mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +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
117 lines
2.4 KiB
CSS
117 lines
2.4 KiB
CSS
/**
|
|
* VisualEditor standalone demo styles.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
body {
|
|
font-family: Arial;
|
|
font-size: 1em;
|
|
width: 100%;
|
|
margin: 1em 0;
|
|
padding: 0;
|
|
overflow-y: scroll;
|
|
background-color: #fff;
|
|
}
|
|
|
|
/* Demo */
|
|
|
|
.ve-demo-docs {
|
|
list-style: none;
|
|
margin: 0 0 1em 0;
|
|
display: inline-block;
|
|
}
|
|
|
|
.ve-demo-docs li {
|
|
list-style: none;
|
|
margin: 0 0.75em 0 0;
|
|
padding: 0;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Editor */
|
|
|
|
.ve-surface {
|
|
margin: 2em;
|
|
margin-top: 0;
|
|
-webkit-box-shadow: 0 0.25em 1.5em 0 #ddd;
|
|
-moz-box-shadow: 0 0.25em 1.5em 0 #ddd;
|
|
box-shadow: 0 0.25em 1.5em 0 #ddd;
|
|
-webkit-border-radius: 0.5em;
|
|
-moz-border-radius: 0.5em;
|
|
-o-border-radius: 0.5em;
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
.ve-ce-documentNode {
|
|
border: solid 1px #ccc;
|
|
border-top: none;
|
|
padding: 0.75em 1.5em;
|
|
}
|
|
|
|
.ve-ui-toolbar {
|
|
border: solid 1px #ccc;
|
|
position: relative;
|
|
-webkit-border-radius: 0;
|
|
-moz-border-radius: 0;
|
|
-o-border-radius: 0;
|
|
border-radius: 0;
|
|
-webkit-border-top-right-radius: 0.25em;
|
|
-moz-border-top-right-radius: 0.25em;
|
|
-o-border-top-right-radius: 0.25em;
|
|
border-top-right-radius: 0.25em;
|
|
-webkit-border-top-left-radius: 0.25em;
|
|
-moz-border-top-left-radius: 0.25em;
|
|
-o-border-top-left-radius: 0.25em;
|
|
border-top-left-radius: 0.25em;
|
|
/* @embed */
|
|
background-image: url(../../modules/ve/ui/styles/images/fade-up.png);
|
|
background-position: left bottom;
|
|
background-repeat: repeat-x;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.ve-ui-toolbar-wrapper {
|
|
margin: 0 2em;
|
|
}
|
|
|
|
.ve-ui-toolbar-wrapper.float .ve-ui-toolbar {
|
|
top: 0;
|
|
position: fixed;
|
|
-webkit-border-radius: 0;
|
|
-moz-border-radius: 0;
|
|
-o-border-radius: 0;
|
|
border-radius: 0;
|
|
z-index: 100;
|
|
border-top: none;
|
|
}
|
|
|
|
.ve-ui-toolbar-shadow {
|
|
/* @embed */
|
|
background-image: url(../../modules/ve/ui/styles/images/toolbar-shadow.png);
|
|
background-position: left top;
|
|
background-repeat: repeat-x;
|
|
position: absolute;
|
|
bottom: -9px;
|
|
height: 9px;
|
|
width: 100%;
|
|
pointer-events: none;
|
|
-ms-transition: opacity 500ms ease-in-out;
|
|
-webkit-transition: opacity 500ms ease-in-out;
|
|
-moz-transition: opacity 500ms ease-in-out;
|
|
-o-transition: opacity 500ms ease-in-out;
|
|
transition: opacity 500ms ease-in-out;
|
|
filter: alpha(opacity=12);
|
|
opacity: 0.125;
|
|
}
|
|
|
|
.ve-ui-toolbar-wrapper.float .ve-ui-toolbar-shadow {
|
|
filter: alpha(opacity=50);
|
|
opacity: 0.5;
|
|
}
|