From c1080df62f8b2f28ca13475f9ae69f68465cce86 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Fri, 13 Mar 2015 22:37:32 +0100 Subject: [PATCH] second part of syncing LCARStrek with Firefox 36 windows theme changes --- LCARStrek/browser/browser.css | 130 -------------- .../browser/devtools/debugger-prettyprint.png | Bin 0 -> 259 bytes .../devtools/debugger-prettyprint@2x.png | Bin 0 -> 408 bytes LCARStrek/browser/devtools/debugger.css | 8 +- LCARStrek/browser/devtools/highlighter.css | 169 ++++++++++++++++++ .../browser/preferences/in-content/dialog.css | 66 +++++++ .../preferences/in-content/preferences.css | 36 ++-- 7 files changed, 256 insertions(+), 153 deletions(-) create mode 100644 LCARStrek/browser/devtools/debugger-prettyprint.png create mode 100644 LCARStrek/browser/devtools/debugger-prettyprint@2x.png create mode 100644 LCARStrek/browser/devtools/highlighter.css create mode 100644 LCARStrek/browser/preferences/in-content/dialog.css diff --git a/LCARStrek/browser/browser.css b/LCARStrek/browser/browser.css index 2c5602a4..343f0bd6 100644 --- a/LCARStrek/browser/browser.css +++ b/LCARStrek/browser/browser.css @@ -3580,136 +3580,6 @@ notification[value="translation"] { background-color: transparent !important; } -/* === BEGIN highlighter.inc.css === */ - -/* Box model highlighter */ -svg|g.box-model-container { - opacity: 0.4; -} - -svg|polygon.box-model-content { - fill: #008484; -} - -svg|polygon.box-model-padding { - fill: #9C9CFF; -} - -svg|polygon.box-model-border { - fill: #FFCF00; -} - -svg|polygon.box-model-margin { - fill: #A09090; -} - -svg|polygon.box-model-content, -svg|polygon.box-model-padding, -svg|polygon.box-model-border, -svg|polygon.box-model-margin { - stroke: none; -} - -svg|line.box-model-guide-top, -svg|line.box-model-guide-right, -svg|line.box-model-guide-bottom, -svg|line.box-model-guide-left { - stroke: #E7ADE7; - stroke-dasharray: 5 3; - shape-rendering: crispEdges; -} - -/* Highlighter - Node Infobar */ - -.highlighter-nodeinfobar { - color: #FF9F00; - border-radius: 3px; - background-color: #000000; - background-clip: padding-box; - border: 1px solid #008484; - padding: 5px; - /* Avoid cases where the infobar is smaller than the arrow, when the text is - short */ - min-width: 75px; -} - -/* Highlighter - Node Infobar - text */ - -.highlighter-nodeinfobar-text { - text-align: center; - /* 100% - size of the buttons and margins */ - max-width: calc(100% - 2 * (26px + 6px)); - padding-bottom: 1px; -} - -html|*.highlighter-nodeinfobar-tagname { - color: #FFCF00; -} - -html|*.highlighter-nodeinfobar-id { - color: #9C9CFF; -} - -html|*.highlighter-nodeinfobar-pseudo-classes { - color: #FF9F00; -} - -html|*.highlighter-nodeinfobar-dimensions { - color: #A09090; - -moz-border-start: 1px solid #9C9CFF; - -moz-margin-start: 6px; - -moz-padding-start: 6px; -} - -/* 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 bottom left, transparent 50%, rgb(0, 132, 132) 50%); -} - -.highlighter-nodeinfobar-arrow-bottom { - margin-top: -8px; - margin-bottom: 8px; - background-image: linear-gradient(to top right, transparent 50%, rgb(0, 132, 132) 50%); -} - -.highlighter-nodeinfobar-container[hide-arrow] > .highlighter-nodeinfobar { - margin: 7px 0; -} - -/* Css transform highlighter */ - -svg|polygon.css-transform-transformed { - fill: #9C9CFF; - opacity: 0.8; -} - -svg|polygon.css-transform-untransformed { - fill: #A09090; - opacity: 0.8; -} - -svg|polygon.css-transform-transformed, -svg|polygon.css-transform-untransformed, -svg|line.css-transform-line { - stroke: #E7ADE7; - stroke-dasharray: 5 3; - stroke-width: 2; -} - -/* === END highlighter.inc.css === */ - #full-screen-warning-message { background-color: #000000; color: #FF9F00; diff --git a/LCARStrek/browser/devtools/debugger-prettyprint.png b/LCARStrek/browser/devtools/debugger-prettyprint.png new file mode 100644 index 0000000000000000000000000000000000000000..f85c82f8a800ef2049ed52b4bbec896f6ec4ef97 GIT binary patch literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnH3?%tPCZz)@&H$efS3`yXAoKruhHN(NE+C7s zB*-tA!Qt7BG!Q4r+uensgH_f8q`bf*vY3HEdOZj;#z{?-0SdC0c>21s-)H6(G3DQU zz32{5sMyoRF+}2WZ{J421_urn{^y=O92?s8n}zl*(LWmWl)u+RU=nLuAM3r+cLywZ zZr@qf!d7G_+9W;eZUVFHi@py`jn`KuiriqHc)-EqgRAk;{ZdhOLaU8EcY4on`l9I} u&pyYl<>}$epA>H}pKfpbl6Y$Rc~{s literal 0 HcmV?d00001 diff --git a/LCARStrek/browser/devtools/debugger-prettyprint@2x.png b/LCARStrek/browser/devtools/debugger-prettyprint@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..fd421a2b0e345a6098a0c17bc7565a2f4fc58e24 GIT binary patch literal 408 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0L3?#3!&-4XSoB=)|t_lnlK<5AR3_9<*oPjLH zk|4ie28U-i(mGdGY7$-GR1}Mm0;_2(kexI3FM91*u zwqyA~Jsh4cjv*GO&raGXc*uaqHI>hNrN###A4RSz@l$q^twz%|e{NEC^_$xyGvPD$ zr1~fBB`3c|<*mNQt-kYd-EFa&j!S1U=P|0W#xGjquqEm3{U+CyTpvoJek&Ef?zH3D zpi#n6#zSGaJOMYR>_s1E#em^|$ry!xu!oXf; vhWz2z{LDu7IW6znd4GOLwr}J9`-3t0M=F2&!RgTe~DWM4f`bnDP literal 0 HcmV?d00001 diff --git a/LCARStrek/browser/devtools/debugger.css b/LCARStrek/browser/devtools/debugger.css index 580635f8..d953c9c3 100644 --- a/LCARStrek/browser/devtools/debugger.css +++ b/LCARStrek/browser/devtools/debugger.css @@ -34,7 +34,13 @@ window { } #pretty-print { - font-weight: bold; + list-style-image: url(debugger-prettyprint.png); +} + +@media (min-resolution: 2dppx) { + #pretty-print { + list-style-image: url(debugger-prettyprint@2x.png); + } } #toggle-breakpoints { diff --git a/LCARStrek/browser/devtools/highlighter.css b/LCARStrek/browser/devtools/highlighter.css new file mode 100644 index 00000000..5e02dc8f --- /dev/null +++ b/LCARStrek/browser/devtools/highlighter.css @@ -0,0 +1,169 @@ +/* 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/. */ + +/* + The :-moz-native-anonymous selector prefix prevents the styles defined here + from impacting web content. + Indeed, this pseudo-class is only available to chrome code. + This stylesheet is loaded as a ua stylesheet via the addon sdk, so having this + pseudo-class is important. + Having bug 1086532 fixed would make it possible to load this stylesheet in a +