From e9e4d416eeb2316a84a65f33a1af93ae22af0dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Wed, 17 Dec 2008 08:30:37 +0100 Subject: [PATCH] Bug 468191 - Padding on the Web feed icon and Star icon in location bar. r=gavin --- browser/base/content/browser.css | 7 +++++- .../themes/gnomestripe/browser/browser.css | 7 +----- browser/themes/pinstripe/browser/browser.css | 23 +++++-------------- browser/themes/winstripe/browser/browser.css | 20 +++++----------- 4 files changed, 19 insertions(+), 38 deletions(-) diff --git a/browser/base/content/browser.css b/browser/base/content/browser.css index 567b2845fd91..04983be1df67 100644 --- a/browser/base/content/browser.css +++ b/browser/base/content/browser.css @@ -31,9 +31,14 @@ toolbar[printpreview="true"] { display: none; } +#feed-button > .button-box > .box-inherit > .button-text { + display: none; +} + #urlbar[pageproxystate="invalid"] > #urlbar-icons > :not(#go-button) , #urlbar[pageproxystate="valid"] > #urlbar-icons > #go-button , -#urlbar[empty="true"] > #urlbar-icons > #go-button { +#urlbar[empty="true"] > #urlbar-icons > #go-button, +#feed-button:not([feeds]) { visibility: collapse; } diff --git a/browser/themes/gnomestripe/browser/browser.css b/browser/themes/gnomestripe/browser/browser.css index 9e92d2cc2891..b0bf9af57d16 100644 --- a/browser/themes/gnomestripe/browser/browser.css +++ b/browser/themes/gnomestripe/browser/browser.css @@ -986,19 +986,14 @@ toolbar[iconsize="small"] #paste-button[disabled="true"] { background-color: transparent; } -#feed-button > hbox > .button-menu-dropmarker, -#feed-button > hbox > .button-text { +#feed-button > .button-box > .button-menu-dropmarker { display: none; } #feed-button { - -moz-binding: url("chrome://global/content/bindings/button.xml#menu"); -moz-appearance: none; min-width: 0px; margin-right: 1px !important; -} - -#feed-button[feeds] { list-style-image: url("chrome://browser/skin/page-livemarks.png"); } diff --git a/browser/themes/pinstripe/browser/browser.css b/browser/themes/pinstripe/browser/browser.css index d52f5ae8a56d..3d33e8eabbbe 100755 --- a/browser/themes/pinstripe/browser/browser.css +++ b/browser/themes/pinstripe/browser/browser.css @@ -983,6 +983,7 @@ richlistitem[selected="true"][current="true"] > hbox > .ac-result-type-bookmark, /* STAR BUTTON */ #star-button { padding: 1px; + -moz-padding-start: 4px !important; list-style-image: url("chrome://browser/skin/places/star-icons.png"); -moz-image-region: rect(0px, 16px, 16px, 0px); } @@ -1444,35 +1445,23 @@ sidebarheader > .tabs-closebutton > .toolbarbutton-text { /* ----- FEED CONTENT DISPLAY ---- */ -#feed-button, #feed-button > .button-box, -#feed-button:hover:active > .button-box { - padding: 0px; - margin: -1px; - border: 0px; - background-color: transparent; -} - -#feed-button .button-menu-dropmarker, -#feed-button .button-text { +#feed-button > .button-box > .button-menu-dropmarker { display: none; } #feed-button { - -moz-binding: url("chrome://global/content/bindings/button.xml#menu"); -moz-appearance: none; min-width: 0; min-height: 0; - margin-right: 1px !important; -} - -#feed-button[feeds] { + -moz-padding-start: 4px !important; list-style-image: url("chrome://browser/skin/feed-icons.png"); -moz-image-region: rect(0px, 16px, 16px, 0px); } -#feed-button[feeds]:hover { +#feed-button:hover { -moz-image-region: rect(0px, 32px, 16px, 16px); } -#feed-button[feeds]:active { +#feed-button[open="true"], +#feed-button:hover:active { -moz-image-region: rect(0px, 48px, 16px, 32px); } diff --git a/browser/themes/winstripe/browser/browser.css b/browser/themes/winstripe/browser/browser.css index 31dd3002bebe..b78daf397cc8 100644 --- a/browser/themes/winstripe/browser/browser.css +++ b/browser/themes/winstripe/browser/browser.css @@ -1654,7 +1654,8 @@ toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-text { } /* Feed icon */ -#feed-button, #feed-button > .button-box, +#feed-button, +#feed-button > .button-box, #feed-button:hover:active > .button-box { padding: 0px; margin: 0px; @@ -1662,36 +1663,27 @@ toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-text { background-color: transparent; } -#feed-button > hbox > .button-menu-dropmarker, -#feed-button > hbox > .button-text { +#feed-button > .button-box > .button-menu-dropmarker { display: none; } #feed-button { - -moz-binding: url("chrome://global/content/bindings/button.xml#menu"); -moz-appearance: none; min-width: 0px; padding: 0 2px !important; -} - -#feed-button[feeds] { list-style-image: url("chrome://browser/skin/feeds/feed-icons-16.png"); -moz-image-region: rect(0px 16px 16px 0px); } -#feed-button[feeds]:hover { +#feed-button:hover { -moz-image-region: rect(0px 32px 16px 16px); } -#feed-button[feeds][open="true"], -#feed-button[feeds]:hover:active { +#feed-button[open="true"], +#feed-button:hover:active { -moz-image-region: rect(0px 48px 16px 32px); } -#feed-button:not([feeds]) { - visibility: collapse; -} - /* ::::: About Popup Blocking dialog ::::: */ #pageReportFirstTime statusbarpanel.statusbar-resizerpanel { visibility: collapse;