mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Depends on D12590 Differential Revision: https://phabricator.services.mozilla.com/D12697
105 lines
2.4 KiB
CSS
105 lines
2.4 KiB
CSS
/* 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/. */
|
|
|
|
/* CSS Variables specific to the Changes panel that aren't defined by the themes */
|
|
:root {
|
|
--diff-add-background-color: #f1feec;
|
|
--diff-add-text-color: #54983f;
|
|
--diff-remove-background-color: #fbf2f5;
|
|
--diff-remove-text-color: #bf7173;
|
|
--diff-level: 0;
|
|
--diff-level-offset: 10px;
|
|
/*
|
|
Minimum padding so content on the first level (zero) isn't touching the edge. Added
|
|
and removed lines will re-declare this to add extra padding to clear the +/- icons.
|
|
*/
|
|
--diff-level-min-offset: 5px;
|
|
}
|
|
|
|
#sidebar-panel-changes {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
#sidebar-panel-changes .href {
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--theme-toolbar-color);
|
|
background: var(--theme-toolbar-background);
|
|
border-top: 1px solid var(--theme-splitter-color);
|
|
border-bottom: 1px solid var(--theme-splitter-color);
|
|
padding: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#sidebar-panel-changes .href span {
|
|
/* Allows trimming of flex item with overflow ellipsis within the flex container */
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#sidebar-panel-changes .level {
|
|
padding-top: 3px;
|
|
padding-right: 5px;
|
|
padding-bottom: 3px;
|
|
padding-left: calc(var(--diff-level-min-offset) +
|
|
var(--diff-level-offset) * var(--diff-level));
|
|
position: relative;
|
|
}
|
|
|
|
#sidebar-panel-changes .selector {
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
#sidebar-panel-changes .rule .bracket-open {
|
|
display: inline-block;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
#sidebar-panel-changes .declaration-name {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
#sidebar-panel-changes .declaration-value {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.diff-add,
|
|
.diff-remove {
|
|
--diff-level-min-offset: 15px;
|
|
}
|
|
|
|
.diff-add::before,
|
|
.diff-remove::before {
|
|
position: absolute;
|
|
left: 5px;
|
|
}
|
|
|
|
.diff-add {
|
|
background-color: var(--diff-add-background-color);
|
|
}
|
|
|
|
.diff-add::before {
|
|
content: "+";
|
|
color: var(--diff-add-text-color);
|
|
}
|
|
|
|
.diff-remove {
|
|
background-color: var(--diff-remove-background-color);
|
|
}
|
|
|
|
.diff-remove::before{
|
|
content: "-";
|
|
color: var(--diff-remove-text-color);
|
|
}
|
|
|
|
#sidebar-panel-changes .devtools-sidepanel-no-result :not(:first-child) {
|
|
font-style: normal;
|
|
}
|