From ffce24020ca33d973458a650856e06f3d9923de1 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 3 Dec 2011 00:21:14 +0100 Subject: [PATCH] adapt to Firefox 9 changes in stop/go/reload buttons --- LCARStrek/browser/browser.css | 78 ++++++++++++++++----------- LCARStrek/browser/reload-stop-go.png | Bin 378 -> 403 bytes 2 files changed, 46 insertions(+), 32 deletions(-) diff --git a/LCARStrek/browser/browser.css b/LCARStrek/browser/browser.css index d545a150..f37c8e3f 100644 --- a/LCARStrek/browser/browser.css +++ b/LCARStrek/browser/browser.css @@ -1135,12 +1135,6 @@ toolbar[mode="full"] .toolbarbutton-1 > .toolbarbutton-menubutton-button { /* ::::: Location Bar ::::: */ -#urlbar { - width: 7em; - min-width: 7em; - color: #FFBFFF; -} - #urlbar, .searchbar-textbox { border-radius: 5px; @@ -1148,6 +1142,12 @@ toolbar[mode="full"] .toolbarbutton-1 > .toolbarbutton-menubutton-button { -moz-margin-start: 3px; } +#urlbar { + width: 7em; + min-width: 7em; + -moz-padding-end: 2px; +} + #urlbar:-moz-lwtheme, .searchbar-textbox:-moz-lwtheme { /* background-color: rgba(255,255,255,.8); @@ -1175,12 +1175,16 @@ html|*.urlbar-input:-moz-lwtheme:-moz-placeholder, } #urlbar-icons { - height: 18px; -moz-box-align: center; } .urlbar-icon { - padding: 0 2px !important; + padding: 3px 3px; +} + +.searchbar-engine-button, +.search-go-container { + padding: 2px 2px; } .urlbar-icon:-moz-system-metric(touch-enabled) { @@ -1188,6 +1192,13 @@ html|*.urlbar-input:-moz-lwtheme:-moz-placeholder, padding: 0 3px !important; } +.urlbar-icon:hover { +} + +.urlbar-icon[open="true"], +.urlbar-icon:hover:active { +} + #urlbar-search-splitter { min-width: 6px; -moz-margin-start: -3px; @@ -1263,6 +1274,13 @@ html|*.urlbar-input:-moz-lwtheme:-moz-placeholder, border-radius: 0px; } +.urlbar-history-dropmarker:hover { +} + +.urlbar-history-dropmarker:hover:active, +.urlbar-history-dropmarker[open="true"] { +} + /* page proxy icon */ #page-proxy-favicon, @@ -1356,33 +1374,23 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action- border-top: 1px solid #9C9CFF; } -/* go button */ - -#go-button { - list-style-image: url("chrome://browser/skin/Go-arrow.png"); - -moz-image-region: rect(0px, 16px, 16px, 0px); -} - -#go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon { - -moz-transform: scaleX(-1); -} - -#go-button:hover { - -moz-image-region: rect(16px, 16px, 32px, 0px); -} - /* combined go/reload/stop button in location bar */ +#go-button, #urlbar > toolbarbutton { list-style-image: url("chrome://browser/skin/reload-stop-go.png"); /* margin: -2px; */ -moz-margin-start: 0; - padding: 0 3px; + padding: 0 2px; background-origin: border-box; border: none; -moz-border-start: 1px solid #9C9CFF; } +#go-button { + padding: 0 3px; +} + #urlbar:-moz-locale-dir(ltr) > toolbarbutton { border-top-left-radius: 0px; border-bottom-left-radius: 0px; @@ -1403,31 +1411,37 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action- } #urlbar-go-button { - -moz-image-region: rect(0px, 56px, 14px, 42px); + -moz-image-region: rect(0, 42px, 14px, 28px); } -#urlbar-go-button:hover { - -moz-image-region: rect(14px, 56px, 28px, 42px); +#go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon, +#urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon { + -moz-transform: scaleX(-1); +} + +#urlbar-go-button:hover, +#go-button:hover { + -moz-image-region: rect(14px, 42px, 28px, 28px); } #urlbar-reload-button { - -moz-image-region: rect(0px, 28px, 14px, 14px); + -moz-image-region: rect(0px, 14px, 14px, 0px); } #urlbar-reload-button[disabled] { - -moz-image-region: rect(0px, 14px, 14px, 0px); + -moz-image-region: rect(28px, 14px, 42px, 0px); } #urlbar-reload-button:not([disabled]):hover { - -moz-image-region: rect(14px, 28px, 28px, 14px); + -moz-image-region: rect(14px, 14px, 28px, 0px); } #urlbar-stop-button { - -moz-image-region: rect(0px, 42px, 14px, 28px); + -moz-image-region: rect(0px, 28px, 14px, 14px); } #urlbar-stop-button:hover { - -moz-image-region: rect(14px, 42px, 28px, 28px); + -moz-image-region: rect(14px, 28px, 28px, 14px); } /* popup blocker button */ diff --git a/LCARStrek/browser/reload-stop-go.png b/LCARStrek/browser/reload-stop-go.png index 800240b2af5ee485589abd4b4c506029af1e75eb..51eac3fb32b18d4ddb0be2dc6cefc61002107fdd 100644 GIT binary patch delta 340 zcmV-a0jvJ{0+RzFiBL{Q4GJ0x0000DNk~Le0000g0000g0s{a50JyCo$dMrx5Vdju z0001hP_X~c0Jg!HwUI_Se+&W@A1z6|P__U70P{&iK~xyiMUFv=gfJ9DE6E6h47kxd zh-VON7rjq|xliMAP7!(~IYom9=&JP>IhFRLT(N?g->Rn}B?af4s86qin-1>cTQ> zVax)<{8%D)Y-=NKXi;hAZoZoqf(yEO5O;ef0NP1JK~xyiRnNg`!!Q)a@xS8=N(ks; z?+`kJ!RoddmmZvLbssx)=_&xpr<15M&%xEi3K8thnvh2>MSf^w0B${G^-SCagNUzLAr6NUXH#Q*>R M07*qoM6N<$g6tlL00000 -- 2.43.0