mediawiki-extensions-Visual.../modules/ve/ui/styles/ve.ui.Dialog.css
Ed Sanders 972c9a46b7 Make the save dialog an actual dialog
Major changes:
* Create a MW specific save dialog class
* Widgetize save dialog elements
* Simplification of viewPageTarget

Minor changes:
* Added getWindow method to windowSet and setTitle methods to window class
* Add transition css properties to dialog styles

Bug: 48566
Bug: 50722
Bug: 51918
Bug: 52175
Bug: 53313
Change-Id: I8c0db01fb8477a9b3d3dfe2a6073ac67869ce40e
2013-10-07 15:59:00 -07:00

192 lines
4.4 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;
-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;
-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-transition: all 250ms ease-in-out;
-moz-transition: all 250ms ease-in-out;
-o-transition: all 250ms ease-in-out;
transition: all 250ms ease-in-out;
-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;
-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 .ve-ui-window-frame-small {
width: 600px;
max-height: 375px;
}
.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;
-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-dialog-content .ve-ui-window-head,
.ve-ui-dialog-content .ve-ui-window-body,
.ve-ui-dialog-content .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-dialog-content .ve-ui-window-head {
top: 0;
height: 3.8em;
padding: 0.5em;
}
.ve-ui-dialog-content .ve-ui-window-foot {
bottom: 0;
height: 4.8em;
padding: 1em;
}
.ve-ui-dialog-content .ve-ui-window-body {
box-shadow: 0 0 0.66em rgba(0,0,0,0.25);
top: 3.8em;
bottom: 4.8em;
}
.ve-ui-dialog-content-footless .ve-ui-window-body {
bottom: 0;
}
.ve-ui-dialog-content-footless .ve-ui-window-foot {
display: none;
}
.ve-ui-dialog-content .ve-ui-window-icon {
width: 2.4em;
height: 2.8em;
line-height: 2.8em;
}
.ve-ui-dialog-content .ve-ui-window-title {
line-height: 2.8em;
}
.ve-ui-dialog-content .ve-ui-window-foot .ve-ui-pushButtonWidget {
float: left;
margin: 0.125em 0.25em;
}
.ve-ui-dialog-content .ve-ui-window-foot .ve-ui-pushButtonWidget.ve-ui-flaggableElement-primary,
.ve-ui-dialog-content .ve-ui-window-foot .ve-ui-pushButtonWidget.ve-ui-flaggableElement-constructive,
.ve-ui-dialog-content .ve-ui-window-foot .ve-ui-pushButtonWidget.ve-ui-flaggableElement-destructive {
float: right;
}
.ve-ui-dialog-content .ve-ui-window-closeButton {
float: right;
margin: 0.25em 0.25em;
}
.ve-ui-dialog-content .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-window-body .ve-ce-documentNode {
padding: 1.875em; /* 1.5/0.8 */
}
/* ve.ui.PagedLayout */
.ve-ui-pagedLayout-pagesPanel .ve-ui-panelLayout {
padding: 1.5em;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ve-ui-pagedLayout-pagesPanel .ve-ui-panelLayout-scrollable {
overflow-y: auto;
}
.ve-ui-pagedLayout-pagesPanel .ve-ui-panelLayout-padded {
padding: 2em;
}
/* ve.ui.PagedOutlineLayout */
.ve-ui-pagedOutlineLayout-outlinePanel {
border-right: solid 1px #ddd;
}
.ve-ui-pagedOutlineLayout-outlinePanel-editable .ve-ui-outlineWidget {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 3em;
overflow-y: auto;
}
.ve-ui-pagedOutlineLayout-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-window-body .ve-ce-documentNode {
padding: 1.875em; /* 1.5/0.8 */
}