Bug 1369415 - Share bookmarks toolbar styling to remove cross-platform inconsistencies, adjust bottom padding on Mac to compensate border. r=johannh

MozReview-Commit-ID: CTMPI5Yp0nJ

--HG--
extra : rebase_source : 0dd245de9aa2be3d58177b932e30fdd2c7f4fa41
This commit is contained in:
Dão Gottwald 2017-08-09 13:22:02 +02:00
Родитель 40df8b18af
Коммит 407f690fc8
4 изменённых файлов: 17 добавлений и 60 удалений

Просмотреть файл

@ -75,19 +75,6 @@
border-style: none;
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
overflow: -moz-hidden-unscrollable;
max-height: 4em;
transition: min-height 170ms ease-out, max-height 170ms ease-out;
padding: 1px 4px;
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
min-height: 0.1px;
max-height: 0;
transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
}
#TabsToolbar:not([collapsed="true"]) + #nav-bar {
border-top: 1px solid var(--tabs-border) !important;
background-clip: padding-box;
@ -101,14 +88,6 @@
padding-bottom: 2px;
}
/* This only has an effect when this element is placed on the bookmarks toolbar.
* It's 30px to make sure buttons with 18px icons fit along with the default 16px
* icons, without changing the size of the toolbar.
*/
#personal-bookmarks {
min-height: 30px;
}
#browser-bottombox {
/* opaque for layers optimization */
background-color: -moz-Dialog;

Просмотреть файл

@ -142,15 +142,8 @@
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
overflow: -moz-hidden-unscrollable;
max-height: 4em;
transition: min-height 170ms ease-out, max-height 170ms ease-out;
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
min-height: 0.1px;
max-height: 0;
transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
/* add extra padding to compensate the bottom border */
padding-bottom: 2px;
}
/* Draw the bottom border of the tabs toolbar when it's not using
@ -190,15 +183,6 @@
position: relative;
}
#PersonalToolbar {
padding: 0 4px 4px;
}
#PersonalToolbar:not([collapsed=true]) {
/* 4px padding ^ plus 19px personal-bookmarks (see below) */
min-height: 23px;
}
#PersonalToolbar:not(:-moz-lwtheme):-moz-window-inactive,
#nav-bar:not(:-moz-lwtheme):-moz-window-inactive {
background-color: -moz-mac-chrome-inactive;
@ -206,10 +190,6 @@
/* ----- BOOKMARK TOOLBAR ----- */
#personal-bookmarks {
min-height: 19px; /* 16px button height + 2px padding + 1px margin-bottom */
}
#nav-bar-customization-target > #wrapper-personal-bookmarks > #personal-bookmarks {
min-height: 32px;
-moz-box-align: center;

Просмотреть файл

@ -16,6 +16,21 @@
}
%endif
/* Bookmark toolbar */
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
overflow: -moz-hidden-unscrollable;
max-height: 4em;
transition: min-height 170ms ease-out, max-height 170ms ease-out;
padding: 0 4px 1px;
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
min-height: 0.1px;
max-height: 0;
transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
}
/* Go button */
.urlbar-go-button {
padding: 0 3px;

Просмотреть файл

@ -112,19 +112,6 @@
background-clip: padding-box;
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
overflow: -moz-hidden-unscrollable;
max-height: 4em;
transition: min-height 170ms ease-out, max-height 170ms ease-out;
padding: 0 5px;
}
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
min-height: 0.1px;
max-height: 0;
transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
}
#toolbar-menubar,
#TabsToolbar {
color: var(--titlebar-text-color);
@ -244,10 +231,6 @@
}
}
#personal-bookmarks {
min-height: 24px;
}
#print-preview-toolbar:not(:-moz-lwtheme) {
-moz-appearance: toolbox;
}