mediawiki-extensions-Visual.../modules/ve/ui/styles/ve.ui.Widget.css
Trevor Parscal 6a068e7d83 UI Refactor
Changed:

VisualEditor.i18n.php
* Updated Link inspector i18n messages

ve.ui.MetaDialog.js -> ve.ui.PagedDialog
* Moved paging functionality into Paged dialog

ve.ui.EditorPanelLayout -> ve.ui.PagePanelLayout.js
* Renamed from EditorPanelLayout to work nicely with the concept of
  stacks and pages

ve.ui.GroupElement.js
* Added addItem method and change addItems to use it

ve.ui.Dialog.css
* Updated classname as per refactor of meta dialog

ve.ui.StackPanelLayout.js
* Set currentItem property on showItem
* In addItems method, show currentItem with class method
** rather display block on element

ve.ui.Layout.css
* Make editorPanel layout 100% in width.

ve.ui.Widget.css
* Added CategoryWidget and CategoryPopup styles
* Other adjustments

ve.ui.PopupWidget.js
* Added auto-close on loss of focus
* Made friendly with being initialized inside a frame

ve.ui.MWLinkTargetInputWidget.js
* Mixin ve.ui.PendingInputWidget and remove pending methods
* Prevent querying on spaces
* Reintroduce i18n messages for menu sections

ve.ui.MenuWidget.js
* Update cases of $input config property to input

New:

ve.ui.PagedDialog.js
* Refactored base-class for mwMeta dialog (and probably other dialogs
  too)
* Abstracts adding and accessing pages

ve.ui.PendingInputWidget.js
* Moved pushPending and popPending methods into pending class

Change-Id: I29bcd92b7b5641941a4e98e65b2a56424a5263ff
2013-04-26 21:18:13 +00:00

340 lines
8.4 KiB
CSS

