Bug 1012811 - Color swatch background doesn't stay in the right place while scrolling. r=bgrins

This commit is contained in:
Tim Nguyen 2014-05-19 15:21:25 -05:00
Родитель b32259074c
Коммит b447152353
2 изменённых файлов: 11 добавлений и 5 удалений

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

@ -168,7 +168,7 @@ body {
.link:hover { .link:hover {
text-decoration: underline; text-decoration: underline;
} }
.computedview-colorswatch { .computedview-colorswatch {
border-radius: 50%; border-radius: 50%;
@ -177,6 +177,7 @@ body {
vertical-align: text-top; vertical-align: text-top;
-moz-margin-end: 5px; -moz-margin-end: 5px;
display: inline-block; display: inline-block;
position: relative;
} }
.computedview-colorswatch::before { .computedview-colorswatch::before {
@ -188,7 +189,9 @@ body {
background-position: 0 0, 6px 6px; background-position: 0 0, 6px 6px;
position: absolute; position: absolute;
border-radius: 50%; border-radius: 50%;
width: 1em; top: 0;
height: 1em; left: 0;
right: 0;
bottom: 0;
z-index: -1; z-index: -1;
} }

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

@ -119,6 +119,7 @@
vertical-align: text-top; vertical-align: text-top;
-moz-margin-end: 5px; -moz-margin-end: 5px;
display: inline-block; display: inline-block;
position: relative;
} }
.ruleview-colorswatch::before { .ruleview-colorswatch::before {
@ -130,8 +131,10 @@
background-position: 0 0, 6px 6px; background-position: 0 0, 6px 6px;
position: absolute; position: absolute;
border-radius: 50%; border-radius: 50%;
width: 1em; top: 0;
height: 1em; left: 0;
right: 0;
bottom: 0;
z-index: -1; z-index: -1;
} }