mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
d3a2fab2c4
Objectives: * Rename just about every use of "template" to "transclusion" * Make a proper data structure for transclusions * Abstract away template data * Use more template data in the user interface * Allow adding parameters * Allow removing templates, parameters and content Changes: ve.ui.Dialog.css * Add rule to place add param controls on a single line ve.ui.MWTemplateDialogs.js * Move template spec loading into transclusion class * Add remove button for parts and parameters * Add parameter adding form * Use template data for labels and descriptions ve.dm.* * Add new transclusion data structures *.php * Add links to new files *.* * Rename all things "template" to "transclusion" Bug: 39598 Bug: 49403 Change-Id: I3bcf924a3e179cb65f19e833277a39dfd3dad8bd
207 lines
4.3 KiB
CSS
207 lines
4.3 KiB
CSS
/*!
|
|
* VisualEditor ContentEditable Node styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/* ve.ce.DocumentNode */
|
|
|
|
.ve-ce-documentNode {
|
|
cursor: text;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Prevent focus outline on editor */
|
|
.ve-ce-documentNode[contenteditable="true"]:focus {
|
|
outline: none;
|
|
}
|
|
|
|
/* ve.ce.ProtectedNode */
|
|
|
|
.ve-ce-protectedNode,
|
|
.ve-ce-protectedNode * {
|
|
position: relative !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
bottom: 0 !important;
|
|
right: 0 !important;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.ve-ce-protectedNode::-moz-selection,
|
|
.ve-ce-protectedNode *::-moz-selection {
|
|
background: transparent;
|
|
}
|
|
|
|
.ve-ce-protectedNode {
|
|
z-index: 0;
|
|
}
|
|
|
|
.ve-ce-protectedNode-shield {
|
|
position: absolute !important;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: transparent !important;
|
|
-webkit-user-select: auto;
|
|
-moz-user-select: element;
|
|
-ms-user-select: element;
|
|
user-select: element;
|
|
}
|
|
|
|
.ve-ce-protectedNode-phantom {
|
|
position: absolute;
|
|
background-color: rgba(104,171,255,0.1);
|
|
box-shadow: inset 0 0 0 1px #68abff;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ve.ce.FocusableNode */
|
|
|
|
.ve-ce-focusableNode-highlight {
|
|
background: #6da9f7;
|
|
position: absolute;
|
|
}
|
|
|
|
/* ve.ce.ResizableNode */
|
|
|
|
.ve-ce-resizableNode-transitioning {
|
|
-webkit-transition: width 100ms ease-in-out, height 100ms ease-in-out;
|
|
-moz-transition: width 100ms ease-in-out, height 100ms ease-in-out;
|
|
-ms-transition: width 100ms ease-in-out, height 100ms ease-in-out;
|
|
-o-transition: width 100ms ease-in-out, height 100ms ease-in-out;
|
|
transition: width 100ms ease-in-out, height 100ms ease-in-out;
|
|
}
|
|
|
|
.ve-ce-resizableNode-handles-resizing {
|
|
z-index: 10000;
|
|
}
|
|
|
|
.ve-ce-resizableNode-handles {
|
|
position: absolute;
|
|
box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.ve-ce-resizableNode-handles div {
|
|
position: absolute;
|
|
width: 0.66em;
|
|
height: 0.66em;
|
|
border: solid 0.125em #fff;
|
|
background-color: #333;
|
|
box-shadow: 0 0.1em 0.2em rgba(0,0,0,0.75);
|
|
border-radius: 1em;
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.ve-ce-resizableNode-nwHandle {
|
|
cursor: nw-resize;
|
|
left: -0.33em;
|
|
top: -0.33em;
|
|
}
|
|
|
|
.ve-ce-resizableNode-neHandle {
|
|
cursor: ne-resize;
|
|
right: -0.33em;
|
|
top: -0.33em;
|
|
}
|
|
|
|
.ve-ce-resizableNode-swHandle {
|
|
cursor: sw-resize;
|
|
bottom: -0.33em;
|
|
left: -0.33em;
|
|
}
|
|
|
|
.ve-ce-resizableNode-seHandle {
|
|
cursor: se-resize;
|
|
bottom: -0.33em;
|
|
right: -0.33em;
|
|
}
|
|
|
|
/* ve.ce.ImageNode */
|
|
|
|
.ve-ce-imageNode {
|
|
cursor: default;
|
|
}
|
|
|
|
/* ve.ce.AlienNode */
|
|
|
|
/* Fix weird Chrome native selection involving floated elements */
|
|
.ve-ce-alienBlockNode:before,
|
|
.ve-ce-alienBlockNode:after {
|
|
content: '';
|
|
}
|
|
|
|
.ve-ce-alienBlockNode {
|
|
display: block;
|
|
}
|
|
|
|
.ve-ce-alienInlineNode {
|
|
display: inline;
|
|
}
|
|
|
|
.ve-ce-alienNode-phantom {
|
|
background-color: #C3E59A;
|
|
background-image: -ms-repeating-linear-gradient(-45deg, white 0px, white 5px, #C3E59A 5px, #C3E59A 10px );
|
|
background-image: -webkit-repeating-linear-gradient(-45deg, white 0px, white 5px, #C3E59A 5px, #C3E59A 10px );
|
|
background-image: -moz-repeating-linear-gradient(-45deg, white 0px, white 5px, #C3E59A 5px, #C3E59A 10px);
|
|
background-image: repeating-linear-gradient(-45deg, white 0px, white 5px, #C3E59A 5px, #C3E59A 10px );
|
|
background-size: 14px 14px;
|
|
box-shadow: none;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ve.ce.MWTransclusionNode */
|
|
|
|
.ve-ce-mwTransclusionInlineNode {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* ve.ce.MWReferenceListNode */
|
|
|
|
.ve-ce-mwReferenceListNode .ve-ce-generated-wrapper {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* ve.ce.BranchNode */
|
|
|
|
.ve-ce-branchNode-blockSlug {
|
|
display: block;
|
|
}
|
|
|
|
/* ve.ce.MWPreformattedNode */
|
|
|
|
pre.ve-ce-branchNode {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.ve-ce-branchNode h1:empty:before,
|
|
.ve-ce-branchNode h2:empty:before,
|
|
.ve-ce-branchNode h3:empty:before,
|
|
.ve-ce-branchNode h4:empty:before,
|
|
.ve-ce-branchNode h5:empty:before,
|
|
.ve-ce-branchNode h6:empty:before,
|
|
.ve-ce-branchNode p:empty:before {
|
|
content: url('data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');
|
|
}
|
|
|
|
li.ve-ce-branchNode p.ve-ce-branchNode:first-child {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ve.ce.MWInlineImageNode */
|
|
|
|
.ve-ce-mwInlineImageNode {
|
|
display: inline-block;
|
|
}
|