Bug 1398103 - Adjust toolbar and toolbar button spacing to match photon spec. r=daleharvey

MozReview-Commit-ID: 4Pcqahw2Mwu

--HG--
extra : rebase_source : 72cb970d7e9c50f17fd829c330e0604842c2c602
This commit is contained in:
Dão Gottwald 2017-11-01 11:17:50 +01:00
parent 76d6674aca
commit 3ccaa127b0
3 changed files with 14 additions and 16 deletions

View File

@ -56,6 +56,10 @@
border-top: none;
}
#navigator-toolbox > toolbar {
padding: 0;
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
background-color: var(--toolbar-bgcolor);
background-image: var(--toolbar-bgimage);
@ -70,11 +74,6 @@
position: relative;
}
#nav-bar {
padding-top: 2px;
padding-bottom: 2px;
}
#browser-bottombox {
/* opaque for layers optimization */
background-color: -moz-Dialog;
@ -537,7 +536,6 @@ html|span.ac-emphasize-text-url {
#TabsToolbar {
min-height: 0;
padding: 0;
}
#TabsToolbar:not(:-moz-lwtheme) {

View File

@ -5,6 +5,7 @@
:root {
--toolbarbutton-hover-transition-duration: 150ms;
--toolbarbutton-outer-padding: 2px;
--toolbarbutton-inner-padding: 6px;
/* These hover and active colors should work on both light and dark
@ -25,7 +26,7 @@
}
:root[uidensity=compact] {
--toolbarbutton-inner-padding: 5px;
--toolbarbutton-outer-padding: 1px;
}
:root[uidensity=touch] {
@ -100,11 +101,11 @@ toolbar[brighttext] {
toolbar .toolbarbutton-1 {
-moz-appearance: none;
margin: 0;
padding: 0 2px;
padding: 0 var(--toolbarbutton-outer-padding);
-moz-box-pack: center;
}
#PanelUI-menu-button {
:root:not([uidensity=compact]) #PanelUI-menu-button {
padding-inline-start: 5px;
padding-inline-end: 5px;
}
@ -200,7 +201,7 @@ toolbar .toolbarbutton-1[checked]:not(:active):hover > .toolbarbutton-icon {
:root:not([uidensity=compact]) #back-button {
padding-top: 3px;
padding-bottom: 3px;
padding-inline-start: 5px !important;
padding-inline-start: 3px;
padding-inline-end: 0 !important;
position: relative !important;
z-index: 1 !important;
@ -221,8 +222,8 @@ toolbar .toolbarbutton-1[checked]:not(:active):hover > .toolbarbutton-icon {
background-clip: padding-box;
border: 1px solid var(--backbutton-border-color);
border-radius: 10000px;
width: 32px;
padding: 7px;
width: 34px;
padding: 8px;
transition-property: box-shadow;
transition-duration: var(--toolbarbutton-hover-transition-duration);
}
@ -230,6 +231,7 @@ toolbar .toolbarbutton-1[checked]:not(:active):hover > .toolbarbutton-icon {
:root[uidensity=touch] #back-button {
padding-top: 1px;
padding-bottom: 1px;
padding-inline-start: 1px;
}
:root[uidensity=touch] #back-button > .toolbarbutton-icon {

View File

@ -7,12 +7,10 @@
if not debug and e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): FAIL
[vh length applied to border-top-width]
expected:
if os != "linux": FAIL
expected: FAIL
[vmin length applied to border-top-width]
expected:
if os != "linux": FAIL
expected: FAIL
[vmax length applied to border-top-width]
expected: