blob: 0c4166232564f5cfcb8f5dc4680f4ea661e1e66a [file] [log] [blame]
/*
* 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.
*/
.console-view {
background-color: white;
overflow: hidden;
}
.console-view > .toolbar {
border-bottom: 1px solid #dadada;
}
.console-view-wrapper {
background-color: #eee;
}
.console-view-fix-select-all {
height: 0;
overflow: hidden;
}
#console-messages {
flex: 1 1;
padding: 2px 0;
overflow-y: auto;
word-wrap: break-word;
-webkit-user-select: text;
transform: translateZ(0);
}
#console-prompt {
clear: right;
position: relative;
padding: 3px 22px 1px 0;
margin-left: 24px;
min-height: 18px; /* Sync with ConsoleViewMessage.js */
white-space: pre-wrap;
-webkit-user-modify: read-write-plaintext-only;
}
#console-prompt::before {
background-position: -192px -96px;
}
.console-log-level .console-user-command-result::before {
background-position: -202px -96px;
}
.console-message,
.console-user-command {
clear: right;
position: relative;
padding: 3px 22px 1px 0;
margin-left: 24px;
min-height: 18px; /* Sync with ConsoleViewMessage.js */
flex: auto;
display: flex;
}
.console-message > * {
flex: auto;
}
.console-adjacent-user-command-result + .console-user-command-result.console-log-level::before {
background-image: none;
}
.console-timestamp {
color: gray;
-webkit-user-select: none;
}
.console-message::before,
.console-user-command::before,
#console-prompt::before,
.console-group-title::before {
position: absolute;
display: block;
content: "";
left: -17px;
top: 9px;
width: 10px;
height: 10px;
margin-top: -4px;
-webkit-user-select: none;
background-image: url(Images/toolbarButtonGlyphs.png);
background-size: 352px 168px;
}
@media (-webkit-min-device-pixel-ratio: 1.5) {
.console-message::before,
.console-user-command::before,
#console-prompt::before,
.console-group-title::before {
background-image: url(Images/toolbarButtonGlyphs_2x.png);
}
} /* media */
.console-message > .outline-disclosure li.parent::before {
top: 0;
}
.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;
flex: none;
}
.console-message .bubble-repeat-count {
margin-right: 4px;
margin-left: -18px;
}
.console-error-level .repeated-message::before,
.console-revokedError-level .repeated-message::before,
.console-warning-level .repeated-message::before,
.console-debug-level .repeated-message::before,
.console-info-level .repeated-message::before {
visibility: hidden;
}
.repeated-message .outline-disclosure,
.repeated-message > .console-message-text {
flex: 1;
}
.console-warning-level .repeated-message,
.console-error-level .repeated-message,
.console-revokedError-level .repeated-message,
.console-log-level .repeated-message,
.console-debug-level .repeated-message,
.console-info-level .repeated-message {
display: flex;
}
.console-info {
color: rgb(128, 128, 128);
font-style: italic;
}
.console-group .console-group > .console-group-messages {
margin-left: 16px;
}
.console-group-title {
font-weight: bold;
}
.console-group-title::before {
-webkit-user-select: none;
-webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
-webkit-mask-size: 352px 168px;
float: left;
width: 8px;
content: "a";
color: transparent;
text-shadow: none;
margin-left: 3px;
margin-top: -7px;
}
@media (-webkit-min-device-pixel-ratio: 1.5) {
.console-group-title::before {
-webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
}
} /* media */
.console-group .console-group-title::before {
-webkit-mask-position: -20px -96px;
background-color: rgb(110, 110, 110);
}
.console-message-wrapper.collapsed .console-group-title::before {
-webkit-mask-position: -4px -96px;
}
.console-group {
position: relative;
}
.console-message-wrapper {
display: flex;
border-bottom: 1px solid rgb(240, 240, 240);
}
.console-message-wrapper.console-adjacent-user-command-result {
border-bottom: none;
}
.console-message-wrapper.console-error-level {
border-top: 1px solid rgb(255, 216, 216);
border-bottom: 1px solid rgb(255, 216, 216);
margin-top: -1px;
}
.console-message-wrapper.console-warning-level {
border-top: 1px solid hsl(50, 100%, 88%);
border-bottom: 1px solid hsl(50, 100%, 88%);
margin-top: -1px;
}
.console-message-wrapper .nesting-level-marker {
width: 14px;
flex: 0 0 auto;
border-right: 1px solid #A3A3A3;
position: relative;
margin-bottom: -1px;
}
.console-message-wrapper:last-child .nesting-level-marker::before,
.console-message-wrapper .nesting-level-marker.group-closed::before {
content: "";
}
.console-message-wrapper .nesting-level-marker::before {
border-bottom: 1px solid #A3A3A3;
position: absolute;
top: 0;
left: 0;
margin-left: 100%;
width: 3px;
height: 100%;
box-sizing: border-box;
}
.console-error-level {
background-color: rgb(255, 239, 239);
}
.console-warning-level {
background-color: hsl(50, 100%, 95%);
}
.console-warning-level .console-message-text {
color: hsl(39, 100%, 18%);
}
.console-error-level .console-message-text,
.console-error-level .console-view-object-properties-section {
color: red !important;
}
.console-debug-level .console-message-text {
color: blue;
}
.console-message.console-warning-level {
background-color: rgb(255, 250, 224);
}
.console-error-level .console-message::before,
.console-revokedError-level .console-message::before,
.console-warning-level .console-message::before,
.console-debug-level .console-message::before,
.console-info-level .console-message::before {
background-image: url(Images/toolbarButtonGlyphs.png);
background-size: 352px 168px;
width: 10px;
height: 10px;
}
@media (-webkit-min-device-pixel-ratio: 1.5) {
.console-error-level .console-message::before,
.console-revokedError-level .console-message::before,
.console-warning-level .console-message::before,
.console-debug-level .console-message::before,
.console-info-level .console-message::before {
background-image: url(Images/toolbarButtonGlyphs_2x.png);
}
} /* media */
.console-warning-level .console-message::before {
background-position: -202px -107px;
}
.console-error-level .console-message::before {
background-position: -213px -96px;
}
.console-revokedError-level .console-message::before {
background-position: -245px -107px;
}
.console-info-level .console-message::before {
background-position: -213px -107px;
}
.console-user-command .console-message {
margin-left: -24px;
padding-right: 0;
border-bottom: none;
}
.console-user-command::before {
background-position: -192px -107px;
}
#console-messages .link {
text-decoration: underline;
}
#console-messages .link,
#console-messages a {
color: rgb(33%, 33%, 33%);
cursor: pointer;
}
#console-messages .link:hover,
#console-messages a:hover {
color: rgb(15%, 15%, 15%);
}
.console-group-messages .section {
margin: 0 0 0 12px !important;
}
.console-group-messages .section > .header {
padding: 0 8px 0 0;
background-image: none;
border: none;
min-height: 0;
}
.console-group-messages .section > .header::before {
margin-left: -12px;
}
.console-group-messages .section > .header .title {
color: #222;
font-weight: normal;
line-height: 13px;
}
.console-group-messages .section .properties li .info {
padding-top: 0;
padding-bottom: 0;
color: rgb(60%, 60%, 60%);
}
.console-object-preview {
font-style: italic;
white-space: normal;
word-wrap: break-word;
}
.console-object-preview .name {
/* Follows .section .properties .name, .event-properties .name */
color: rgb(136, 19, 145);
flex-shrink: 0;
}
.console-message-text {
white-space: pre-wrap;
}
.console-message-formatted-table {
clear: both;
}
.console-message-url {
float: right;
text-align: right;
max-width: 100%;
margin-left: 4px;
}
.console-message-nowrap-below,
.console-message-nowrap-below div,
.console-message-nowrap-below span {
white-space: nowrap !important;
}
.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";
}
.console-view-object-properties-section:not(.expanded) .object-info-state-note {
display: none;
}
.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";
}
.console-view-object-properties-section:not(.expanded) .object-info-state-note {
display: none;
}