/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


/* JavaScript and generic */

.null,
.undefined {
    color: #b43;
    font-weight: bold;
}

.boolean {
    color: #d60;
}

.error {
    color: #f60;
    font-style: italic;
}

.number,
offsets value { /* TODO: use class */
    color: #c32;
}

.string {
    color: #a54;
}

.object {
    color: #666;
    background-color: rgba(0, 0, 0, .075);
}

.punctuator {
    color: #000;
}

.reg_exp {
    color: #3a3;
}

.js_builtins {
    color: #55a;
}

.js_keywords {
    color: #338;
    font-weight: bold;
}

/* JavaScript */

.js-source .not-error { /* TODO: Not specified */
    background-color: #fff;
}

.js-source .first-error { /* TODO: Not specified */
    color: #333;
    background-color: #f90;
}

.js-source .error { /* TODO: Not specified */
    color: #999;
}

.js-source .first-error-line,
.js-source .error-line { /* TODO: Not specified */
    background-color: #e6e6e6;
}

.highlight-source { /* TODO: Not specified */
    background-color: yellow;
}

.selected-js-source-line {
  background-color: #d4e3f4;
}

/* Property inspector */

#examine-objects .key,
examine-objects key {
    color: #111;
}

/* DOM */

.doctype,
.comment {
    color: #987;
    font-style: italic;
}

.document-node {
    color: #294556; /* TODO: Not specified */
}

.markup-tag,
.dom node, /* TODO: use class */
.element-name {
    color: #338;
}

.markup-attribute,
.dom key {
    color: #55a;
}

.markup-attribute-value,
.dom value {
    color: #a54;
}

.markup-bogus-comment,
.markup-comment,
.comment-node,
.cdata-node,
.text-node {
    color: #987;
    font-style: italic;
}

/* CSS */

.css-selector,
selector {
    color: #338;
    font-weight: bold;
}

.css-property,
.css-inspector key { /* Rename to .property */
    color: #55a;
}

.css-property-value,
.css-inspector value { /* Use class */
    color: #111;
}

.overwritten {
    text-decoration: line-through;
    /* more... */
    color: #555;
}

property.disabled, /* TODO: rename to .declaration */
.disabled key,
.disabled value {
    color: #999;
}

.non-editable {
    background: transparent url("../ui-images/disabled_stripe_tile.png");
}
rule.non-editable {
    margin: 0 -5px; /* This is ugly */
    padding: 5px;
}
rule:not(.non-editable) + rule.non-editable {
    margin: -5px -5px 0; /* Adjust this so that the spacing is always consistent between rules */
}
.css-inspector .non-editable key {
    color: #4c7899;
}
css-inspector .non-editable value {
    color: #aaa;
}

media, at { /* TODO: Use classes */
    color: #279;
}

.import-rule {
    color: #279;
}

/* Much of this does not belong here since it's not syntax highlighting */

/* ecma object tree */

#examine-objects li li {
  padding-left:18px;
  }

#examine-objects .key {
  margin-right:7px;
  }

/* dom */

[handler="spotlight-node"] { /* TODO: Use same highlighting in CSS inspector */
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
}

[handler="spotlight-node"]:hover,
rule:not(.non-editable) property:hover {
    border-color: #e0eaf6;
    background: #f2f5f9;
}

#target-element,
[handler="spotlight-node"]:active {
    border-color: #c5daf1;
    background: #d4e3f4;
}

.dom ::selection {
  /* TEMP */
  background-color: #598bec;
  color: #fff;
}

.tree-style
{
  background:transparent url('../ui-images/dom-tree-style.png') scroll repeat 9px 0;
}

.tree-style > div
{
  background-color: #fafafa;
}

.tree-style > div > node:first-child:before
{
  display:inline-block;
  vertical-align: middle;
  content: '';
  width: 7px;
  height: 1px;
  background:transparent url('../ui-images/dom-tree-style-h.png') scroll no-repeat 0 0;
  margin-left: -8px;
  margin-right: 1px;
}

.tree-style > div:first-child > span:first-child:before
{
  display:none;
}

.search-highlight
{
  background-color: #ff0;
  color: #000;
}
.search-highlight-selected
{
  background-color: #0f0;
  color: #000;
}
