openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.29k stars 299 forks source link

scroll bar themes are not working #81

Closed super-lurker closed 7 years ago

super-lurker commented 7 years ago
/* AGENT_SHEET */
html scrollbarbutton[sbattr="scrollbar-up-top"],
html scrollbarbutton[sbattr="scrollbar-down-top"],
html scrollbarbutton[sbattr="scrollbar-up-bottom"],
html scrollbarbutton[sbattr="scrollbar-down-bottom"] {
    -moz-appearance: none !important;
    display: none !important;
}
html > scrollbar thumb {
    position: relative !important;
    -moz-appearance: none !important;
    background: rgba(255,255,255,0) !important;
    border: 0 !important;
    background-image: -moz-linear-gradient(left , rgba(255,255,255,0) 85%, rgb(94, 94, 94) 57%) !important;

}

html > scrollbar thumb:hover, html > scrollbar thumb:active {
    background-position:center !important; 
    background-image: -moz-linear-gradient(left , rgba(255,255,255,0) 85%, rgb(94, 94, 94) 57%) !important;
}

html > scrollbar[orient="vertical"],
html > scrollbar[orient="horizontal"] {
    padding: 0px !important;
}

html > scrollbar {
    -moz-appearance: none !important;
    background: none !important;
    position: relative !important;
    z-index: 9999 !important;
}

html > scrollbar[orient="vertical"] {
    margin-left: -20px !important;
}
html > scrollbar[orient="horizontal"] {
    margin-top: -5px !important;

}

that's my own theme, also tried installing other themes with no luck. works with stylish tho thanks

tophf commented 7 years ago

Stylus is a WebExtension which doesn't yet have an API in Firefox to allow customization of browser UI. In other words none of such styles will work. There's nothing we can do about it.

tophf commented 7 years ago

Try using an additional addon for styling the browser like https://github.com/Cauterite/firefox-userchrome-addon

super-lurker commented 7 years ago

oh my, so this is the future of firefox, I don't like it thanks anyway