blob: 3a9182b9d13faf54d7499850dd7f13c186b58bc7 [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.
*/
#elements-content {
flex: 1 1;
overflow: auto;
padding: 2px 0 0 0;
}
#elements-content:not(.elements-wrap) > div {
display: inline-block;
min-width: 100%;
}
#elements-content.elements-wrap {
overflow-x: hidden;
}
.elements-topbar {
border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
flex-shrink: 0;
}
#elements-crumbs {
flex: 0 0 19px;
background-color: white;
border-top: 1px solid #ccc;
overflow: hidden;
height: 19px;
width: 100%;
}
.metrics {
padding: 8px;
font-size: 10px;
text-align: center;
white-space: nowrap;
}
.metrics .label {
position: absolute;
font-size: 10px;
margin-left: 3px;
padding-left: 2px;
padding-right: 2px;
}
.metrics .position {
border: 1px rgb(66%, 66%, 66%) dotted;
background-color: white;
display: inline-block;
text-align: center;
padding: 3px;
margin: 3px;
}
.metrics .margin {
border: 1px dashed;
background-color: white;
display: inline-block;
text-align: center;
vertical-align: middle;
padding: 3px;
margin: 3px;
}
.metrics .border {
border: 1px black solid;
background-color: white;
display: inline-block;
text-align: center;
vertical-align: middle;
padding: 3px;
margin: 3px;
}
.metrics .padding {
border: 1px grey dashed;
background-color: white;
display: inline-block;
text-align: center;
vertical-align: middle;
padding: 3px;
margin: 3px;
}
.metrics .content {
position: static;
border: 1px gray solid;
background-color: white;
display: inline-block;
text-align: center;
vertical-align: middle;
padding: 3px;
margin: 3px;
min-width: 80px;
overflow: visible;
}
.metrics .content span {
display: inline-block;
}
.metrics .editing {
position: relative;
z-index: 100;
cursor: text;
}
.metrics .left {
display: inline-block;
vertical-align: middle;
}
.metrics .right {
display: inline-block;
vertical-align: middle;
}
.metrics .top {
display: inline-block;
}
.metrics .bottom {
display: inline-block;
}
.styles-section {
padding: 2px 2px 4px 4px;
min-height: 18px;
white-space: nowrap;
-webkit-user-select: text;
border-bottom: 1px solid #eee;
position: relative;
overflow: hidden;
}
.styles-section:last-child {
border-bottom: none;
}
.styles-pane .sidebar-separator {
border-top: 0 none;
}
.style-panes-wrapper {
overflow: auto;
}
.styles-section.read-only {
background-color: #eee;
}
.styles-filter-engaged,
.styles-section .simple-selector.filter-match {
background-color: rgba(255, 255, 0, 0.5);
}
.-theme-with-dark-background .styles-filter-engaged,
.-theme-with-dark-background .styles-section .simple-selector.filter-match {
background-color: hsla(133, 100%, 30%, 0.5);
}
.sidebar-pane-closing-brace {
clear: both;
}
.styles-section-title {
background-origin: padding;
background-clip: padding;
word-wrap: break-word;
white-space: normal;
}
.styles-section-title .media-list {
color: #888;
}
.styles-section-title .media-list.media-matches .media.editable-media {
color: #222;
}
.styles-section-title .media:not(.editing-media),
.styles-section-title .media:not(.editing-media) .subtitle {
overflow: hidden;
}
.styles-section-title .media .subtitle {
float: right;
color: rgb(85, 85, 85);
}
.styles-section-subtitle {
color: rgb(85, 85, 85);
float: right;
margin-left: 5px;
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.styles-section .styles-section-subtitle a {
color: inherit;
}
.styles-section .selector {
color: #888;
}
.styles-section .simple-selector.selector-matches, .styles-section.keyframe-key {
color: #222;
}
.styles-section .webkit-html-resource-link {
user-select: none;
}
.styles-section .style-properties {
margin: 0;
padding: 2px 4px 0 0;
list-style: none;
clear: both;
display: flex;
}
.styles-section.matched-styles .style-properties {
padding-left: 0;
}
.styles-element-state-pane {
overflow: hidden;
height: 66px;
padding-left: 2px;
border-bottom: 1px solid rgb(189, 189, 189);
}
@keyframes styles-element-state-pane-slidein {
from {
margin-top: -60px;
}
to {
margin-top: 0px;
}
}
@keyframes styles-element-state-pane-slideout {
from {
margin-top: 0px;
}
to {
margin-top: -60px;
}
}
.styles-sidebar-toolbar-pane {
position: relative;
animation-duration: 0.1s;
animation-direction: normal;
}
.styles-sidebar-toolbar-pane-container {
position: relative;
overflow: hidden;
flex-shrink: 0;
}
.styles-element-state-pane {
background-color: #f3f3f3;
border-bottom: 1px solid rgb(189, 189, 189);
margin-top: 0;
}
.styles-element-classes-pane {
background-color: #f3f3f3;
border-bottom: 1px solid rgb(189, 189, 189);
padding: 6px 2px 2px;
}
.styles-element-classes-container {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.styles-element-classes-pane label {
margin-right: 15px;
}
.styles-element-classes-pane .title-container {
padding-bottom: 2px;
}
.styles-element-classes-pane .new-class-input {
padding-left: 3px;
border: 1px solid #ddd;
line-height: 15px;
margin-left: 3px;
width: calc(100% - 7px);
-webkit-user-modify: read-write-plaintext-only;
background-color: #fff;
cursor: text;
}
.styles-element-classes-pane .new-class-input:empty:before {
content: attr(placeholder);
color: darkgray;
}
.styles-element-state-pane > div {
margin: 8px 4px 6px;
}
.styles-element-state-pane > table {
width: 100%;
border-spacing: 0;
}
.styles-element-state-pane td {
padding: 0;
}
.styles-animations-controls-pane > * {
margin: 6px 4px;
}
.styles-animations-controls-pane {
border-bottom: 1px solid rgb(189, 189, 189);
height: 60px;
overflow: hidden;
background-color: #eee;
}
.animations-controls {
width: 100%;
max-width: 200px;
display: flex;
align-items: center;
}
.animations-controls > .toolbar {
display: inline-block;
}
.animations-controls > input {
flex-grow: 1;
margin-right: 10px;
}
.animations-controls > .playback-label {
width: 35px;
}
.styles-selector {
cursor: text;
}
.image-preview-container {
background: transparent;
text-align: center;
}
.image-preview-container img {
margin: 2px auto;
max-width: 100px;
max-height: 100px;
background-image: url(Images/checker.png);
-webkit-user-select: text;
-webkit-user-drag: auto;
}
.metrics {
border-bottom: 1px solid #ccc;
}
.-theme-with-dark-background .metrics {
color: #222;
}
.-theme-with-dark-background .metrics > div:hover {
color: #ccc;
}
.metrics-and-styles .metrics {
border-top: 1px solid #ccc;
border-bottom: none;
}
.metrics {
min-height: 190px;
display: flex;
flex-direction: column;
-webkit-align-items: center;
-webkit-justify-content: center;
}
.metrics-and-styles,
.metrics-and-computed {
display: flex !important;
flex-direction: column !important;
position: relative;
}
.styles-sidebar-pane-toolbar-container {
flex-shrink: 0;
overflow: hidden;
}
.styles-sidebar-pane-toolbar {
border-bottom: 1px solid #eee;
flex-shrink: 0;
}
.styles-sidebar-pane-filter-box {
flex: auto;
display: flex;
}
.styles-sidebar-pane-filter-box > input {
outline: none !important;
border: none;
width: 100%;
background: transparent;
margin-left: 4px;
}
.sidebar-pane.composite .metrics-and-styles .metrics {
border-bottom: none;
}
.styles-section.styles-panel-hovered:not(.read-only) span.simple-selector:hover,
.styles-section.styles-panel-hovered:not(.read-only) .media-text :hover{
text-decoration: underline;
cursor: default;
}
.sidebar-separator {
background-color: #ddd;
padding: 0 5px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
color: rgb(50, 50, 50);
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
line-height: 16px;
}
.sidebar-separator > span.monospace {
background: rgb(255, 255, 255);
padding: 0px 3px;
border-radius: 2px;
border: 1px solid #C1C1C1;
}
.animation-section-body {
display: none;
}
.animation-section-body.expanded {
display: block;
}
.animation-section-body .section {
border-bottom: 1px solid rgb(191, 191, 191);
}
.animationsHeader {
padding-top: 23px;
}
.global-animations-toolbar {
position: absolute;
top: 0;
width: 100%;
background-color: #eee;
border-bottom: 1px solid rgb(163, 163, 163);
padding-left: 10px;
}
.view > .toolbar {
border-bottom: 1px solid #eee;
}
.events-pane .section:not(:first-of-type) {
border-top: 1px solid rgb(231, 231, 231);
}
.events-pane .section {
margin: 0;
}
.events-pane .toolbar {
border-bottom: 1px solid #eee;
}
.properties-widget-section {
padding: 2px 0px 2px 5px;
flex: none;
}
.sidebar-pane-section-toolbar {
position: absolute;
right: 0;
bottom: 0;
visibility: hidden;
background-color: rgba(255, 255, 255, 0.9);
}
.styles-pane:not(.is-editing-style) .styles-section.matched-styles:not(.read-only):hover .sidebar-pane-section-toolbar {
visibility: visible;
}