зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121723 - change width and margin of tab separators for devedition to prevent tab jittering in customize mode;r=MattN
This commit is contained in:
Родитель
7e82140230
Коммит
ff610ddba5
|
@ -273,13 +273,23 @@ searchbar:not([oneoffui]) .search-go-button {
|
|||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* Make the tab splitter 1px wide with a solid background. */
|
||||
#tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after,
|
||||
.tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
|
||||
#tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
|
||||
background-image: linear-gradient(to top, var(--tab-separator-color), var(--tab-separator-color));
|
||||
background-position: 1px 0;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 1px 100%;
|
||||
background: var(--tab-separator-color);
|
||||
width: 1px;
|
||||
-moz-margin-start: 0;
|
||||
-moz-margin-end: -1px;
|
||||
}
|
||||
|
||||
/* For the last tab separator, use margin-start of -1px to prevent jittering
|
||||
due to the ::after element causing the width of the tab to extend, which
|
||||
causes an overflow and makes it disappear, which removes the overflow and
|
||||
causes it to reappear, etc, etc. */
|
||||
#tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
|
||||
-moz-margin-start: -1px;
|
||||
-moz-margin-end: 0;
|
||||
}
|
||||
|
||||
.tabbrowser-arrowscrollbox > .scrollbutton-down,
|
||||
|
|
|
@ -334,14 +334,6 @@
|
|||
width: 3px;
|
||||
}
|
||||
|
||||
/* Handle a case where the last separator in a customized tab bar with a
|
||||
separated new tab button causes the width of the tab to extend and causes
|
||||
jittering with a small tab curve width (Bug 1111091). */
|
||||
#TabsToolbar[currentset]:not([currentset*="tabbrowser-tabs,new-tab-button"]) #tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
|
||||
-moz-margin-start: -3px;
|
||||
-moz-margin-end: 0;
|
||||
}
|
||||
|
||||
/* New tab button */
|
||||
|
||||
.tabs-newtab-button {
|
||||
|
|
Загрузка…
Ссылка в новой задаче