Skip to content

Commit

Permalink
Style identity information contextual dialog on XP. b=414698 r=gavin …
Browse files Browse the repository at this point in the history
…ui-r+a=beltzner Significant portions of the patch are from [email protected]
  • Loading branch information
johnath committed Apr 16, 2008
1 parent 0332fbf commit 8659c0b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
3 changes: 2 additions & 1 deletion browser/base/content/browser.xul
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@
<!-- Popup for site identity information -->
<panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
onpopuphidden="focusAndSelectUrlBar();" norestorefocus="true">
onpopuphidden="focusAndSelectUrlBar();" norestorefocus="true"
chromedir="&locale.dir;">
<hbox id="identity-popup-container" align="top">
<image id="identity-popup-icon"/>
<vbox id="identity-popup-content-box">
Expand Down
5 changes: 5 additions & 0 deletions browser/themes/winstripe/browser/browser-aero.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
-moz-border-radius-topleft: 14px;
-moz-border-radius-bottomleft: 14px;
}

/* Match the curvature of the #identity-box for LTR locates (no curvature on RTL)*/
#identity-popup[chromedir="ltr"] {
margin-left: 6px;
}
51 changes: 41 additions & 10 deletions browser/themes/winstripe/browser/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -1859,29 +1859,37 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
#identity-popup-encryption-label {
white-space: pre-wrap;
color: black;
padding-left: 15px;
-moz-padding-start: 15px;
margin: 2px 0 4px;
}

#identity-popup-content-box > label {
white-space: pre-wrap;
padding-left: 15px;
-moz-padding-start: 15px;
margin: 0;
}

#identity-popup-content-host ,
#identity-popup-content-owner {
font-weight: bold;
max-width: 300px;
#identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
font-size: 1.2em;
}

#identity-popup-content-host ,
#identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
font-size: 140%;
#identity-popup-content-host {
margin-top: 3px;
margin-bottom: 5px;
font-weight: bold;
max-width: 300px;
}

#identity-popup-content-owner {
margin-top: 4px;
margin-bottom: 0 !important;
font-weight: bold;
max-width: 300px;
}

.verifiedDomain > #identity-popup-content-owner {
font-weight: normal;
}

#identity-popup-content-verifier {
Expand All @@ -1891,18 +1899,41 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption ,
#identity-popup-content-box.verifiedDomain > #identity-popup-encryption {
margin-top: 10px;
margin-left: -18px;
margin-left: -24px;
}

#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon ,
#identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
list-style-image: url("chrome://browser/skin/Secure24.png");
}

#identity-popup-more-info-button {
margin-top: 6px;
-moz-margin-end: 1px;
}

/* Popup Bounding Box */
#identity-popup {
border: 1px solid;
-moz-border-radius: 0px;
-moz-border-bottom-colors: ThreeDShadow;
-moz-border-top-colors: ThreeDShadow;
-moz-border-left-colors: ThreeDShadow;
-moz-border-right-colors: ThreeDShadow;
margin-top: 1px;
background-color: Menu;
color: MenuText;
}

/* Match the curvature of the #identity-box for LTR locates (no curvature on RTL)*/
#identity-popup[chromedir="ltr"] {
margin-left: 4px;
}

#identity-popup-container {
background-image: none;
background-color: white;
background-color: Menu;
color: MenuText;
min-width: 280px;
padding: 10px;
}
Expand Down

0 comments on commit 8659c0b

Please sign in to comment.