mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 02:16:51 +00:00
3e9b227a6a
Consistently: * Use <!DOCTYPE html>. * Use lowercase element tags. * Indent <head> from <html>. * Use <meta charset="utf-8">. * Indent <script> and <style> content from open/close tag. * Put <link> before <script> when in <head> (in ve/test). * Use .html instead of .php for indexes where PHP is no longer used. * Use the same license header as we use elsewhere (/*! instead of /** and no @file) Gruntfile: * Include the new .js files in jshint (demos/**/*.js). * Order buildloader keys in the same order as the directories they go to (alphabetically). * Add missing jshint patterns: - .docs/**/*.js - build/**/*.js - modules/ve-wmf/**/*.js * Add missing qunit test: - qunit.unicodejs * Add missing watch patterns: - .jscs.json - qunit.unicodejs Also: * Moved relatively large pieces of script into separate files so that they are less repeated (though .template) and also able to be linted properly. * Fixed jshint warnings in newly-created trigger.js and demo.js. * Moved <script> elements already in <body> to bottom of <body> (in ve/test and eg-iframe). * Moved <script> in eg-iframe from <head> to <body>. * Fixed buildloader grunt task to use a non-\n whitespace match. for the start as well, the newline before the placeholder was being stripped. * Removed the (now obsolete) index-phantomjs-tmp hack. Change-Id: I7c5a371b82f69f367a8e1c11673d2f37868bc931
162 lines
3.1 KiB
CSS
162 lines
3.1 KiB
CSS
/*!
|
|
* VisualEditor standalone demo
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-y: scroll;
|
|
background: #fff;
|
|
font: normal 1em/1.5 sans-serif;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
.ve-demo-utilities {
|
|
margin: 0 2.5em 1em 2.5em;
|
|
border: solid 1px #ccc;
|
|
border-top-width: 0;
|
|
border-radius: 0.5em;
|
|
-webkit-border-top-right-radius: 0;
|
|
-moz-border-top-right-radius: 0;
|
|
-o-border-top-right-radius: 0;
|
|
border-top-right-radius: 0;
|
|
-webkit-border-top-left-radius: 0;
|
|
-moz-border-top-left-radius: 0;
|
|
-o-border-top-left-radius: 0;
|
|
border-top-left-radius: 0;
|
|
padding: 1em 2em;
|
|
font-size: 0.8em;
|
|
box-shadow: 0 0.25em 1.5em 0 #ddd;
|
|
}
|
|
|
|
.ve-demo-utilities-commands .oo-ui-widget,
|
|
.ve-demo-utilities-commands-divider {
|
|
display: inline-block;
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.ve-demo-utilities-commands .oo-ui-textInputWidget {
|
|
width: 4em;
|
|
}
|
|
|
|
.ve-demo-utilities-commands-divider {
|
|
border-right: solid 1px #ddd;
|
|
padding-left: 0.2em;
|
|
width: 0;
|
|
}
|
|
|
|
.ve-demo-dump {
|
|
margin: 2em 0 1.5em 0;
|
|
display: none;
|
|
background-color: #f3f3f3;
|
|
width: 100%;
|
|
font-size: 0.9em;
|
|
border: solid 1px #ddd;
|
|
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;
|
|
}
|
|
|
|
.ve-demo-dump td {
|
|
padding: 0.25em 1em;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.ve-demo-dump th {
|
|
padding: 0.5em 1em;
|
|
color: #555;
|
|
text-shadow: 0 1px 1px #fff;
|
|
}
|
|
|
|
.ve-demo-dump ol {
|
|
padding-left: 1.5em;
|
|
color: #999;
|
|
}
|
|
|
|
.ve-demo-dump li > span {
|
|
display: inline-block;
|
|
background-color: #f3f3f3;
|
|
border-radius: 0.3em;
|
|
margin: 0.25em 0 0.25em 0;
|
|
padding: 0.125em 0.5em;
|
|
text-shadow: 0 1px 1px #fff;
|
|
color: #000;
|
|
}
|
|
|
|
.ve-demo-dump li > span > span {
|
|
color: #aaa;
|
|
text-shadow: 0 1px 1px #fff;
|
|
}
|
|
|
|
.ve-demo-dump li .ve-demo-dump-element {
|
|
background-color: #ddeeff;
|
|
}
|
|
|
|
.ve-demo-dump li .ve-demo-dump-char {
|
|
background-color: #ddffee;
|
|
}
|
|
|
|
.ve-demo-dump li .ve-demo-dump-achar {
|
|
background-color: #ffeedd;
|
|
}
|
|
|
|
/* Editor */
|
|
|
|
.ve-ui-surface {
|
|
margin: 2em 2em 0 2em;
|
|
margin-top: 0;
|
|
box-shadow: 0 0.25em 1.5em 0 #ddd;
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
.ve-ce-documentNode {
|
|
border: solid 1px #ccc;
|
|
border-top: none;
|
|
padding: 0.75em 1.5em;
|
|
}
|
|
|
|
.ve-init-sa-target-toolbar {
|
|
margin: 0 2em;
|
|
}
|
|
|
|
.ve-init-sa-target-toolbar .oo-ui-toolbar-bar {
|
|
border: solid 1px #ccc;
|
|
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;
|
|
}
|
|
|
|
.ve-init-sa-target-toolbar.ve-ui-toolbar-floating .oo-ui-toolbar-bar {
|
|
border-top: none;
|
|
border-radius: 0;
|
|
}
|