gecko/browser/themes/shared/devtools/highlighter.inc.css

110 lines
2.6 KiB
CSS

%if 0
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
%endif
/* Highlighter */
.highlighter-outline {
box-shadow: 0 0 0 1px black;
outline: 1px dashed white;
outline-offset: -1px;
}
.highlighter-outline[locked] {
box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
outline-color: rgba(255,255,255,0.7);
}
/* Highlighter - Node Infobar */
.highlighter-nodeinfobar {
color: hsl(216,33%,97%);
border-radius: 3px;
background: hsl(214,13%,24%) no-repeat padding-box;
}
/* Highlighter - Node Infobar - text */
.highlighter-nodeinfobar-text {
/* 100% - size of the buttons and margins */
max-width: calc(100% - 2 * (26px + 6px));
padding-bottom: 1px;
}
html|*.highlighter-nodeinfobar-tagname {
color: hsl(285,100%,75%);
}
html|*.highlighter-nodeinfobar-id {
color: hsl(103,46%,54%);
}
html|*.highlighter-nodeinfobar-classes,
html|*.highlighter-nodeinfobar-pseudo-classes {
color: hsl(200,74%,57%);
}
/* Highlighter - Node Infobar - buttons */
.highlighter-nodeinfobar-button {
-moz-appearance: none;
border-width: 0;
padding: 0;
width: 26px;
min-height: 26px;
%ifndef XP_LINUX
background-color: transparent;
%endif
}
.highlighter-nodeinfobar-inspectbutton {
-moz-margin-end: 6px;
list-style-image: url("chrome://browser/skin/devtools/inspect-button.png");
-moz-image-region: rect(0px 16px 16px 0px);
}
.highlighter-nodeinfobar-inspectbutton:active:hover,
.highlighter-nodeinfobar-container:not([locked]) > .highlighter-nodeinfobar > .highlighter-nodeinfobar-inspectbutton {
-moz-image-region: rect(0px 32px 16px 16px);
}
.highlighter-nodeinfobar-menu {
-moz-margin-start: 6px;
}
.highlighter-nodeinfobar-menu > .toolbarbutton-menu-dropmarker {
-moz-appearance: none !important;
list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
-moz-box-align: center;
-moz-margin-start: -1px;
}
/* Highlighter - Node Infobar - box & arrow */
.highlighter-nodeinfobar-arrow {
width: 14px;
height: 14px;
-moz-margin-start: calc(50% - 7px);
transform: rotate(-45deg);
background-clip: padding-box;
background-repeat: no-repeat;
}
.highlighter-nodeinfobar-arrow-top {
margin-bottom: -8px;
margin-top: 8px;
background-image: linear-gradient(to top right, transparent 50%, hsl(210,2%,22%) 50%);
}
.highlighter-nodeinfobar-arrow-bottom {
margin-top: -8px;
margin-bottom: 8px;
background-image: linear-gradient(to bottom left, transparent 50%, hsl(210,2%,22%) 50%);
}
.highlighter-nodeinfobar-container[hide-arrow] > .highlighter-nodeinfobar {
margin: 7px 0;
}