2013-03-28 02:20:38 +04:00
|
|
|
/* 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/. */
|
|
|
|
|
2015-04-16 21:15:09 +03:00
|
|
|
/* CSS Variables specific to this panel that aren't defined by the themes */
|
|
|
|
.theme-light {
|
|
|
|
--rule-highlight-background-color: #ffee99;
|
2017-03-08 00:43:32 +03:00
|
|
|
--rule-overridden-item-border-color: var(--theme-content-color3);
|
2015-04-16 21:15:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.theme-dark {
|
|
|
|
--rule-highlight-background-color: #594724;
|
2017-03-08 00:43:32 +03:00
|
|
|
--rule-overridden-item-border-color: var(--theme-content-color1);
|
2015-04-16 21:15:09 +03:00
|
|
|
}
|
|
|
|
|
2016-04-06 18:32:18 +03:00
|
|
|
.theme-firebug {
|
|
|
|
--rule-highlight-background-color: #ffee99;
|
|
|
|
--rule-property-name: darkgreen;
|
|
|
|
--rule-property-value: darkblue;
|
2017-03-08 00:43:32 +03:00
|
|
|
--rule-overridden-item-border-color: var(--theme-content-color2);
|
2016-04-06 18:32:18 +03:00
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:09 +03:00
|
|
|
/* Rule View Tabpanel */
|
|
|
|
|
2016-01-26 19:17:47 +03:00
|
|
|
#sidebar-panel-ruleview {
|
2016-01-13 11:37:32 +03:00
|
|
|
margin: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2016-01-26 19:17:47 +03:00
|
|
|
width: 100%;
|
2016-07-15 10:59:21 +03:00
|
|
|
height: 100%;
|
2016-10-04 15:02:22 +03:00
|
|
|
/* Override the min-width from .inspector-tabpanel, as the rule panel can support small
|
|
|
|
widths */
|
|
|
|
min-width: 100px;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:09 +03:00
|
|
|
/* Rule View Toolbar */
|
|
|
|
|
|
|
|
#ruleview-toolbar-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: auto;
|
2016-03-03 17:54:05 +03:00
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:09 +03:00
|
|
|
#ruleview-toolbar {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ruleview-toolbar > .devtools-searchbox:first-child {
|
2016-05-13 08:19:58 +03:00
|
|
|
padding-inline-start: 0px;
|
2016-01-13 11:37:32 +03:00
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:09 +03:00
|
|
|
#ruleview-command-toolbar {
|
2016-01-13 11:37:32 +03:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2017-03-03 16:09:23 +03:00
|
|
|
.ruleview-reveal-panel {
|
2016-03-03 23:55:09 +03:00
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: height 150ms ease;
|
2016-01-13 11:37:32 +03:00
|
|
|
}
|
|
|
|
|
2017-03-03 16:09:23 +03:00
|
|
|
.ruleview-reveal-panel[hidden] {
|
2016-03-03 23:55:09 +03:00
|
|
|
height: 0px;
|
2016-01-13 11:37:32 +03:00
|
|
|
}
|
|
|
|
|
2017-03-03 16:09:23 +03:00
|
|
|
#pseudo-class-panel:not([hidden]) {
|
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-reveal-panel label {
|
2016-01-13 11:37:32 +03:00
|
|
|
-moz-user-select: none;
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2017-03-03 16:09:23 +03:00
|
|
|
/* Class toggle panel */
|
|
|
|
#ruleview-class-panel:not([hidden]) {
|
|
|
|
/* The class panel can contain 0 to N classes, so we can't hardcode a height here like
|
|
|
|
we do for the pseudo-class panel. Unfortunately, that means we don't get the height
|
|
|
|
transition when toggling the panel */
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ruleview-class-panel .add-class {
|
|
|
|
margin: 0;
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
padding: 2px 6px;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ruleview-class-panel .classes {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ruleview-class-panel .classes {
|
|
|
|
max-height: 100px;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ruleview-class-panel .classes label {
|
|
|
|
flex: 0 0;
|
|
|
|
max-width: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ruleview-class-panel .classes label span {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ruleview-class-panel .no-classes {
|
|
|
|
flex: 1;
|
|
|
|
color: var(--theme-body-color-inactive);
|
|
|
|
margin: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:09 +03:00
|
|
|
/* Rule View Container */
|
|
|
|
|
|
|
|
#ruleview-container {
|
|
|
|
-moz-user-select: text;
|
|
|
|
overflow: auto;
|
|
|
|
flex: auto;
|
2016-07-15 10:59:21 +03:00
|
|
|
height: 100%;
|
2016-03-03 23:55:09 +03:00
|
|
|
}
|
|
|
|
|
2016-07-18 15:38:10 +03:00
|
|
|
/* This extra wrapper only serves as a way to get the content of the view focusable.
|
|
|
|
So that when the user reaches it either via keyboard or mouse, we know that the view
|
|
|
|
is focused and therefore can handle shortcuts.
|
|
|
|
However, for accessibility reasons, tabindex is set to -1 to avoid having to tab
|
|
|
|
through it, and the outline is hidden. */
|
|
|
|
#ruleview-container-focusable {
|
|
|
|
height: 100%;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:09 +03:00
|
|
|
#ruleview-container.non-interactive {
|
|
|
|
pointer-events: none;
|
|
|
|
visibility: collapse;
|
|
|
|
transition: visibility 0.25s;
|
|
|
|
}
|
|
|
|
|
2016-01-13 11:37:32 +03:00
|
|
|
.ruleview-code {
|
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-property:not(:hover) > .ruleview-enableproperty {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:14 +03:00
|
|
|
.ruleview-expandable-container[hidden] {
|
2016-01-13 11:37:32 +03:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-03-03 23:55:14 +03:00
|
|
|
.ruleview-expandable-container {
|
2016-01-13 11:37:32 +03:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-namecontainer {
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-propertyvaluecontainer {
|
|
|
|
cursor: text;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-propertyvaluecontainer a {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-computedlist,
|
2017-02-13 17:04:07 +03:00
|
|
|
.ruleview-overridden-items[hidden],
|
2016-01-13 11:37:32 +03:00
|
|
|
.ruleview-overridden-rule-filter[hidden],
|
2017-03-13 17:15:58 +03:00
|
|
|
.ruleview-warning[hidden],
|
|
|
|
.ruleview-overridden .ruleview-grid {
|
2016-01-13 11:37:32 +03:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-computedlist[user-open],
|
2017-02-13 17:04:07 +03:00
|
|
|
.ruleview-computedlist[filter-open],
|
|
|
|
.ruleview-overridden-items {
|
2016-01-13 11:37:32 +03:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-rule-source {
|
2014-08-13 13:27:00 +04:00
|
|
|
text-align: end;
|
2013-03-28 02:20:38 +04:00
|
|
|
float: right;
|
2016-10-16 11:55:24 +03:00
|
|
|
max-width: 100%;
|
|
|
|
|
|
|
|
/* Force RTL direction to crop the source link at the beginning. */
|
|
|
|
direction: rtl;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
-moz-user-select: none;
|
2015-05-19 20:33:00 +03:00
|
|
|
margin-bottom: 2px;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
2016-10-16 11:55:24 +03:00
|
|
|
.ruleview-rule-source-label {
|
|
|
|
white-space: nowrap;
|
2015-05-19 20:33:00 +03:00
|
|
|
margin: 0;
|
2016-10-16 11:55:24 +03:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
/* Create an LTR embed to avoid special characters being shifted to the start due to the
|
|
|
|
parent node direction: rtl; */
|
|
|
|
direction: ltr;
|
|
|
|
unicode-bidi: embed
|
2014-05-29 16:02:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-rule-source[unselectable],
|
2016-10-16 11:55:24 +03:00
|
|
|
.ruleview-rule-source[unselectable] > .ruleview-rule-source-label {
|
2014-05-29 16:02:26 +04:00
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2016-10-16 11:55:24 +03:00
|
|
|
.theme-firebug .ruleview-rule-source-label {
|
2016-04-06 18:32:18 +03:00
|
|
|
font-family: var(--proportional-font-family);
|
|
|
|
font-weight: bold;
|
|
|
|
color: #0000FF;
|
|
|
|
}
|
|
|
|
|
2014-05-29 16:02:26 +04:00
|
|
|
.ruleview-rule-source:not([unselectable]):hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2013-09-04 19:43:40 +04:00
|
|
|
.ruleview-header {
|
2013-03-28 02:20:38 +04:00
|
|
|
border-top-width: 1px;
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
border-top-style: solid;
|
|
|
|
border-bottom-style: solid;
|
|
|
|
padding: 1px 4px;
|
|
|
|
-moz-user-select: none;
|
2013-12-18 21:40:08 +04:00
|
|
|
word-wrap: break-word;
|
2016-01-13 11:37:32 +03:00
|
|
|
vertical-align: middle;
|
|
|
|
min-height: 1.5em;
|
|
|
|
line-height: 1.5em;
|
2016-03-03 23:55:14 +03:00
|
|
|
margin-top: -1px;
|
2016-01-12 15:28:13 +03:00
|
|
|
}
|
|
|
|
|
2016-04-06 18:32:18 +03:00
|
|
|
.theme-firebug .theme-gutter.ruleview-header {
|
|
|
|
font-family: var(--proportional-font-family);
|
|
|
|
font-weight: bold;
|
|
|
|
color: inherit;
|
|
|
|
border: none;
|
|
|
|
margin: 4px 0;
|
|
|
|
padding: 3px 4px 2px 4px;
|
|
|
|
line-height: inherit;
|
|
|
|
min-height: 0;
|
|
|
|
background: var(--theme-header-background);
|
|
|
|
}
|
|
|
|
|
2016-01-12 15:28:13 +03:00
|
|
|
:root[platform="win"] .ruleview-header,
|
|
|
|
:root[platform="linux"] .ruleview-header {
|
2014-04-15 18:57:48 +04:00
|
|
|
margin-top: 4px;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
2016-01-13 11:37:32 +03:00
|
|
|
.ruleview-header.ruleview-expandable-header {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2013-09-04 19:43:40 +04:00
|
|
|
.ruleview-rule-pseudo-element {
|
|
|
|
padding-left:20px;
|
|
|
|
border-left: solid 10px;
|
|
|
|
}
|
|
|
|
|
2016-07-01 13:12:13 +03:00
|
|
|
.ruleview-rule {
|
2013-03-28 02:20:38 +04:00
|
|
|
padding: 2px 4px;
|
|
|
|
}
|
|
|
|
|
2015-05-28 03:36:17 +03:00
|
|
|
/**
|
|
|
|
* Display rules that don't match the current selected element and uneditable
|
|
|
|
* user agent styles differently
|
|
|
|
*/
|
|
|
|
.ruleview-rule[unmatched=true],
|
2014-11-20 23:10:32 +03:00
|
|
|
.ruleview-rule[uneditable=true] {
|
|
|
|
background: var(--theme-tab-toolbar-background);
|
2014-05-29 16:02:26 +04:00
|
|
|
}
|
|
|
|
|
2016-05-25 19:16:26 +03:00
|
|
|
.ruleview-rule[unmatched=true] {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2014-05-29 16:02:26 +04:00
|
|
|
.ruleview-rule[uneditable=true] :focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-rule[uneditable=true] .theme-link {
|
2014-11-20 23:10:32 +03:00
|
|
|
color: var(--theme-highlight-bluegrey);
|
2014-05-29 16:02:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-rule[uneditable=true] .ruleview-enableproperty {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2015-04-09 12:00:42 +03:00
|
|
|
.ruleview-rule[uneditable=true] .ruleview-swatch {
|
2014-05-29 16:02:26 +04:00
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-rule[uneditable=true] .ruleview-namecontainer > .ruleview-propertyname,
|
2015-05-06 17:23:00 +03:00
|
|
|
.ruleview-rule[uneditable=true] .ruleview-propertyvaluecontainer >
|
|
|
|
.ruleview-propertyvalue {
|
2014-05-29 16:02:26 +04:00
|
|
|
border-bottom-color: transparent;
|
|
|
|
}
|
|
|
|
|
2016-04-06 18:32:18 +03:00
|
|
|
.theme-firebug .ruleview-namecontainer > .ruleview-propertyname,
|
2016-06-07 11:38:20 +03:00
|
|
|
.theme-firebug .ruleview-propertyvaluecontainer > .ruleview-propertyvalue {
|
2016-04-06 18:32:18 +03:00
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-firebug .ruleview-namecontainer > .ruleview-propertyname {
|
|
|
|
color: var(--rule-property-name);
|
|
|
|
}
|
|
|
|
|
2016-06-07 11:38:20 +03:00
|
|
|
.theme-firebug .ruleview-propertyvaluecontainer > .ruleview-propertyvalue {
|
2016-04-06 18:32:18 +03:00
|
|
|
color: var(--rule-property-value);
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-firebug .ruleview-overridden .ruleview-propertyname,
|
|
|
|
.theme-firebug .ruleview-overridden .ruleview-propertyvalue {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-firebug .ruleview-enableproperty:not([checked]) ~ .ruleview-namecontainer,
|
|
|
|
.theme-firebug .ruleview-enableproperty:not([checked]) ~ .ruleview-namecontainer *,
|
2016-06-07 11:38:20 +03:00
|
|
|
.theme-firebug .ruleview-enableproperty:not([checked]) ~ .ruleview-propertyvaluecontainer,
|
2016-07-13 05:58:29 +03:00
|
|
|
.theme-firebug .ruleview-enableproperty:not([checked]) ~ .ruleview-propertyvaluecontainer *,
|
|
|
|
.theme-firebug .ruleview-overridden > * > .ruleview-computed:not(.ruleview-overridden),
|
|
|
|
.theme-firebug .ruleview-overridden > * > .ruleview-computed:not(.ruleview-overridden) * {
|
2016-04-06 18:32:18 +03:00
|
|
|
color: #CCCCCC;
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-rule + .ruleview-rule {
|
|
|
|
border-top-width: 1px;
|
|
|
|
border-top-style: dotted;
|
|
|
|
}
|
|
|
|
|
2016-04-06 18:32:18 +03:00
|
|
|
.theme-firebug .ruleview-rule + .ruleview-rule {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-warning {
|
2015-09-21 20:04:31 +03:00
|
|
|
background-image: url(images/alerticon-warning.png);
|
2014-05-05 22:32:20 +04:00
|
|
|
background-size: 13px 12px;
|
2016-05-13 08:19:58 +03:00
|
|
|
margin-inline-start: 5px;
|
2013-09-06 19:11:21 +04:00
|
|
|
display: inline-block;
|
2013-03-28 02:20:38 +04:00
|
|
|
width: 13px;
|
|
|
|
height: 12px;
|
|
|
|
}
|
|
|
|
|
2015-08-12 00:19:00 +03:00
|
|
|
@media (min-resolution: 1.1dppx) {
|
2014-05-05 22:32:20 +04:00
|
|
|
.ruleview-warning {
|
2015-09-21 20:04:31 +03:00
|
|
|
background-image: url(images/alerticon-warning@2x.png);
|
2014-05-05 22:32:20 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-25 08:59:43 +03:00
|
|
|
.ruleview-overridden-rule-filter {
|
2016-10-20 00:19:29 +03:00
|
|
|
background-image: url(chrome://devtools/skin/images/filter.svg#filterinput);
|
2015-08-25 08:59:43 +03:00
|
|
|
background-size: 11px 11px;
|
2016-05-13 08:19:58 +03:00
|
|
|
margin-inline-start: 5px;
|
2015-08-25 08:59:43 +03:00
|
|
|
display: inline-block;
|
|
|
|
width: 11px;
|
|
|
|
height: 11px;
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-ruleopen {
|
2016-05-13 08:19:58 +03:00
|
|
|
padding-inline-end: 5px;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-ruleclose {
|
|
|
|
cursor: text;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-propertylist {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-rule:not(:hover) .ruleview-enableproperty {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-expander {
|
2016-01-13 11:37:32 +03:00
|
|
|
vertical-align: middle;
|
2013-03-28 02:20:38 +04:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2016-10-13 15:56:00 +03:00
|
|
|
.ruleview-rule .ruleview-expander.theme-twisty:dir(rtl) {
|
2016-09-04 05:53:00 +03:00
|
|
|
/* for preventing .theme-twisty's wrong direction in rtl; Bug 1296648 */
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-newproperty {
|
|
|
|
/* (enable checkbox width: 12px) + (expander width: 15px) */
|
2016-05-13 08:19:58 +03:00
|
|
|
margin-inline-start: 27px;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-namecontainer,
|
2015-05-06 17:23:00 +03:00
|
|
|
.ruleview-propertyvaluecontainer,
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-propertyname,
|
|
|
|
.ruleview-propertyvalue {
|
|
|
|
text-decoration: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-computedlist {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-computed {
|
2016-05-13 08:19:58 +03:00
|
|
|
margin-inline-start: 35px;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
2017-02-13 17:04:07 +03:00
|
|
|
.ruleview-overridden-items {
|
|
|
|
margin: 0px 0px 0px 5px;
|
|
|
|
list-style: none;
|
|
|
|
line-height: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-overridden-item {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-overridden-item::before {
|
|
|
|
position: absolute;
|
|
|
|
left: -15px;
|
|
|
|
top: 0px;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2017-03-08 00:43:32 +03:00
|
|
|
border-left: 0.5px solid var(--rule-overridden-item-border-color);
|
|
|
|
height: 0.8em;
|
|
|
|
border-bottom: 0.5px solid var(--rule-overridden-item-border-color);
|
2017-02-13 17:04:07 +03:00
|
|
|
width: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-overridden-item::after {
|
|
|
|
position: absolute;
|
|
|
|
left: -15px;
|
|
|
|
bottom: -7px;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2017-03-08 00:43:32 +03:00
|
|
|
border-left: 0.5px solid var(--rule-overridden-item-border-color);
|
2017-02-13 17:04:07 +03:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-overridden-item:last-child:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-11-16 16:35:20 +03:00
|
|
|
.ruleview-grid,
|
2015-04-09 12:00:42 +03:00
|
|
|
.ruleview-swatch {
|
2014-05-29 16:02:26 +04:00
|
|
|
cursor: pointer;
|
2013-10-18 18:01:20 +04:00
|
|
|
border-radius: 50%;
|
2017-02-03 12:32:00 +03:00
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
2015-05-13 03:23:00 +03:00
|
|
|
vertical-align: middle;
|
2016-03-23 10:11:15 +03:00
|
|
|
/* align the swatch with its value */
|
|
|
|
margin-top: -1px;
|
2016-05-13 08:19:58 +03:00
|
|
|
margin-inline-end: 5px;
|
2014-05-15 22:14:00 +04:00
|
|
|
display: inline-block;
|
2014-05-20 00:21:25 +04:00
|
|
|
position: relative;
|
2014-05-15 22:14:00 +04:00
|
|
|
}
|
|
|
|
|
2016-11-16 16:35:20 +03:00
|
|
|
.ruleview-grid {
|
|
|
|
background: url("chrome://devtools/skin/images/grid.svg");
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2014-05-15 22:14:00 +04:00
|
|
|
.ruleview-colorswatch::before {
|
|
|
|
content: '';
|
|
|
|
background-color: #eee;
|
|
|
|
background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
|
|
|
|
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
|
|
|
|
background-size: 12px 12px;
|
|
|
|
background-position: 0 0, 6px 6px;
|
|
|
|
position: absolute;
|
|
|
|
border-radius: 50%;
|
2014-05-20 00:21:25 +04:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2014-05-15 22:14:00 +04:00
|
|
|
z-index: -1;
|
2013-10-18 18:01:20 +04:00
|
|
|
}
|
|
|
|
|
2014-07-17 11:59:04 +04:00
|
|
|
.ruleview-bezierswatch {
|
2015-10-30 21:59:30 +03:00
|
|
|
background: url("chrome://devtools/skin/images/cubic-bezier-swatch.png");
|
2014-07-17 11:59:04 +04:00
|
|
|
background-size: 1em;
|
|
|
|
}
|
|
|
|
|
2015-04-09 12:00:42 +03:00
|
|
|
.ruleview-filterswatch {
|
2015-10-30 21:59:30 +03:00
|
|
|
background: url("chrome://devtools/skin/images/filter-swatch.svg");
|
2015-04-09 12:00:42 +03:00
|
|
|
background-size: 1em;
|
|
|
|
}
|
|
|
|
|
2016-03-09 01:04:54 +03:00
|
|
|
.ruleview-angleswatch {
|
|
|
|
background: url("chrome://devtools/skin/images/angle-swatch.svg");
|
|
|
|
background-size: 1em;
|
|
|
|
}
|
|
|
|
|
2015-08-12 00:19:00 +03:00
|
|
|
@media (min-resolution: 1.1dppx) {
|
2014-07-17 11:59:04 +04:00
|
|
|
.ruleview-bezierswatch {
|
2015-10-30 21:59:30 +03:00
|
|
|
background: url("chrome://devtools/skin/images/cubic-bezier-swatch@2x.png");
|
2014-07-17 11:59:04 +04:00
|
|
|
background-size: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-overridden {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
|
2014-02-12 21:17:11 +04:00
|
|
|
.theme-light .ruleview-overridden {
|
2014-11-20 23:10:32 +03:00
|
|
|
text-decoration-color: var(--theme-content-color3);
|
2014-02-12 21:17:11 +04:00
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.styleinspector-propertyeditor {
|
|
|
|
border: 1px solid #CCC;
|
|
|
|
padding: 0;
|
2016-02-12 03:43:44 +03:00
|
|
|
margin: -1px -3px -1px -1px;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
2016-04-06 18:32:18 +03:00
|
|
|
.theme-firebug .styleinspector-propertyeditor {
|
|
|
|
border: 1px solid var(--theme-splitter-color);
|
|
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-property {
|
2014-04-15 18:57:48 +04:00
|
|
|
border-left: 3px solid transparent;
|
2013-12-18 21:40:08 +04:00
|
|
|
clear: right;
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
2015-05-06 17:23:00 +03:00
|
|
|
.ruleview-propertycontainer > * {
|
2013-03-28 02:20:38 +04:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2014-11-20 23:10:32 +03:00
|
|
|
.ruleview-property[dirty] {
|
|
|
|
border-left-color: var(--theme-highlight-green);
|
2013-03-28 02:20:38 +04:00
|
|
|
}
|
|
|
|
|
2015-04-16 21:15:09 +03:00
|
|
|
.ruleview-highlight {
|
|
|
|
background-color: var(--rule-highlight-background-color);
|
|
|
|
}
|
|
|
|
|
2013-03-28 02:20:38 +04:00
|
|
|
.ruleview-namecontainer > .ruleview-propertyname,
|
2015-05-06 17:23:00 +03:00
|
|
|
.ruleview-propertyvaluecontainer > .ruleview-propertyvalue {
|
2013-03-28 02:20:38 +04:00
|
|
|
border-bottom: 1px dashed transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-namecontainer:hover > .ruleview-propertyname,
|
2015-05-06 17:23:00 +03:00
|
|
|
.ruleview-propertyvaluecontainer:hover > .ruleview-propertyvalue {
|
2013-03-28 02:20:38 +04:00
|
|
|
border-bottom-color: hsl(0,0%,50%);
|
|
|
|
}
|
|
|
|
|
2015-07-14 20:49:28 +03:00
|
|
|
.ruleview-selectorcontainer {
|
2013-12-18 21:40:08 +04:00
|
|
|
word-wrap: break-word;
|
2015-07-14 20:49:28 +03:00
|
|
|
cursor: text;
|
2013-12-18 21:40:08 +04:00
|
|
|
}
|
|
|
|
|
2016-05-25 19:16:26 +03:00
|
|
|
.ruleview-selector-separator,
|
|
|
|
.ruleview-selector-unmatched {
|
2013-03-28 02:20:38 +04:00
|
|
|
color: #888;
|
|
|
|
}
|
2015-03-24 16:42:27 +03:00
|
|
|
|
2015-07-14 20:49:28 +03:00
|
|
|
.ruleview-selector-matched > .ruleview-selector-attribute {
|
|
|
|
/* TODO: Bug 1178535 Awaiting UX feedback on highlight colors */
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-selector-matched > .ruleview-selector-pseudo-class {
|
|
|
|
/* TODO: Bug 1178535 Awaiting UX feedback on highlight colors */
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-selector-matched > .ruleview-selector-pseudo-class-lock {
|
|
|
|
font-weight: bold;
|
|
|
|
color: var(--theme-highlight-orange);
|
|
|
|
}
|
|
|
|
|
2016-04-06 18:32:18 +03:00
|
|
|
.theme-firebug .ruleview-selector > .ruleview-selector-matched,
|
|
|
|
.theme-firebug .ruleview-selector > .ruleview-selector-separator,
|
|
|
|
.theme-firebug .ruleview-selector > .ruleview-selector-unmatched {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2015-03-24 16:42:27 +03:00
|
|
|
.ruleview-selectorhighlighter {
|
2015-10-30 21:59:30 +03:00
|
|
|
background: url("chrome://devtools/skin/images/vview-open-inspector.png") no-repeat 0 0;
|
2015-03-24 16:42:27 +03:00
|
|
|
padding-left: 16px;
|
|
|
|
margin-left: 5px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruleview-selectorhighlighter:hover {
|
2015-11-11 23:21:28 +03:00
|
|
|
filter: url(images/filters.svg#checked-icon-state);
|
2015-03-24 16:42:27 +03:00
|
|
|
}
|
|
|
|
|
2016-11-16 16:35:20 +03:00
|
|
|
.ruleview-grid.active,
|
2015-03-24 16:42:27 +03:00
|
|
|
.ruleview-selectorhighlighter:active,
|
|
|
|
.ruleview-selectorhighlighter.highlighted {
|
2015-11-11 23:21:28 +03:00
|
|
|
filter: url(images/filters.svg#checked-icon-state) brightness(0.9);
|
2015-03-24 16:42:27 +03:00
|
|
|
}
|
2015-05-16 09:10:00 +03:00
|
|
|
|
|
|
|
#ruleview-add-rule-button::before {
|
2015-10-30 21:59:30 +03:00
|
|
|
background-image: url("chrome://devtools/skin/images/add.svg");
|
2015-05-19 20:33:00 +03:00
|
|
|
}
|
2015-04-24 07:35:00 +03:00
|
|
|
|
|
|
|
#pseudo-class-panel-toggle::before {
|
2015-11-11 23:21:28 +03:00
|
|
|
background-image: url("chrome://devtools/skin/images/pseudo-class.svg");
|
2015-04-24 07:35:00 +03:00
|
|
|
}
|
2015-06-26 23:12:48 +03:00
|
|
|
|
2017-03-03 16:09:23 +03:00
|
|
|
#class-panel-toggle::before {
|
|
|
|
content: ".cls";
|
|
|
|
}
|
|
|
|
|
2015-08-25 08:59:43 +03:00
|
|
|
.ruleview-overridden-rule-filter {
|
2015-06-26 23:12:48 +03:00
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2015-08-25 08:59:43 +03:00
|
|
|
.ruleview-overridden-rule-filter:hover {
|
2015-06-26 23:12:48 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2016-04-06 18:32:18 +03:00
|
|
|
|
|
|
|
.theme-firebug .ruleview-overridden {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Firebug theme disable/enable CSS rule. Firebug theme uses its own
|
|
|
|
icons to indicate when CSS rules can be disabled or enabled. */
|
|
|
|
|
|
|
|
.theme-firebug .ruleview-rule .theme-checkbox {
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 12px 12px;
|
|
|
|
background-image: url(chrome://devtools/skin/images/firebug/disable.svg);
|
|
|
|
background-position: 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-firebug .ruleview-rule .theme-checkbox:not([checked]){
|
|
|
|
filter: grayscale(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-firebug .ruleview-rule .theme-checkbox[checked] {
|
|
|
|
background-position: 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-firebug .ruleview-property:not(:hover) .ruleview-enableproperty {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|