mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 17:19:38 +02:00
42 lines
1.3 KiB
CSS
42 lines
1.3 KiB
CSS
#uBlock-legacy-button {
|
|
list-style-image: url('../img/browsericons/icon-large.svg');
|
|
}
|
|
#uBlock-legacy-button.off {
|
|
list-style-image: url('../img/browsericons/icon-large-off.svg');
|
|
}
|
|
|
|
toolbar[iconsize="small"] #uBlock-legacy-button {
|
|
list-style-image: url('../img/browsericons/icon16.svg');
|
|
}
|
|
toolbar[iconsize="small"] #uBlock-legacy-button.off {
|
|
list-style-image: url('../img/browsericons/icon16-off.svg');
|
|
}
|
|
#uBlock-legacy-button[badge]::before {
|
|
position: fixed;
|
|
margin-top: -2px;
|
|
padding: 1px 2px;
|
|
font-size: 9px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
background: #666;
|
|
content: attr(badge);
|
|
}
|
|
/* This hack required because if the before content changes it de-pops the popup (without firing any events). So just hide it instead. Note, can't actually *hide* it, or the same thing happens. '*/
|
|
#uBlock-legacy-button[badge=""]::before {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Override off state when in palette */
|
|
toolbarpaletteitem #uBlock-legacy-button.off {
|
|
list-style-image: url('../img/browsericons/icon-large.svg');
|
|
}
|
|
|
|
/* Override badge when in palette */
|
|
toolbarpaletteitem #uBlock-legacy-button[badge]::before {
|
|
content: none;
|
|
}
|
|
|
|
/* Prevent pale moon from showing the arrow underneath the button */
|
|
#uBlock-legacy-button .toolbarbutton-menu-dropmarker {
|
|
-moz-box-orient: horizontal;
|
|
} |