зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1094830 - Fix an off by one pixel error causing the new tab button to shake once it reaches the end of the window;r=MattN
This commit is contained in:
Родитель
7dfba718bf
Коммит
13275dc9da
|
@ -302,16 +302,21 @@ window:not([chromehidden~="toolbar"]) #urlbar-wrapper {
|
||||||
box-shadow: var(--tab-selection-box-shadow);
|
box-shadow: var(--tab-selection-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* New tab buttons */
|
/* Don't need space for the tab curves (66px - 30px) */
|
||||||
#TabsToolbar > #new-tab-button,
|
|
||||||
.tabs-newtab-button {
|
.tabs-newtab-button {
|
||||||
background-image: none !important;
|
width: 36px;
|
||||||
margin: 0 !important;
|
}
|
||||||
width: 35px !important;
|
|
||||||
|
/* Override @tabToolbarNavbarOverlap@ */
|
||||||
|
#TabsToolbar .toolbarbutton-1,
|
||||||
|
.tabbrowser-arrowscrollbox > .scrollbutton-up,
|
||||||
|
.tabbrowser-arrowscrollbox > .scrollbutton-down {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#TabsToolbar > #new-tab-button:hover,
|
#TabsToolbar > #new-tab-button:hover,
|
||||||
.tabs-newtab-button:hover {
|
.tabs-newtab-button:hover {
|
||||||
/* Important needed because !important is used in browser.css */
|
/* Important needed because !important is used in browser.css */
|
||||||
background-color: var(--tab-hover-background-color) !important;
|
background-color: var(--tab-hover-background-color) !important;
|
||||||
|
background-image: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,5 +319,5 @@
|
||||||
/* New tab button */
|
/* New tab button */
|
||||||
|
|
||||||
.tabs-newtab-button {
|
.tabs-newtab-button {
|
||||||
width: 66px;
|
width: calc(36px + @tabCurveWidth@);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче