1 @import url
("palette.css");
5 Window.css for Mocha UI
10 Copyright (c) 2007-2009 Greg Houston, <http://greghoustondesign.com/>.
16 Window.js and Modal.css
21 ---------------------------------------------------------------- */
24 background-color: var
(--color-background-default
);
30 background-color: var
(--color-background-default
);
32 height: auto
!important
; /* also fixes out of block issue */
34 position: absolute
; /* This is also set in theme.js in order to make theme transitions smoother */
40 We get a little creative here in order to define a gradient in the CSS using a query
41 string appended to a background image.
43 "from" is the top color of the gradient. "to" is the bottom color of the gradient.
45 Both must be hex values without the leading # sign.
50 background-color: var
(--color-background-default
);
57 background-size: 16px !important
; /* override mocha titlebar logo inline style */
62 padding: 5px 10px 4px 12px;
65 .mochaToolbarWrapper {
66 background-color: var
(--color-background-popup
);
67 height: auto
!important
;
70 width: 100%; /* For IE */
73 div
.mochaToolbarWrapper
.bottom
{
75 border-bottom: 1px solid var
(--color-border-default
);
79 border-top: 1px solid var
(--color-border-default
);
80 height: auto
!important
;
82 width: 100%; /* For IE */
86 border-bottom: 1px solid var
(--color-border-default
);
87 border-top: 1px solid var
(--color-border-default
);
90 /* Has a fixed height and scrollbars if required. */
91 .mochaContentWrapper {
92 background-color: var
(--color-background-popup
);
103 font-size: 1px; /* For IE6 */
112 /* Corner resize handles */
119 /* Bottom right resize handle */
121 background-color: var
(--color-background-default
);
144 .mochaCanvasControls {
152 To use images for these buttons:
153 1. Set the useCanvasControls window option to false.
154 2. If you use a different button size you may need to reposition the controls.
155 Modify the controlsOffset window option.
156 2. Replcac the background-color with a background-image for each button.
159 .mochaMinimizeButton
,
160 .mochaMaximizeButton
,
162 background-color: var
(--color-background-default
);
163 color: var
(--color-text-default
);
173 .mochaMinimizeButton {
178 background: url
("../images/spinner.gif") no-repeat
;
191 /* Fix for IE6 select z-index issue */
193 border: 1px solid transparent
;
205 ---------------------------------------------------------------- */
208 background: hsla
(0deg 0 0 / 30%);
218 /* Fix for IE6 select z-index issue */
239 * html #windowUnderlay
{
243 /* The replaced class is used internally when converting CSS values to Canvas. These classes should not be removed. */
246 .mochaTitlebar
.replaced
,
247 .mochaMinimizeButton
.replaced
,
248 .mochaMaximizeButton
.replaced
,
249 .mochaCloseButton.replaced {
250 background-color: transparent
!important
;
263 .windowClosed
.mochaContentBorder
,
264 .windowClosed
.mochaToolbarWrapper
,
265 .windowClosed
.mochaTitlebar
,
266 .windowClosed
.mochaControls
,
267 .windowClosed .mochaCanvasControls {
279 border: 8px solid
#fff;
282 .modal2 .mochaContentBorder {
290 border: 1px solid
#555;
293 .mocha.no-canvas .mochaTitlebar {
297 .mocha.transparent .mochaTitlebar h3 {
302 .mocha.transparent .mochaContentWrapper {
303 background: transparent
;
306 .mocha.notification {
310 .mocha.notification .mochaTitlebar {
314 .mocha.notification .mochaContentBorder {
318 .mocha.notification .mochaContentWrapper {
319 background: transparent
;
325 /* Example Window Themes */
327 #about_contentWrapper {
328 background: #e5e5e5 url
("../images/logo2.gif") 3px 3px no-repeat
;
331 #builder_contentWrapper {
335 #json01 .mochaTitlebar
{
339 #json02 .mochaTitlebar
{
343 #json03 .mochaTitlebar
{
347 .jsonExample .mochaTitlebar h3 {
351 /* This does not work in IE6. */
352 .isFocused.jsonExample .mochaTitlebar h3 {
356 #fxmorpherExample .mochaContentWrapper
{
364 /* Workaround to make invisible buttons clickable */
366 .mochaMinimizeButton
.replaced
,
367 .mochaMaximizeButton
.replaced
,
368 .mochaCloseButton.replaced {
369 background-image: url
("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") !important
;
372 /* iOS iframe scrolling */
373 .windowFrame .mochaContentWrapper {
374 /* scroll the Window content. !important required. */
375 overflow: auto
!important
;
376 -webkit-overflow-scrolling: touch
;
379 .windowFrame .mochaContent {
383 .windowFrame iframe {
384 /* fix double scroll bar by reducing frame height. !important required. */
385 height: calc
(100% - 5px) !important
;