Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1151925 - merge pull request #29384 from sfoster:bidi-urlbar-bug-…
Browse files Browse the repository at this point in the history
…1151925 to mozilla-b2g:master
  • Loading branch information
mozilla-autolander-deprecated committed Apr 10, 2015
2 parents 89ffba6 + 8e3ceb7 commit 2e3668c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
4 changes: 3 additions & 1 deletion apps/system/js/app_chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@
data-l10n-id="forward-button" disabled></button>
<div class="urlbar js-chrome-ssl-information">
<span class="pb-icon"></span>
<div class="title chrome-ssl-indicator"></div>
<div class="chrome-ssl-indicator chrome-title-container">
<span class="title" dir="auto"></span>
</div>
<button type="button" class="reload-button"
data-l10n-id="reload-button" disabled></button>
<button type="button" class="stop-button"
Expand Down
2 changes: 1 addition & 1 deletion apps/system/js/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
// https://github.com/jshint/jshint/issues/2000
/* jshint -W033 */
return Tagged.escapeHTML `<div class="titles">
<h1 id="${this.titleId}" class="title">${this.title}</h1>
<h1 id="${this.titleId}" dir="auto" class="title">${this.title}</h1>
<p class="subtitle">
<span class="subtitle-url">${this.subTitle}</span>
</p>
Expand Down
22 changes: 14 additions & 8 deletions apps/system/style/chrome/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,27 @@
background-color: rgba(204, 204, 204, 0.2);
}

.chrome-combined .title {
.chrome-combined .chrome-title-container {
width: calc(100% - 3.2rem);
padding-top: 0;
padding-bottom: 0;
-moz-padding-start: 1.45rem;
-moz-padding-end: 0.8rem;
box-sizing: padding-box;
overflow: hidden;
white-space: nowrap;
font-weight: 300;
font-size: 1.8rem;
float: none;
background-color: rgba(204,204,204,0.2);
border-radius: 1.8rem;
text-overflow: ellipsis;
}

.chrome-combined .title {
overflow: hidden;
white-space: nowrap;
font-weight: 300;
font-size: 1.8rem;
font-style: italic;
text-overflow: ellipsis;
display: block;
}

.search-app .chrome.maximized .controls .urlbar:after {
Expand All @@ -180,11 +185,11 @@
background-position: center right;
}

.appWindow.light .chrome-combined:not(.maximized) .title {
.appWindow.light .chrome-combined:not(.maximized) .chrome-title-container {
background-color: rgba(204,204,204,0.4);
}

.chrome-combined.maximized .title {
.chrome-combined.maximized .chrome-title-container {
background-color: transparent;
}

Expand Down Expand Up @@ -243,7 +248,8 @@


/* Private browser icon in rocketbar */
.appWindow.private > .chrome.maximized .title {
.appWindow.private > .chrome-plain.maximized .title,
.appWindow.private > .chrome-combined.maximized .chrome-title-container {
-moz-padding-start: 4rem;
}

Expand Down

0 comments on commit 2e3668c

Please sign in to comment.