Bug 1227734 - Rework how the top/bottom borders are managed in the search bar popup to avoid a blank search result entry when scrolling. r=florian

MozReview-Commit-ID: 7Bawrxm6kd7

--HG--
extra : rebase_source : e228f0fa86e348eafd9abaa7c1f799e5670fc23e
This commit is contained in:
Mark Banner 2016-10-27 18:03:29 +01:00
Родитель 61aedfd2ef
Коммит 9a01b3aa10
3 изменённых файлов: 81 добавлений и 12 удалений

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

@ -123,16 +123,39 @@ menuitem[cmd="cmd_clearhistory"][disabled] {
}
.search-panel-current-engine {
border-top: none !important;
-moz-box-align: center;
}
/**
* The borders of the various elements are specified as follows.
*
* The current engine always has a bottom border.
* The search results never have a border.
*
* When the search results are not collapsed:
* - The elements underneath the search results all have a top border.
*
* When the search results are collapsed:
* - The elements underneath the search results all have a bottom border, except
* the lowest one: search-setting-button.
*/
.search-panel-current-engine {
border-bottom: none;
border-top: none !important;
border-bottom: 1px solid var(--panel-separator-color) !important;
}
.search-panel-tree {
border-top: 1px solid var(--panel-separator-color) !important;
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-header,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:first-of-type {
border-top: none !important;
}
.search-panel-tree[collapsed=true] + .search-one-offs > .searchbar-engine-one-off-item,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-current-input,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:last-of-type {
border-bottom: 1px solid var(--panel-separator-color) !important;
}
.search-panel-header {

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

@ -112,16 +112,39 @@
}
.search-panel-current-engine {
border-top: none !important;
border-radius: 4px 4px 0 0;
}
/**
* The borders of the various elements are specified as follows.
*
* The current engine always has a bottom border.
* The search results never have a border.
*
* When the search results are not collapsed:
* - The elements underneath the search results all have a top border.
*
* When the search results are collapsed:
* - The elements underneath the search results all have a bottom border, except
* the lowest one: search-setting-button.
*/
.search-panel-current-engine {
border-bottom: none;
border-top: none !important;
border-bottom: 1px solid var(--panel-separator-color);
}
.search-panel-tree {
border-top: 1px solid var(--panel-separator-color) !important;
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-header,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:first-of-type {
border-top: none;
}
.search-panel-tree[collapsed=true] + .search-one-offs > .searchbar-engine-one-off-item,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-current-input,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:last-of-type {
border-bottom: 1px solid var(--panel-separator-color);
}
.search-panel-header {

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

@ -118,16 +118,39 @@
}
.search-panel-current-engine {
border-top: none !important;
-moz-box-align: center;
}
/**
* The borders of the various elements are specified as follows.
*
* The current engine always has a bottom border.
* The search results never have a border.
*
* When the search results are not collapsed:
* - The elements underneath the search results all have a top border.
*
* When the search results are collapsed:
* - The elements underneath the search results all have a bottom border, except
* the lowest one: search-setting-button.
*/
.search-panel-current-engine {
border-bottom: none;
border-top: none !important;
border-bottom: 1px solid var(--panel-separator-color) !important;
}
.search-panel-tree {
border-top: 1px solid var(--panel-separator-color) !important;
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-header,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:first-of-type {
border-top: none !important;
}
.search-panel-tree[collapsed=true] + .search-one-offs > .searchbar-engine-one-off-item,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-current-input,
.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:last-of-type {
border-bottom: 1px solid var(--panel-separator-color) !important;
}
.search-panel-header {