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

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0240ab82cd2e
1 %if 0
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 %endif
6
7 /* Box model highlighter */
8 svg|g.box-model-container {
9 opacity: 0.4;
10 }
11
12 svg|polygon.box-model-content {
13 fill: #80d4ff;
14 }
15
16 svg|polygon.box-model-padding {
17 fill: #66cc52;
18 }
19
20 svg|polygon.box-model-border {
21 fill: #ffe431;
22 }
23
24 svg|polygon.box-model-margin {
25 fill: #d89b28;
26 }
27
28 svg|polygon.box-model-content,
29 svg|polygon.box-model-padding,
30 svg|polygon.box-model-border,
31 svg|polygon.box-model-margin {
32 stroke: none;
33 }
34
35 svg|line.box-model-guide-top,
36 svg|line.box-model-guide-right,
37 svg|line.box-model-guide-bottom,
38 svg|line.box-model-guide-left {
39 stroke: #08C;
40 stroke-dasharray: 5 3;
41 }
42
43 /* Highlighter - Node Infobar */
44
45 .highlighter-nodeinfobar {
46 color: hsl(216,33%,97%);
47 border-radius: 3px;
48 background: hsl(214,13%,24%) no-repeat padding-box;
49 padding: 5px;
50 /* Avoid cases where the infobar is smaller than the arrow, when the text is
51 short */
52 min-width: 75px;
53 }
54
55 /* Highlighter - Node Infobar - text */
56
57 .highlighter-nodeinfobar-text {
58 text-align: center;
59 /* 100% - size of the buttons and margins */
60 max-width: calc(100% - 2 * (26px + 6px));
61 padding-bottom: 1px;
62 }
63
64 html|*.highlighter-nodeinfobar-tagname {
65 color: hsl(285,100%,75%);
66 }
67
68 html|*.highlighter-nodeinfobar-id {
69 color: hsl(103,46%,54%);
70 }
71
72 html|*.highlighter-nodeinfobar-classes,
73 html|*.highlighter-nodeinfobar-pseudo-classes {
74 color: hsl(200,74%,57%);
75 }
76
77 /* Highlighter - Node Infobar - box & arrow */
78
79 .highlighter-nodeinfobar-arrow {
80 width: 14px;
81 height: 14px;
82 -moz-margin-start: calc(50% - 7px);
83 transform: rotate(-45deg);
84 background-clip: padding-box;
85 background-repeat: no-repeat;
86 }
87
88 .highlighter-nodeinfobar-arrow-top {
89 margin-bottom: -8px;
90 margin-top: 8px;
91 background-image: linear-gradient(to top right, transparent 50%, hsl(210,2%,22%) 50%);
92 }
93
94 .highlighter-nodeinfobar-arrow-bottom {
95 margin-top: -8px;
96 margin-bottom: 8px;
97 background-image: linear-gradient(to bottom left, transparent 50%, hsl(210,2%,22%) 50%);
98 }
99
100 .highlighter-nodeinfobar-container[hide-arrow] > .highlighter-nodeinfobar {
101 margin: 7px 0;
102 }

mercurial