UNPKG

monaca-lib

Version:

Monaca cloud API bindings for JavaScript

871 lines (731 loc) 20.2 kB
/* * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ label { cursor: pointer; } label:hover input { box-shadow: 0 0 3px highlight; } fieldset[disabled] label:hover input { box-shadow: none; } .object-popover-container { display: inline-block; } .inspected-page-placeholder { background-color: white; } .toolbar-background { padding-left: 1px; border-bottom: 1px solid rgb(64%, 64%, 64%); background-origin: padding-box; background-clip: padding-box; } body .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header { background-color: #eee; } .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header { flex: 0 0 24px; } .inspector-view-toolbar-left { padding-left: 2px; margin-right: -5px; /* Should compensate for .tabbed-pane-header-contents margin-left. */ } .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header-tab, .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header-tab.selected { border-width: 0 2px 0 2px; background: none; padding-right: 3px; } .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header-tab.selected { border-width: 0 2px 0 2px; -webkit-border-image: url(Images/toolbarItemSelected.png) 0 2 0 2; } .inspector-view-close-button { float: right; padding-right: 6px; padding-left: 4px; } body.undocked .inspector-view-close-button { display: none; } .platform-windows .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header, .platform-windows.inactive .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header { background-image: none; } body.undocked.platform-mac .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header { background-image: linear-gradient(to bottom, rgb(208, 208, 208), rgb(200, 200, 200)) !important; color: #333 !important; } body.undocked.platform-mac.inactive .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header { background-image: linear-gradient(to bottom, rgb(238, 238, 238), rgb(224, 224, 224)) !important; color: #555 !important; } .close-button, .close-button-gray { background-image: url(Images/statusbarButtonGlyphs.png); background-size: 320px 144px; display: inline-block; } .close-button { width: 14px; height: 14px; background-position: -128px -96px; } .close-button-gray { width: 13px; height: 13px; background-position: -175px -96px; } @media (-webkit-min-device-pixel-ratio: 1.5) { .close-button, .close-button-gray { background-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .close-button:hover { background-position: -96px -96px; } .close-button:active { background-position: -111px -96px; } .close-button-gray:hover { background-position: -143px -96px; } .close-button-gray:active { background-position: -160px -96px; } .error-icon-small, .warning-icon-small, .red-ball, .green-ball, .orange-ball { background-image: url(Images/statusbarButtonGlyphs.png); background-size: 320px 144px; width: 10px; height: 10px; display: inline-block; } @media (-webkit-min-device-pixel-ratio: 1.5) { .error-icon-small, .warning-icon-small, .red-ball, .green-ball, .orange-ball { background-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .error-icon-small { background-position: -213px -96px; } .warning-icon-small { background-position: -202px -107px; } .red-ball { background-position: -224px -96px; } .green-ball { background-position: -235px -96px; } .orange-ball { background-position: -246px -96px; } .bubble-repeat-count { display: inline-block; height: 14px; background-color: rgb(128, 151, 189); vertical-align: middle; white-space: nowrap; padding: 1px 4px; text-align: left; font-size: 11px; line-height: normal; font-weight: bold; text-shadow: none; color: white; margin-top: -1px; border-radius: 7px; } .console-formatted-object, .console-formatted-map, .console-formatted-set, .console-formatted-iterator, .console-formatted-generator, .console-formatted-node, .console-formatted-array { position: relative; display: inline-block; vertical-align: top; color: inherit; } .console-formatted-node:hover { background-color: rgba(56, 121, 217, 0.1); } .console-formatted-object .section, .console-formatted-map .section, .console-formatted-set .section, .console-formatted-iterator .section, .console-formatted-generator .section, .console-formatted-node .section, .console-formatted-array .section { position: static; } .console-formatted-object .section > .header::before { margin-top: 0; } .console-formatted-object .properties-tree, .console-formatted-map .properties-tree, .console-formatted-set .properties-tree, .console-formatted-iterator .properties-tree, .console-formatted-generator .properties-tree, .console-formatted-node .properties-tree { padding-left: 0 !important; } .console-formatted-number, .console-formatted-boolean { color: rgb(28, 0, 207); } .scientific-notation-exponent { flex-shrink: 0; } .scientific-notation-mantissa { overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 1ex; } .scientific-notation-number { display: flex !important; } .console-formatted-string, .console-formatted-regexp, .console-formatted-symbol { color: rgb(196, 26, 22); white-space: pre-wrap; unicode-bidi: -webkit-isolate; } .console-formatted-null, .console-formatted-undefined { color: rgb(128, 128, 128); } .console-formatted-preview-node, .section .console-formatted-node { color: rgb(136, 18, 128); } .object-info-state-note { display: inline-block; width: 11px; height: 11px; background-color: rgb(179, 203, 247); color: white; text-align: center; border-radius: 3px; line-height: 13px; margin: 0 6px; font-size: 9px; } .object-info-state-note::before { content: "i"; } .section:not(.expanded) .object-info-state-note { display: none; } .error-message { color: red; } .error-input { background-color: rgb(220, 130, 130); } .panel { display: none !important; overflow: hidden; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; } .panel.visible { display: flex !important; } iframe.extension { width: 100%; height: 100%; } iframe.panel.extension { display: block; height: 100%; } .outline-disclosure { padding: 0 0 0 4px; margin: 0; } .outline-disclosure li.hovered:not(.selected) .selection { display: block; left: 3px; right: 3px; background-color: rgba(56, 121, 217, 0.1); border-radius: 5px; } .outline-disclosure li .selection { display: none; position: absolute; left: 0; right: 0; height: 15px; z-index: -1; } .outline-disclosure li.selected .selection { display: block; background-color: rgb(212, 212, 212); } .outline-disclosure li.in-clipboard .highlight { outline: 1px dotted darkgrey; } .outline-disclosure li.elements-drag-over .selection { display: block; margin-top: -2px; border-top: 2px solid rgb(56, 121, 217); } ol.outline-disclosure:focus li.selected .selection { background-color: rgb(56, 121, 217); } ol.outline-disclosure:focus li.parent.selected::before { background-color: white; } ol.outline-disclosure, .outline-disclosure ol { list-style-type: none; } .outline-disclosure-no-padding { padding: 0; } .outline-disclosure ol { padding-left: 12px; } .outline-disclosure li { margin-top: 1px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } ol.outline-disclosure:focus li.selected { color: white; } ol.outline-disclosure:focus li.selected * { color: inherit; } .outline-disclosure li::before { float: left; -webkit-user-select: none; -webkit-mask-image: url(Images/statusbarButtonGlyphs.png); -webkit-mask-size: 320px 144px; content: "a"; color: transparent; text-shadow: none; position: relative; top: 2px; margin-right: 1px; width: 10px; height: 10px; } .outline-disclosure li:not(.parent)::before { background-color: transparent; } @media (-webkit-min-device-pixel-ratio: 1.5) { .outline-disclosure li::before { -webkit-mask-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .outline-disclosure li::before { -webkit-mask-position: -4px -96px; background-color: rgb(110, 110, 110); } .outline-disclosure li.parent.expanded::before { -webkit-mask-position: -20px -96px; } .outline-disclosure ol.children { display: none; } .outline-disclosure ol.children.expanded { display: block; } .properties-calculate-value-button:hover { text-decoration: underline; } .properties-accessor-property-name { font-style: italic; } .editing { -webkit-user-select: text; box-shadow: rgba(0, 0, 0, .5) 3px 3px 4px; outline: 1px solid rgb(66%, 66%, 66%) !important; background-color: white; -webkit-user-modify: read-write-plaintext-only; text-overflow: clip !important; padding-left: 2px; margin-left: -2px; padding-right: 2px; margin-right: -2px; margin-bottom: -1px; padding-bottom: 1px; opacity: 1.0 !important; } .editing, .editing * { color: #222 !important; text-decoration: none !important; } .child-editing { color: #222 !important; text-decoration: none !important; overflow: visible !important; } .sidebar { overflow-x: hidden; background-color: #eee; } .pane-title-button { color: rgb(6, 6, 6); background-color: transparent; border: 1px solid rgb(165, 165, 165); background-color: #eee; background-image: linear-gradient(to bottom, rgb(252, 252, 252), rgb(223, 223, 223)); border-radius: 12px; -webkit-appearance: none; } .pane-title-button:active { background-color: rgb(215, 215, 215); background-image: linear-gradient(to bottom, rgb(194, 194, 194), rgb(239, 239, 239)); } .sidebar-tree, .sidebar-tree .children { position: relative; padding: 0; margin: 0; list-style: none; } .sidebar-tree-section { position: relative; height: 18px; padding: 1px 10px 6px 10px; white-space: nowrap; margin-top: 1px; color: rgb(92, 110, 129); text-shadow: rgba(255, 255, 255, 0.75) 0 1px 0; } .sidebar-tree-item { position: relative; height: 36px; padding: 0 5px 0 5px; white-space: nowrap; overflow-x: hidden; overflow-y: hidden; margin-top: 1px; line-height: 34px; border-top: 1px solid transparent; } .sidebar-tree .children { display: none; } .sidebar-tree .children.expanded { display: block; } .sidebar-tree-section + .children > .sidebar-tree-item { padding-left: 10px !important; } .sidebar-tree-section + .children.small > .sidebar-tree-item { padding-left: 17px !important; } .sidebar-tree > .children > .sidebar-tree-item { padding-left: 37px; } .sidebar-tree > .children > .children > .sidebar-tree-item { padding-left: 37px; } .sidebar-tree.some-expandable > .sidebar-tree-item:not(.parent) .icon { margin-left: 16px; } .sidebar-tree-item .disclosure-button { float: left; width: 10px; height: 10px; border: 0; -webkit-mask-image: url(Images/statusbarButtonGlyphs.png); -webkit-mask-size: 320px 144px; -webkit-appearance: none; background-color: rgba(0, 0, 0, 0.75); position: relative; top: 10px; } @media (-webkit-min-device-pixel-ratio: 1.5) { .sidebar-tree-item .disclosure-button { -webkit-mask-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .sidebar-tree-item .disclosure-button { -webkit-mask-position: -4px -96px; } .sidebar-tree-item.selected .disclosure-button { background-color: white; -webkit-mask-position: -4px -96px; } .sidebar-tree-item.expanded .disclosure-button { -webkit-mask-position: -20px -96px; } .sidebar-tree-item.selected.expanded .disclosure-button { background-color: white; -webkit-mask-position: -20px -96px; } .sidebar-tree-item .icon { float: left; width: 32px; height: 32px; margin-top: 1px; margin-right: 3px; } .sidebar-tree-item.wait .icon { content: none; } .spinner-icon::before, .sidebar-tree-item.wait .icon::before { display: block; width: 24px; height: 24px; margin: 4px; border: 3px solid grey; border-radius: 12px; clip: rect(0, 15px, 15px, 0); content: ""; position: absolute; -webkit-animation: spinner-animation 1s linear infinite; box-sizing: border-box; } .spinner-icon.small::before, .sidebar-tree-item.wait.small .icon::before { width: 14px; height: 14px; margin: 1px; clip: rect(0, 9px, 9px, 0); border-width: 2px; } .sidebar-tree-item.wait.selected .icon::before { border-color: white; } @-webkit-keyframes spinner-animation { from { transform: rotate(0); } to { transform: rotate(360deg); } } li .status { float: right; height: 16px; margin-top: 9px; margin-left: 4px; line-height: 1em; } li .status:empty { display: none; } li .status .bubble-repeat-count:empty { display: none; } li.selected .status .bubble-repeat-count { background-color: white !important; color: rgb(132, 154, 190) !important; } :focus li.selected .status .bubble-repeat-count { color: rgb(36, 98, 172) !important; } body.inactive li.selected .status .bubble-repeat-count { color: rgb(159, 159, 159) !important; } .sidebar-tree.small .sidebar-tree-item, .sidebar-tree .children.small .sidebar-tree-item, .sidebar-tree-item.small { height: 20px; } .sidebar-tree.small .sidebar-tree-item .icon, .sidebar-tree .children.small .sidebar-tree-item .icon, .sidebar-tree-item.small .icon { width: 16px; height: 16px; } .sidebar-tree.small .sidebar-tree-item .status, .sidebar-tree .children.small .sidebar-tree-item .status, .sidebar-tree-item.small .status { margin-top: 1px; } .sidebar-tree-item.selected { color: white; text-shadow: rgba(0, 0, 0, 0.33) 1px 1px 0; background-origin: padding-box; background-clip: padding-box; background-color: rgb(56, 121, 217); } :focus .sidebar-tree-item.selected { background-color: rgb(56, 121, 217); } body.inactive .sidebar-tree-item.selected { background-color: rgb(180,180,180); } .sidebar-tree-item .titles { display: flex; flex-direction: column; position: relative; top: 5px; line-height: 12px; padding-bottom: 1px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .titles > .title-container { display: flex; } .sidebar-tree-item .titles.no-subtitle { top: 10px; } .sidebar-tree.small .sidebar-tree-item .titles, .sidebar-tree .children.small .sidebar-tree-item .titles, .sidebar-tree-item.small .titles { top: 2px; line-height: normal; } .sidebar-tree:not(.small) .sidebar-tree-item:not(.small) .title::after, .sidebar-tree .children:not(.small) .sidebar-tree-item .title::after { content: "\A"; white-space: pre; } .sidebar-tree-item .subtitle { font-size: 80%; } .sidebar-tree.small .sidebar-tree-item .subtitle, .sidebar-tree .children.small .sidebar-tree-item .subtitle, .sidebar-tree-item.small .subtitle { display: none; } .sidebar-tree-item.selected .subtitle { color: white; } .bubble-repeat-count.debug, .console-debug-level .bubble-repeat-count { background-color: rgb(0, 0, 255) !important; } .bubble-repeat-count.warning, .console-warning-level .bubble-repeat-count { background-color: rgb(232, 164, 0) !important; } .bubble-repeat-count.error, .console-error-level .bubble-repeat-count { background-color: rgb(216, 35, 35) !important; } .source-frame-eval-expression { outline: 1px solid rgb(163, 41, 34); background-color: rgb(255, 255, 194); } .soft-context-menu-glass-pane { z-index: 20000; } .root-view { overflow: hidden; position: absolute !important; left: 0; top: 0; right: 0; bottom: 0; } .viewport-control-gap-element { color: transparent; } .chrome-select { -webkit-appearance: none; -webkit-user-select: none; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.75); color: #444; font: inherit; margin: 0 1px 0 0; outline: none; text-shadow: 0 1px 0 rgb(240, 240, 240); padding-right: 20px; padding-left: 6px; background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Images/chromeSelect_2x.png) 2x), linear-gradient(#ededed, #ededed 38%, #dedede); background-position: right center; background-repeat: no-repeat; min-height: 24px; } .chrome-select:enabled:hover { background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Images/chromeSelect_2x.png) 2x), linear-gradient(#f0f0f0, #f0f0f0 38%, #e0e0e0); border-color: rgba(0, 0, 0, 0.3); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95); color: black; } .chrome-select:enabled:active { background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Images/chromeSelect_2x.png) 2x), linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7); box-shadow: none; text-shadow: none; } .chrome-select:enabled:focus { /* OVERRIDE */ -webkit-transition: border-color 200ms; /* We use border color because it follows the border radius (unlike outline). * This is particularly noticeable on mac. */ border-color: rgb(77, 144, 254); outline: none; } body.inactive select.chrome-select, .chrome-select:disabled { background-image: -webkit-image-set(url(Images/chromeDisabledSelect.png) 1x, url(Images/chromeDisabledSelect_2x.png) 2x), linear-gradient(#f1f1f1, #f1f1f1 38%, #e6e6e6); border-color: rgba(80, 80, 80, 0.2); box-shadow: 0 1px 0 rgba(80, 80, 80, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.75); color: #aaa; } .custom-expandable-section::before { -webkit-user-select: none; background-image: url(Images/statusbarButtonGlyphs.png); background-size: 320px 144px; opacity: 0.5; content: "a"; width: 8px; margin-right: 4px; padding-right: 2px; color: transparent; text-shadow: none; } .custom-expandable-section::before { background-position: -4px -96px; } .custom-expandable-section.expanded::before { background-position: -20px -96px; }