mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
23b2da91fd
Objectives: * Allow adding content or templates within a transclusion * Add template placeholder to model and view which resolves to nothing when saving (thus disappearing if not resolved) Changes: *.php * Add links to new messages and files ve.ui.OutlineControlsWidget.js * Organize controls into "adders" and "movers" ve.ui.Widget.css * Add styles for adders/movers sections of outline controls * Make adders appear on hover to reduce clutter ve.ui.Icons-*.css * Add icon for "add item" ve.ui.Dialog.css * Add styles for add template fieldsets * Make placeholder items in the outline italic ve.ui.PagedDialog.js * Pass adders config to outline controls ve.ui.MWTransclusionDialog.js * Add support for adding content and templates ve.dm.MWTransclusionModel.js * Add addPlaceholder method ve.dm.MWTemplatePlaceholderModel.js * New class, pretty much an empty part * Using this makes the UI much easier to work with - no need to special case the outline control for new items * Because it's not supported specifically in ve.dm.MWTransclusionModel.getPlainObject, it produces nothing and goes away naturally on apply Change-Id: I3478560fb53ba2ccd3fb26bafb6a61e6415565eb
257 lines
4.7 KiB
CSS
257 lines
4.7 KiB
CSS
/*!
|
|
* VisualEditor UserInterface vector icon styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-icon-menu {
|
|
/* @embed */
|
|
background-image: url(images/icons/menu.svg);
|
|
}
|
|
|
|
.ve-ui-icon-reference {
|
|
/* @embed */
|
|
background-image: url(images/icons/reference.svg);
|
|
}
|
|
|
|
.ve-ui-icon-picture {
|
|
/* @embed */
|
|
background-image: url(images/icons/picture.svg);
|
|
}
|
|
|
|
.ve-ui-icon-close {
|
|
/* @embed */
|
|
background-image: url(images/icons/close.svg);
|
|
}
|
|
|
|
.ve-ui-icon-language-big {
|
|
/* @embed */
|
|
background-image: url(images/icons/language-big.svg);
|
|
}
|
|
|
|
.ve-ui-icon-language {
|
|
/* @embed */
|
|
background-image: url(images/icons/language.svg);
|
|
}
|
|
|
|
.ve-ui-icon-tag-big {
|
|
/* @embed */
|
|
background-image: url(images/icons/tag-big.svg);
|
|
}
|
|
|
|
.ve-ui-icon-tag {
|
|
/* @embed */
|
|
background-image: url(images/icons/tag.svg);
|
|
}
|
|
|
|
.ve-ui-icon-settings {
|
|
/* @embed */
|
|
background-image: url(images/icons/settings.svg);
|
|
}
|
|
|
|
.ve-ui-icon-remove {
|
|
/* @embed */
|
|
background-image: url(images/icons/remove.svg);
|
|
}
|
|
|
|
.ve-ui-icon-previous {
|
|
/* @embed */
|
|
background-image: url(images/icons/move-rtl.svg);
|
|
}
|
|
|
|
.ve-ui-icon-next {
|
|
/* @embed */
|
|
background-image: url(images/icons/move-ltr.svg);
|
|
}
|
|
|
|
.ve-ui-icon-window {
|
|
/* @embed */
|
|
background-image: url(images/icons/window.svg);
|
|
}
|
|
|
|
.ve-ui-icon-alert {
|
|
/* @embed */
|
|
background-image: url(images/icons/alert.svg);
|
|
}
|
|
|
|
.ve-ui-icon-check {
|
|
/* @embed */
|
|
background-image: url(images/icons/check.svg);
|
|
}
|
|
|
|
.ve-ui-icon-comment {
|
|
/* @embed */
|
|
background-image: url(images/icons/comment.svg);
|
|
}
|
|
|
|
.ve-ui-icon-template {
|
|
/* @embed */
|
|
background-image: url(images/icons/template.svg);
|
|
}
|
|
|
|
.ve-ui-icon-template-big {
|
|
/* @embed */
|
|
background-image: url(images/icons/template-big.svg);
|
|
}
|
|
|
|
.ve-ui-icon-parameter {
|
|
/* @embed */
|
|
background-image: url(images/icons/parameter.svg);
|
|
}
|
|
|
|
.ve-ui-icon-parameter-big {
|
|
/* @embed */
|
|
background-image: url(images/icons/parameter-big.svg);
|
|
}
|
|
|
|
.ve-ui-icon-parameter-set {
|
|
/* @embed */
|
|
background-image: url(images/icons/parameter-set.svg);
|
|
}
|
|
|
|
.ve-ui-icon-source {
|
|
/* @embed */
|
|
background-image: url(images/icons/source.svg);
|
|
}
|
|
|
|
.ve-ui-icon-source-big {
|
|
/* @embed */
|
|
background-image: url(images/icons/source-big.svg);
|
|
}
|
|
|
|
.ve-ui-icon-up {
|
|
/* @embed */
|
|
background-image: url(images/icons/up.svg);
|
|
}
|
|
|
|
.ve-ui-icon-down {
|
|
/* @embed */
|
|
background-image: url(images/icons/down.svg);
|
|
}
|
|
|
|
.ve-ui-icon-undo {
|
|
/* @embed */
|
|
background-image: url(images/icons/arched-arrow-rtl.svg);
|
|
}
|
|
|
|
.ve-ui-icon-redo {
|
|
/* @embed */
|
|
background-image: url(images/icons/arched-arrow-ltr.svg);
|
|
}
|
|
|
|
.ve-ui-icon-bold-a {
|
|
/* @embed */
|
|
background-image: url(images/icons/bold-a.svg);
|
|
}
|
|
|
|
.ve-ui-icon-bold-b {
|
|
/* @embed */
|
|
background-image: url(images/icons/bold-b.svg);
|
|
}
|
|
|
|
.ve-ui-icon-bold-f {
|
|
/* @embed */
|
|
background-image: url(images/icons/bold-f.svg);
|
|
}
|
|
|
|
.ve-ui-icon-italic-a {
|
|
/* @embed */
|
|
background-image: url(images/icons/italic-a.svg);
|
|
}
|
|
|
|
.ve-ui-icon-italic-i {
|
|
/* @embed */
|
|
background-image: url(images/icons/italic-i.svg);
|
|
}
|
|
|
|
.ve-ui-icon-italic-k {
|
|
/* @embed */
|
|
background-image: url(images/icons/italic-k.svg);
|
|
}
|
|
|
|
.ve-ui-icon-link {
|
|
/* @embed */
|
|
background-image: url(images/icons/link.svg);
|
|
}
|
|
|
|
.ve-ui-icon-clear {
|
|
/* @embed */
|
|
background-image: url(images/icons/clear.svg);
|
|
}
|
|
|
|
.ve-ui-icon-number-list {
|
|
/* @embed */
|
|
background-image: url(images/icons/number-list-ltr.svg);
|
|
}
|
|
|
|
.ve-ui-icon-bullet-list {
|
|
/* @embed */
|
|
background-image: url(images/icons/bullet-list-ltr.svg);
|
|
}
|
|
|
|
.ve-ui-icon-indent-list {
|
|
/* @embed */
|
|
background-image: url(images/icons/indent-list-ltr.svg);
|
|
}
|
|
|
|
.ve-ui-icon-outdent-list {
|
|
/* @embed */
|
|
background-image: url(images/icons/outdent-list-ltr.svg);
|
|
}
|
|
|
|
.ve-ui-icon-strikethrough-s {
|
|
/* @embed */
|
|
background-image: url(images/icons/strikethrough-s.svg);
|
|
}
|
|
|
|
.ve-ui-icon-strikethrough-a {
|
|
/* @embed */
|
|
background-image: url(images/icons/strikethrough-a.svg);
|
|
}
|
|
|
|
.ve-ui-icon-underline-u {
|
|
/* @embed */
|
|
background-image: url(images/icons/underline-u.svg);
|
|
}
|
|
|
|
.ve-ui-icon-underline-a {
|
|
/* @embed */
|
|
background-image: url(images/icons/underline-a.svg);
|
|
}
|
|
|
|
.ve-ui-icon-subscript {
|
|
/* @embed */
|
|
background-image: url(images/icons/subscript.svg);
|
|
}
|
|
|
|
.ve-ui-icon-superscript {
|
|
/* @embed */
|
|
background-image: url(images/icons/superscript.svg);
|
|
}
|
|
|
|
.ve-ui-icon-search {
|
|
/* @embed */
|
|
background-image: url(images/icons/search.svg);
|
|
}
|
|
|
|
.ve-ui-icon-search-big {
|
|
/* @embed */
|
|
background-image: url(images/icons/search-big.svg);
|
|
}
|
|
|
|
.ve-ui-icon-expand {
|
|
/* @embed */
|
|
background-image: url(images/icons/expand.svg);
|
|
}
|
|
|
|
.ve-ui-icon-collapse {
|
|
/* @embed */
|
|
background-image: url(images/icons/collapse.svg);
|
|
}
|
|
|
|
.ve-ui-icon-add-item {
|
|
/* @embed */
|
|
background-image: url(images/icons/add-item.svg);
|
|
}
|