mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
c472b2fe4a
ve.ui.Surface.js * Make local overlay a child of ve-ui-surface and a sibling to ve-ce-surface elements. ** This keeps local overlays relative to their surface and eliminates the need for insane z-indexes. ve.ui.PopupWidget.js * PopupWidget boundaries are now relative to ve-ce-surface and no longer protrude out ve.ce.Node.css, ve.ui.Window.css * Removal or replacement of insane z-indexes. ve.ce.FocusableNode.js, ve.ce.ProtectedNode.js, ve.ce.ResizableNode.js, ve.ui.Context.js * Translate offsets from local overlay ve.init.mw.ViewPageTarget-monobook.css, ve.init.mw.ViewPageTarget-vector.css * Skin specific z-indexes for global overlay ve.init.mw.ViewPageTarget.js * Applied direction specific mw class to ce.Surface vs ui.Surface to prevent mw content styles from being applied to ui elements. ve.ui.Dialog.css * Adjustments to surface inside of dialog so that relative offsets for local overlays can be properly calculated. ve.ui.Surface.css * Explicitly force .ve-ui-surface to be relative so that it's children can be relatively positioned. ve.ui.Widget.css * Removal of unnecessary font-size properties now that local overlay is sibling of surface. ve.js * Added get relative position helper method to translate position offsets from target parent Bug: 50241 Change-Id: Ibadce404a2286bc5dcec48f0d9da89004dbbd867
264 lines
5.5 KiB
CSS
264 lines
5.5 KiB
CSS
/*!
|
|
* VisualEditor UserInterface Dialog styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-dialog {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding: 1em;
|
|
line-height: 1em;
|
|
background-color: #fff;
|
|
background-color: rgba(255,255,255,0.5);
|
|
-webkit-animation: ve-ui-fade-in 250ms ease-in-out 0 1 normal;
|
|
-moz-animation: ve-ui-fade-in 250ms ease-in-out 0 1 normal;
|
|
-ms-animation: ve-ui-fade-in 250ms ease-in-out 0 1 normal;
|
|
-o-animation: ve-ui-fade-in 250ms ease-in-out 0 1 normal;
|
|
animation: ve-ui-fade-in 250ms ease-in-out 0 1 normal;
|
|
}
|
|
|
|
.ve-ui-dialog-closing {
|
|
-webkit-animation: ve-ui-fade-in 250ms ease-in-out 0 1 reverse;
|
|
-moz-animation: ve-ui-fade-in 250ms ease-in-out 0 1 reverse;
|
|
-ms-animation: ve-ui-fade-in 250ms ease-in-out 0 1 reverse;
|
|
-o-animation: ve-ui-fade-in 250ms ease-in-out 0 1 reverse;
|
|
animation: ve-ui-fade-in 250ms ease-in-out 0 1 reverse;
|
|
}
|
|
|
|
.ve-ui-dialog .ve-ui-window-frame {
|
|
position: fixed;
|
|
top: 1em;
|
|
right: 0;
|
|
bottom: 1em;
|
|
left: 0;
|
|
margin: auto;
|
|
width: 800px;
|
|
min-height: 12em;
|
|
max-height: 600px;
|
|
background-color: #fff;
|
|
border: solid 1px #ccc;
|
|
border-radius: 0.5em;
|
|
box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
-webkit-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 normal;
|
|
-moz-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 normal;
|
|
-ms-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 normal;
|
|
-o-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 normal;
|
|
animation: ve-ui-zoom-in 250ms ease-in-out 0 1 normal;
|
|
}
|
|
|
|
.ve-ui-dialog-closing .ve-ui-window-frame {
|
|
-webkit-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 reverse;
|
|
-moz-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 reverse;
|
|
-ms-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 reverse;
|
|
-o-animation: ve-ui-zoom-in 250ms ease-in-out 0 1 reverse;
|
|
animation: ve-ui-zoom-in 250ms ease-in-out 0 1 reverse;
|
|
}
|
|
|
|
.ve-ui-dialog .ve-ui-frame {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.ve-ui-window-head,
|
|
.ve-ui-window-body,
|
|
.ve-ui-window-foot {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ve-ui-window-head {
|
|
top: 0;
|
|
height: 3.8em;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.ve-ui-window-foot {
|
|
bottom: 0;
|
|
height: 4.8em;
|
|
padding: 1em;
|
|
}
|
|
|
|
.ve-ui-window-body {
|
|
box-shadow: 0 0 0.66em rgba(0,0,0,0.25);
|
|
top: 3.8em;
|
|
bottom: 4.8em;
|
|
}
|
|
|
|
.ve-ui-window-icon {
|
|
width: 2.4em;
|
|
height: 2.8em;
|
|
line-height: 2.8em;
|
|
}
|
|
|
|
.ve-ui-window-title {
|
|
line-height: 2.8em;
|
|
}
|
|
|
|
.ve-ui-window-foot .ve-ui-buttonWidget {
|
|
float: right;
|
|
margin: 0.125em 0.25em;
|
|
}
|
|
|
|
.ve-ui-window-closeButton {
|
|
float: right;
|
|
margin: 0.25em 0.25em;
|
|
}
|
|
|
|
.ve-ui-window-body .ve-ui-surface {
|
|
border: solid 1px #ddd;
|
|
border-radius: 0.25em;
|
|
border-top-right-radius: 0;
|
|
border-top-left-radius: 0;
|
|
}
|
|
|
|
.ve-ui-pagedDialog-outlinePanel {
|
|
border-right: solid 1px #ddd;
|
|
}
|
|
|
|
.ve-ui-pagedDialog-outlinePanel-editable .ve-ui-outlineWidget {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 3em;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.ve-ui-pagedDialog-outlinePanel .ve-ui-outlineControlsWidget {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
box-shadow: 0 0 0.25em rgba(0,0,0,0.25);
|
|
}
|
|
|
|
.ve-ui-pagedDialog-pagesPanel .ve-ui-panelLayout {
|
|
padding: 1.5em;
|
|
width: 100%;
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ve.ui.MWReferenceEditDialog & ve.ui.MWReferenceListDialog */
|
|
|
|
.ve-ui-mwReferenceEditDialog-body,
|
|
.ve-ui-mwReferenceListDialog-body {
|
|
padding: 2em;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.ve-ui-mwReferenceEditDialog-toolbar {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.ve-ui-mwReferenceEditDialog-toolbar .ve-ui-toolbar-bar {
|
|
border: solid 1px #ddd;
|
|
border-radius: 0.25em;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-width: 0;
|
|
}
|
|
|
|
.ve-ui-window-body .ve-ce-documentNode {
|
|
padding: 0 1.875em; /* 1.5/0.8 */
|
|
}
|
|
|
|
/* ve.ui.MWTransclusionDialog */
|
|
|
|
.ve-ui-mwTransclusionDialog-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-input textarea {
|
|
height: 10em;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addParameterFieldset .ve-ui-widget,
|
|
.ve-ui-mwTransclusionDialog-addTemplateFieldset .ve-ui-widget {
|
|
display: inline-block;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-addParameterFieldset .ve-ui-buttonWidget,
|
|
.ve-ui-mwTransclusionDialog-addTemplateFieldset .ve-ui-buttonWidget {
|
|
margin-left: 0.5em;
|
|
}
|
|
|
|
.ve-ui-mwTransclusionDialog-placeholder-label {
|
|
font-style: italic;
|
|
}
|
|
|
|
/* ve.ui.MWMetaDialog */
|
|
|
|
.ve-ui-mwMetaDialog-languages-table {
|
|
margin: 2em 0 0 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
border: none;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.ve-ui-mwMetaDialog-languages-table th {
|
|
border-bottom: solid 1px #ddd;
|
|
text-align: left;
|
|
}
|
|
|
|
.ve-ui-mwMetaDialog-languages-table th,
|
|
.ve-ui-mwMetaDialog-languages-table td {
|
|
padding: 0.75em 1em;
|
|
border-bottom: solid 1px white;
|
|
}
|
|
|
|
.ve-ui-mwMetaDialog-languages-table tr td:first-child {
|
|
width: 30%;
|
|
}
|
|
|
|
.ve-ui-mwMetaDialog-languages-table tr:nth-child(odd) td {
|
|
background: #F0F0F0;
|
|
}
|
|
|
|
.ve-ui-mwMetaDialog-languages-table tr:nth-child(even) td {
|
|
background: #F8F8F8;
|
|
}
|
|
|
|
/* ve.ui.MWMediaInsertDialog */
|
|
|
|
.ve-ui-mwMediaInsertDialog-select {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
/* ve.ui.MWMediaEditDialog */
|
|
|
|
.ve-ui-mwMediaEditDialog-body {
|
|
padding: 2em;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.ve-ui-mwMediaEditDialog-toolbar {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.ve-ui-mwMediaEditDialog-toolbar .ve-ui-toolbar-bar {
|
|
border: solid 1px #ddd;
|
|
border-radius: 0.25em;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-width: 0;
|
|
}
|