Bug 428878: use a square site button for the windows classic os theme, patch by Kai Liu <kliu.bugzilla.3c9f@mail.kailiu.com>, r=dao, ui-r=beltzner, a=damons

This commit is contained in:
gavin@gavinsharp.com 2008-04-28 03:04:57 -07:00
parent 41bf19cc39
commit 79ded0d443
3 changed files with 33 additions and 20 deletions

View File

@ -14,39 +14,39 @@
/* ::::: Identity Indicator Styling ::::: */
#urlbar[chromedir="ltr"] {
#urlbar[chromedir="ltr"]:-moz-system-metric(windows-default-theme) {
-moz-margin-start: 8px;
}
#identity-box[chromedir="ltr"] {
#identity-box[chromedir="ltr"]:-moz-system-metric(windows-default-theme) {
-moz-margin-start: -6px;
}
#identity-box[chromedir="ltr"] > hbox {
#identity-box[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
margin: -4px 0;
padding: 3px 2px 3px 4px;
background-position: 0 3px;
-moz-border-radius-topleft: 14px;
-moz-border-radius-bottomleft: 14px;
}
#identity-box:hover[chromedir="ltr"] > hbox {
#identity-box:hover[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -57px;
}
#identity-box.verifiedDomain[chromedir="ltr"] > hbox {
#identity-box.verifiedDomain[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -117px;
}
#identity-box.verifiedDomain:hover[chromedir="ltr"] > hbox {
#identity-box.verifiedDomain:hover[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -177px;
}
#identity-box.verifiedIdentity[chromedir="ltr"] > hbox {
#identity-box.verifiedIdentity[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -237px;
}
#identity-box.verifiedIdentity:hover[chromedir="ltr"] > hbox {
#identity-box.verifiedIdentity:hover[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -297px;
}
/* Bug 413060, comment 14: Match #identity-box's -moz-margin-start, less 1px */
#identity-popup[chromedir="ltr"] {
#identity-popup[chromedir="ltr"]:-moz-system-metric(windows-default-theme) {
-moz-margin-start: 5px;
}

View File

@ -1045,6 +1045,9 @@ toolbar[iconsize="small"] #paste-button:not([disabled="true"]):hover:active {
#urlbar {
width: 7em;
min-width: 7em;
}
#urlbar:-moz-system-metric(windows-default-theme) {
-moz-appearance: none;
border-width: 1px;
-moz-border-top-colors: ThreeDShadow;
@ -1778,7 +1781,7 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
/* ::::: Identity Indicator Styling ::::: */
/* Location bar visuals*/
#urlbar[chromedir="ltr"] {
#urlbar[chromedir="ltr"]:-moz-system-metric(windows-default-theme) {
-moz-margin-start: 6px;
}
@ -1790,13 +1793,13 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
overflow: -moz-hidden-unscrollable;
}
#identity-box[chromedir="ltr"] {
#identity-box[chromedir="ltr"]:-moz-system-metric(windows-default-theme) {
-moz-margin-start: -4px;
border-right: 1px solid ThreeDShadow;
}
#identity-box.verifiedDomain[chromedir="ltr"] ,
#identity-box.verifiedIdentity[chromedir="ltr"] {
#identity-box.verifiedDomain[chromedir="ltr"]:-moz-system-metric(windows-default-theme) ,
#identity-box.verifiedIdentity[chromedir="ltr"]:-moz-system-metric(windows-default-theme) {
border-right: 1px solid ThreeDDarkShadow;
}
@ -1807,9 +1810,13 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
border-right: 2px solid;
-moz-border-left-colors: ThreeDShadow rgba(255, 255, 255, 0.2);
-moz-border-right-colors: ThreeDShadow rgba(255, 255, 255, 0.2);
padding: 0 3px;
padding: 0 2px;
}
#identity-box[chromedir="ltr"] > hbox {
#identity-box[chromedir="ltr"]:not(:-moz-system-metric(windows-default-theme)) > hbox {
border-left: 1px solid;
-moz-border-left-colors: rgba(255, 255, 255, 0.2);
}
#identity-box[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
margin: -11px -10px -11px 0;
padding: 10px 12px 10px 4px;
border-top: 1px solid ThreeDDarkShadow;
@ -1827,6 +1834,9 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
-moz-border-right-colors: ThreeDShadow rgba(255, 255, 255, 0.4);
}
#identity-box:hover[chromedir="ltr"] > hbox {
-moz-border-left-colors: rgba(255, 255, 255, 0.4);
}
#identity-box:hover[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -50px;
-moz-border-left-colors: ThreeDDarkShadow rgba(255, 255, 255, 0.6);
}
@ -1835,14 +1845,14 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
background-position: 0 -120px;
color: white;
}
#identity-box.verifiedDomain[chromedir="ltr"] > hbox {
#identity-box.verifiedDomain[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -110px;
}
#identity-box.verifiedDomain:hover > hbox {
background-position: 0 -180px;
}
#identity-box.verifiedDomain:hover[chromedir="ltr"] > hbox {
#identity-box.verifiedDomain:hover[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -170px;
}
@ -1850,14 +1860,14 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
background-position: 0 -240px;
color: white;
}
#identity-box.verifiedIdentity[chromedir="ltr"] > hbox {
#identity-box.verifiedIdentity[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -230px;
}
#identity-box.verifiedIdentity:hover > hbox {
background-position: 0 -300px;
}
#identity-box.verifiedIdentity:hover[chromedir="ltr"] > hbox {
#identity-box.verifiedIdentity:hover[chromedir="ltr"]:-moz-system-metric(windows-default-theme) > hbox {
background-position: 0 -290px;
}
@ -1962,7 +1972,7 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
}
/* Bug 413060, comment 14: Match #identity-box's -moz-margin-start, less 1px */
#identity-popup[chromedir="ltr"] {
#identity-popup[chromedir="ltr"]:-moz-system-metric(windows-default-theme) {
-moz-margin-start: 3px;
}

View File

@ -2,6 +2,9 @@
min-height: 22px;
width: 6em;
min-width: 6em;
}
.searchbar-textbox:-moz-system-metric(windows-default-theme) {
-moz-appearance: none;
border-width: 1px;
-moz-border-top-colors: ThreeDShadow;