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
);
61 padding: 5px 10px 4px 12px;
64 .mochaToolbarWrapper {
65 background-color: var
(--color-background-popup
);
66 height: auto
!important
;
69 width: 100%; /* For IE */
72 div
.mochaToolbarWrapper
.bottom
{
74 border-bottom: 1px solid var
(--color-border-default
);
78 border-top: 1px solid var
(--color-border-default
);
79 height: auto
!important
;
81 width: 100%; /* For IE */
85 border-bottom: 1px solid var
(--color-border-default
);
86 border-top: 1px solid var
(--color-border-default
);
89 /* Has a fixed height and scrollbars if required. */
90 .mochaContentWrapper {
91 background-color: var
(--color-background-popup
);
102 font-size: 1px; /* For IE6 */
111 /* Corner resize handles */
118 /* Bottom right resize handle */
120 background-color: var
(--color-background-default
);
143 .mochaCanvasControls {
151 To use images for these buttons:
152 1. Set the useCanvasControls window option to false.
153 2. If you use a different button size you may need to reposition the controls.
154 Modify the controlsOffset window option.
155 2. Replcac the background-color with a background-image for each button.
158 .mochaMinimizeButton
,
159 .mochaMaximizeButton
,
161 background-color: var
(--color-background-default
);
162 color: var
(--color-text-default
);
172 .mochaMinimizeButton {
177 background: url
("../images/spinner.gif") no-repeat
;
190 /* Fix for IE6 select z-index issue */
192 border: 1px solid transparent
;
204 ---------------------------------------------------------------- */
217 /* Fix for IE6 select z-index issue */
238 * html #windowUnderlay
{
242 /* The replaced class is used internally when converting CSS values to Canvas. These classes should not be removed. */
245 .mochaTitlebar
.replaced
,
246 .mochaMinimizeButton
.replaced
,
247 .mochaMaximizeButton
.replaced
,
248 .mochaCloseButton.replaced {
249 background-color: transparent
!important
;
262 .windowClosed
.mochaContentBorder
,
263 .windowClosed
.mochaToolbarWrapper
,
264 .windowClosed
.mochaTitlebar
,
265 .windowClosed
.mochaControls
,
266 .windowClosed .mochaCanvasControls {
278 border: 8px solid
#fff;
281 .modal2 .mochaContentBorder {
289 border: 1px solid
#555;
292 .mocha.no-canvas .mochaTitlebar {
296 .mocha.transparent .mochaTitlebar h3 {
301 .mocha.transparent .mochaContentWrapper {
302 background: transparent
;
305 .mocha.notification {
309 .mocha.notification .mochaTitlebar {
313 .mocha.notification .mochaContentBorder {
317 .mocha.notification .mochaContentWrapper {
318 background: transparent
;
324 /* Example Window Themes */
326 #about_contentWrapper {
327 background: #e5e5e5 url
("../images/logo2.gif") 3px 3px no-repeat
;
330 #builder_contentWrapper {
334 #json01 .mochaTitlebar
{
338 #json02 .mochaTitlebar
{
342 #json03 .mochaTitlebar
{
346 .jsonExample .mochaTitlebar h3 {
350 /* This does not work in IE6. */
351 .isFocused.jsonExample .mochaTitlebar h3 {
355 #fxmorpherExample .mochaContentWrapper
{
363 /* Workaround to make invisible buttons clickable */
365 .mochaMinimizeButton
.replaced
,
366 .mochaMaximizeButton
.replaced
,
367 .mochaCloseButton.replaced {
368 background-image: url
("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") !important
;
371 /* iOS iframe scrolling */
372 .windowFrame .mochaContentWrapper {
373 /* scroll the Window content. !important required. */
374 overflow: auto
!important
;
375 -webkit-overflow-scrolling: touch
;
378 .windowFrame .mochaContent {
382 .windowFrame iframe {
383 /* fix double scroll bar by reducing frame height. !important required. */
384 height: calc
(100% - 5px) !important
;