2013-12-18 04:33:22 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor standalone demo
|
2012-07-19 21:25:16 +00:00
|
|
|
*
|
2013-02-19 23:37:34 +00:00
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
2012-07-19 21:25:16 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2012-06-28 09:52:03 +00:00
|
|
|
body {
|
2013-02-09 01:33:48 +00:00
|
|
|
margin: 0;
|
2012-06-28 09:52:03 +00:00
|
|
|
padding: 0;
|
|
|
|
overflow-y: scroll;
|
2013-02-09 01:33:48 +00:00
|
|
|
background: #fff;
|
|
|
|
font: normal 1em/1.5 sans-serif;
|
2012-06-28 09:52:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
|
2013-02-14 02:04:04 +00:00
|
|
|
.ve-demo-utilities {
|
2013-02-14 21:41:59 +00:00
|
|
|
margin: 0 2.5em 1em 2.5em;
|
|
|
|
border: solid 1px #ccc;
|
|
|
|
border-top-width: 0;
|
2013-02-14 02:04:04 +00:00
|
|
|
border-radius: 0.5em;
|
2013-02-14 21:41:59 +00:00
|
|
|
-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;
|
2013-02-14 02:04:04 +00:00
|
|
|
padding: 1em 2em;
|
|
|
|
font-size: 0.8em;
|
2013-02-14 21:41:59 +00:00
|
|
|
box-shadow: 0 0.25em 1.5em 0 #ddd;
|
2013-02-14 02:04:04 +00:00
|
|
|
}
|
|
|
|
|
2013-11-04 15:27:15 +00:00
|
|
|
.ve-demo-utilities-commands .oo-ui-widget,
|
2013-02-14 21:41:59 +00:00
|
|
|
.ve-demo-utilities-commands-divider {
|
2013-02-14 02:04:04 +00:00
|
|
|
display: inline-block;
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
2013-11-04 15:27:15 +00:00
|
|
|
.ve-demo-utilities-commands .oo-ui-textInputWidget {
|
2013-02-14 02:04:04 +00:00
|
|
|
width: 4em;
|
|
|
|
}
|
|
|
|
|
2013-02-14 21:41:59 +00:00
|
|
|
.ve-demo-utilities-commands-divider {
|
|
|
|
border-right: solid 1px #ddd;
|
|
|
|
padding-left: 0.2em;
|
2013-12-03 22:09:56 +00:00
|
|
|
width: 0;
|
2013-02-14 21:41:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2012-06-28 09:52:03 +00:00
|
|
|
/* Editor */
|
|
|
|
|
2013-05-14 23:45:42 +00:00
|
|
|
.ve-ui-surface {
|
2013-02-14 21:41:59 +00:00
|
|
|
margin: 2em 2em 0 2em;
|
2012-06-28 09:52:03 +00:00
|
|
|
margin-top: 0;
|
Kranitor #3: jQuerlyfornication ft. The Cascaders
* Classicifation (JS)
Use addClass instead of attr( 'class' ) whenever possible.
addClass will manipulate the properties directly instead of
(re-)setting an attribute which (most) browsers then sync
with the properties.
Difference between:
elem.className
and
elem.setAttribute( 'class', .. );
Just like .checked, .value, .disabled and other interactive
properties, the HTML attributes should only be used for initial
values from the html document. When in javascript, only set
properties. Attributes are either ignored or slow.
* Styling (JS)
Use .css() instead of attr( 'style' ).
Again, setting properties instead of attributes is much faster,
easier and safer. And this way it takes care of cross-browser
issues where applicable, and less prone to error due to dealing
with key-value pairs instead of css strings.
Difference between:
elem.style.foo = 'bar';
and
elem.setAttribute( 'style', 'foo: bar;' );
* Finding (JS)
Use .find( 'foo bar' ) instead of .find( 'foo' ).find( 'bar' ).
It is CSS!
* Vendor prefixes (CSS)
It is important to always list newer (standards-compliant) versions
*after* the older/prefixed variants.
See also http://css-tricks.com/ordering-css3-properties/
So the following three:
-webkit-gradient (Chrome, Safari 4)
-webkit-linear-gradient (Chrome 10, Safari 5+)
linear-gradient (CSS3 standard)
... must be in that order.
Notes:
- "-moz-opacity" is from before Mozilla 1.7 (Firefox < 0.8)
Has not been renamed to "opacity" since Firefox 0.9.
- Removed redundant "-moz-opacity"
- Added "filter: alpha(opacity=**);" where missing
- Fixed order of css3 properties (old to new)
- Add standardized css3 versions where missing
(some 'border-radius' groups didn't have the non-prefixed version)
- Spacing
- @embed
- Shorten hex colors where possible (#dddddd -> #ddd)
$ ack '#([0-9a-f])\1{5}' --css
$ ack '#([0-9a-f])\1{2};' --css
Change-Id: I386fedb9058c2567fd0af5f55291e9859a53329d
2012-07-28 19:15:23 +00:00
|
|
|
box-shadow: 0 0.25em 1.5em 0 #ddd;
|
2012-06-28 09:52:03 +00:00
|
|
|
border-radius: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ce-documentNode {
|
Kranitor #3: jQuerlyfornication ft. The Cascaders
* Classicifation (JS)
Use addClass instead of attr( 'class' ) whenever possible.
addClass will manipulate the properties directly instead of
(re-)setting an attribute which (most) browsers then sync
with the properties.
Difference between:
elem.className
and
elem.setAttribute( 'class', .. );
Just like .checked, .value, .disabled and other interactive
properties, the HTML attributes should only be used for initial
values from the html document. When in javascript, only set
properties. Attributes are either ignored or slow.
* Styling (JS)
Use .css() instead of attr( 'style' ).
Again, setting properties instead of attributes is much faster,
easier and safer. And this way it takes care of cross-browser
issues where applicable, and less prone to error due to dealing
with key-value pairs instead of css strings.
Difference between:
elem.style.foo = 'bar';
and
elem.setAttribute( 'style', 'foo: bar;' );
* Finding (JS)
Use .find( 'foo bar' ) instead of .find( 'foo' ).find( 'bar' ).
It is CSS!
* Vendor prefixes (CSS)
It is important to always list newer (standards-compliant) versions
*after* the older/prefixed variants.
See also http://css-tricks.com/ordering-css3-properties/
So the following three:
-webkit-gradient (Chrome, Safari 4)
-webkit-linear-gradient (Chrome 10, Safari 5+)
linear-gradient (CSS3 standard)
... must be in that order.
Notes:
- "-moz-opacity" is from before Mozilla 1.7 (Firefox < 0.8)
Has not been renamed to "opacity" since Firefox 0.9.
- Removed redundant "-moz-opacity"
- Added "filter: alpha(opacity=**);" where missing
- Fixed order of css3 properties (old to new)
- Add standardized css3 versions where missing
(some 'border-radius' groups didn't have the non-prefixed version)
- Spacing
- @embed
- Shorten hex colors where possible (#dddddd -> #ddd)
$ ack '#([0-9a-f])\1{5}' --css
$ ack '#([0-9a-f])\1{2};' --css
Change-Id: I386fedb9058c2567fd0af5f55291e9859a53329d
2012-07-28 19:15:23 +00:00
|
|
|
border: solid 1px #ccc;
|
2012-06-28 09:52:03 +00:00
|
|
|
border-top: none;
|
|
|
|
padding: 0.75em 1.5em;
|
|
|
|
}
|
|
|
|
|
2013-05-14 23:45:42 +00:00
|
|
|
.ve-init-sa-target-toolbar {
|
|
|
|
margin: 0 2em;
|
|
|
|
}
|
|
|
|
|
2013-11-04 15:09:31 +00:00
|
|
|
.ve-init-sa-target-toolbar .oo-ui-toolbar-bar {
|
Kranitor #3: jQuerlyfornication ft. The Cascaders
* Classicifation (JS)
Use addClass instead of attr( 'class' ) whenever possible.
addClass will manipulate the properties directly instead of
(re-)setting an attribute which (most) browsers then sync
with the properties.
Difference between:
elem.className
and
elem.setAttribute( 'class', .. );
Just like .checked, .value, .disabled and other interactive
properties, the HTML attributes should only be used for initial
values from the html document. When in javascript, only set
properties. Attributes are either ignored or slow.
* Styling (JS)
Use .css() instead of attr( 'style' ).
Again, setting properties instead of attributes is much faster,
easier and safer. And this way it takes care of cross-browser
issues where applicable, and less prone to error due to dealing
with key-value pairs instead of css strings.
Difference between:
elem.style.foo = 'bar';
and
elem.setAttribute( 'style', 'foo: bar;' );
* Finding (JS)
Use .find( 'foo bar' ) instead of .find( 'foo' ).find( 'bar' ).
It is CSS!
* Vendor prefixes (CSS)
It is important to always list newer (standards-compliant) versions
*after* the older/prefixed variants.
See also http://css-tricks.com/ordering-css3-properties/
So the following three:
-webkit-gradient (Chrome, Safari 4)
-webkit-linear-gradient (Chrome 10, Safari 5+)
linear-gradient (CSS3 standard)
... must be in that order.
Notes:
- "-moz-opacity" is from before Mozilla 1.7 (Firefox < 0.8)
Has not been renamed to "opacity" since Firefox 0.9.
- Removed redundant "-moz-opacity"
- Added "filter: alpha(opacity=**);" where missing
- Fixed order of css3 properties (old to new)
- Add standardized css3 versions where missing
(some 'border-radius' groups didn't have the non-prefixed version)
- Spacing
- @embed
- Shorten hex colors where possible (#dddddd -> #ddd)
$ ack '#([0-9a-f])\1{5}' --css
$ ack '#([0-9a-f])\1{2};' --css
Change-Id: I386fedb9058c2567fd0af5f55291e9859a53329d
2012-07-28 19:15:23 +00:00
|
|
|
border: solid 1px #ccc;
|
2012-06-28 09:52:03 +00:00
|
|
|
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;
|
2013-05-14 23:45:42 +00:00
|
|
|
}
|
|
|
|
|
2013-11-05 00:29:50 +00:00
|
|
|
.ve-init-sa-target-toolbar.ve-ui-toolbar-floating .oo-ui-toolbar-bar {
|
2013-05-14 23:45:42 +00:00
|
|
|
border-top: none;
|
|
|
|
border-radius: 0;
|
2012-08-27 21:34:08 +00:00
|
|
|
}
|