/*!
* VisualEditor UserInterface Widget styles.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* ve.ui.IconButtonWidget */
.ve-ui-iconButtonWidget {
width: 2em;
height: 2em;
background-position: center center;
background-repeat: no-repeat;
cursor: pointer;
opacity: 0.8;
-webkit-transition: opacity 100ms;
-moz-transition: opacity 100ms;
-ms-transition: opacity 100ms;
-o-transition: opacity 100ms;
transition: opacity 100ms;
}
.ve-ui-iconButtonWidget:hover {
opacity: 1;
}
/* ve.ui.ButtonWidget */
.ve-ui-buttonWidget {
display: inline-block;
height: 1.8em;
margin: 0.1em 0;
padding: 0.25em 0.75em;
border-radius: 0.3em;
vertical-align: top;
color: #333;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
box-shadow: 0 0.1em 0.25em rgba(0, 0, 0, 0.1);
text-align: center;
font-size: 1em;
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Animation */
-webkit-transition: border-color 100ms;
-moz-transition: border-color 100ms;
-ms-transition: border-color 100ms;
-o-transition: border-color 100ms;
transition: border-color 100ms;
/* Gray */
border: 1px #c9c9c9 solid;
background-color: #ffffff;
filter: progid:DXImageTransform.Microsoft.gradient(
GradientType=0,startColorstr=#ffffff, endColorstr=#f0f0f0
);
background-image: -webkit-gradient(
linear, right top, right bottom, color-stop(0%,#ffffff), color-stop(100%,#f0f0f0)
);
background-image: -webkit-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
background-image: -moz-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
background-image: -ms-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
background-image: -o-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
background-image: linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
}
.ve-ui-buttonWidget:hover {
border-color: #aaa;
}
.ve-ui-buttonWidget:active {
border-color: #ddd;
box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.07);
color: black;
}
.ve-ui-widget-disabled.ve-ui-buttonWidget,
.ve-ui-widget-disabled.ve-ui-buttonWidget:active {
filter: alpha(opacity=25);
opacity: 0.5;
cursor: default;
box-shadow: none;
color: #333;
}
.ve-ui-widget-disabled.ve-ui-buttonWidget:hover {
border-color: #ccc;
box-shadow: none;
}
.ve-ui-buttonWidget .ve-ui-labeledElement-label {
display: inline-block;
vertical-align: middle;
line-height: 1.9em;
}
.ve-ui-flaggableElement-destructive.ve-ui-buttonWidget {
/* Red text */
color: #d45353;
}
.ve-ui-flaggableElement-constructive.ve-ui-buttonWidget {
/* Green */
border: solid 1px #c3e59a;
background-color: #f0fbe1;
filter: progid:DXImageTransform.Microsoft.gradient(
GradientType=0,startColorstr=#f0fbe1, endColorstr=#c3e59a
);
background-image: -webkit-gradient(
linear, right top, right bottom, color-stop(0%,#f0fbe1), color-stop(100%,#c3e59a)
);
background-image: -webkit-linear-gradient(top, #f0fbe1 0%, #c3e59a 100%);
background-image: -moz-linear-gradient(top, #f0fbe1 0%, #c3e59a 100%);
background-image: -ms-linear-gradient(top, #f0fbe1 0%, #c3e59a 100%);
background-image: -o-linear-gradient(top, #f0fbe1 0%, #c3e59a 100%);
background-image: linear-gradient(top, #f0fbe1 0%, #c3e59a 100%);
}
.ve-ui-flaggableElement-constructive.ve-ui-buttonWidget:hover {
border-color: #a6cf74;
}
.ve-ui-flaggableElement-primary.ve-ui-buttonWidget {
/* Blue */
border: solid 1px #b0d9ee;
background-color: #eaf4fa;
filter: progid:DXImageTransform.Microsoft.gradient(
GradientType=0,startColorstr=#eaf4fa, endColorstr=#b0d9ee
);
background-image: -webkit-gradient(
linear, right top, right bottom, color-stop(0%,#eaf4fa), color-stop(100%,#b0d9ee)
);
background-image: -webkit-linear-gradient(top, #eaf4fa 0%, #b0d9ee 100%);
background-image: -moz-linear-gradient(top, #eaf4fa 0%, #b0d9ee 100%);
background-image: -ms-linear-gradient(top, #eaf4fa 0%, #b0d9ee 100%);
background-image: -o-linear-gradient(top, #eaf4fa 0%, #b0d9ee 100%);
background-image: linear-gradient(top, #eaf4fa 0%, #b0d9ee 100%);
}
.ve-ui-flaggableElement-primary.ve-ui-buttonWidget:hover {
border-color: #84b9d4;
}
/* ve.ui.SelectWidget */
.ve-ui-selectWidget {
list-style: none;
margin: 0;
padding: 0;
}
/* ve.ui.OptionWidget */
.ve-ui-optionWidget {
display: block;
border: none;
list-style: none;
margin: 0;
padding: 0.5em 2em 0.5em 3em;
cursor: pointer;
}
.ve-ui-optionWidget .ve-ui-labeledElement-label {
white-space: nowrap;
}
.ve-ui-optionWidget-highlighted {
background-color: #b3d6f6;
}
/* ve.ui.OutlineItemWidget */
.ve-ui-outlineItemWidget {
padding: 1.25em 1.25em 1.25em 3.5em;
background-position: 1em center;
background-repeat: no-repeat;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
font-size: 1.1em;
}
.ve-ui-outlineItemWidget.ve-ui-optionWidget-selected {
background-color: #a7dcff;
text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
/* ve.ui.TextInputWidget */
.ve-ui-textInputWidget input,
.ve-ui-textInputWidget input:focus[readonly],
.ve-ui-widget-disabled.ve-ui-textInputWidget input:focus {
display: inline-block;
font-size: 1em;
font-family: sans-serif;
background-color: #f7f7f7;
border: solid 1px #ccc;
box-shadow: 0 0 0 white, inset 0 0.1em 0.2em #ddd;
padding: 0.5em;
border-radius: 0.25em;
/* Animation */
-webkit-transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
-moz-transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
-ms-transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
-o-transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
}
.ve-ui-textInputWidget input:focus {
outline: none;
border-color: #a7dcff;
box-shadow: 0 0 0.3em #a7dcff, 0 0 0 white;
background-color: #fff;
}
.ve-ui-textInputWidget input[readonly] {
color: #777;
text-shadow: 0 1px 1px #fff;
}
.ve-ui-widget-disabled.ve-ui-textInputWidget input,
.ve-ui-widget-disabled.ve-ui-textInputWidget input:focus {
color: #ccc;
text-shadow: 0 1px 1px #fff;
}
/* ve.ui.MenuWidget */
.ve-ui-menuWidget {
position: absolute;
background: #fff;
margin-top: -1px;
z-index: 101;
border: solid 1px #ccc;
border-radius: 0 0 0.25em 0.25em;
box-shadow: 0 0.15em 1em 0 rgba(0, 0, 0, 0.2);
}
.ve-ui-menuWidget input {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
opacity: 0;
}
/* ve.ui.MenuItemWidget */
.ve-ui-menuItemWidget {
background-position: 1em center;
background-repeat: no-repeat;
}
/* ve.ui.MenuSectionItemWidget */
.ve-ui-menuSectionItemWidget {
padding: 0.33em 0.75em;
color: #888;
cursor: default;
}
/* ve.ui.PendingInputWidget */
.ve-ui-pendingInputWidget input {
background-image: url(images/pending.gif);
}
/* ve.ui.MWLinkTargetInputWidget */
.ve-ui-mwLinkTargetInputWidget-menu {
width: 20em;
margin-top: -7px;
font-size: 0.8em;
}
.ve-ui-mwLinkTargetInputWidget-menu .ve-ui-menuWidget-item {
padding: 0.33em 1.25em;
color: #0645AD;
}
.ve-ui-mwLinkTargetInputWidget-menu .ve-ui-menuItemWidget[rel=newPage] {
color: #BA0000;
}
.ve-ui-mwLinkTargetInputWidget-menu .ve-ui-menuItemWidget[rel=existingPage],
.ve-ui-mwLinkTargetInputWidget-menu .ve-ui-menuItemWidget[rel=matchingPage],
.ve-ui-mwLinkTargetInputWidget-menu .ve-ui-menuItemWidget[rel=externalLink] {
color: #0645AD;
}
/* ve.ui.PopupWidget */
.ve-ui-popupWidget-callout {
position: absolute;
/* @embed */
background-image: url(images/callout.svg);
background-repeat: no-repeat;
width: 15px;
height: 8px;
margin-left: -7px;
z-index: 4;
}
.ve-ui-popupWidget-body {
margin-top: 7px;
position: absolute;
overflow: hidden;
border: solid 1px #ccc;
border-radius: 0.25em;
background-color: #fff;
box-shadow: 0 0.15em 0.5em 0 rgba(0, 0, 0, 0.2);
}
.ve-ui-popupWidget-transitioning .ve-ui-popupWidget-body {
-webkit-transition: width 100ms, height 100ms, left 100ms;
-moz-transition: width 100ms, height 100ms, left 100ms;
-ms-transition: width 100ms, height 100ms, left 100ms;
-o-transition: width 100ms, height 100ms, left 100ms;
transition: width 100ms, height 100ms, left 100ms;
-webkit-transition-timing-function: ease-in-out;
-moz-transition-timing-function: ease-in-out;
-ms-transition-timing-function: ease-in-out;
-o-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
}
.ve-ui-popupWidget-body:focus {
/* No outline. The body has a tabindex and is focused on show */
outline: none;
}