Bug 1336072 - Avoid setting position:absolute on #newtab-grid since it breaks rearranging and deleting tiles. r=Gijs

MozReview-Commit-ID: FTbIP28uD5k

--HG--
extra : rebase_source : 273572ca940e654a1ca963992184eb8b02295b65
This commit is contained in:
Dão Gottwald 2017-02-02 13:49:29 +01:00
Родитель 6e319b00cd
Коммит c88e926e7c
1 изменённых файлов: 3 добавлений и 11 удалений

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

@ -100,14 +100,6 @@
}
/* GRID */
body.compact #newtab-grid {
/* Allow #topsites-heading to use position:absolute such that it doesn't
affect how many cells we can fit into the grid. */
position: relative;
padding-top: 1em;
margin-top: -1em;
}
#topsites-heading {
color: #7A7A7A;
font-size: 1em;
@ -115,9 +107,9 @@ body.compact #newtab-grid {
/* Position the heading such that it doesn't affect how many cells we
can fit into the grid. */
position: absolute;
top: 0;
/* The horizontal margin aligns the heading with the cells. */
margin: 0 10px;
/* The top margin moves the heading away from the grid.
The horizontal margin aligns the heading with the cells. */
margin: -1em 10px 0;
}
/* CELLS */