зеркало из https://github.com/mozilla/gecko-dev.git
Scrollbar skinnability work (remove essential behaviour from skin), convert lock button from titledbutton to statusbarpanel
This commit is contained in:
Родитель
cd14323de5
Коммит
547fa97503
|
@ -6,37 +6,16 @@ scrollbar {
|
||||||
behavior: url("resource:/chrome/xulBindings.xml#scrollbar");
|
behavior: url("resource:/chrome/xulBindings.xml#scrollbar");
|
||||||
}
|
}
|
||||||
|
|
||||||
slider {
|
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
scrollbarbutton {
|
|
||||||
display: inline;
|
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
scrollbar[value="hidden"] {
|
|
||||||
visibility: hidden;
|
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/********* XP Scrollbar *********/
|
/********* XP Scrollbar *********/
|
||||||
|
|
||||||
thumb {
|
thumb {
|
||||||
behavior: url(resource:/chrome/xulBindings.xml#thumb);
|
behavior: url(resource:/chrome/xulBindings.xml#thumb);
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
background-color: #CCCCCC;
|
background-color: #CCCCCC;
|
||||||
border: 1px outset #CCCCCC;
|
border: 1px outset #CCCCCC;
|
||||||
list-style-image: url("chrome://global/skin/scroll-thumb-horiz.gif")
|
list-style-image: url("chrome://global/skin/scroll-thumb-horiz.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
thumb[disabled="true"] {
|
thumb[disabled="true"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-thumb-horiz-disabled.gif");
|
list-style-image: url("chrome://global/skin/scroll-thumb-horiz-disabled.gif");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,8 +24,6 @@ thumb[align="vertical"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbarbutton {
|
scrollbarbutton {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
||||||
|
@ -58,8 +35,6 @@ scrollbarbutton {
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbarbutton:active {
|
scrollbarbutton:active {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
border-style: inset;
|
border-style: inset;
|
||||||
|
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
|
@ -69,63 +44,43 @@ scrollbarbutton:active {
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbarbutton[type="decrement"] {
|
scrollbarbutton[type="decrement"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-left.gif")
|
list-style-image: url("chrome://global/skin/scroll-left.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbarbutton[type="decrement"][disabled="true"] {
|
scrollbarbutton[type="decrement"][disabled="true"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-left-disabled.gif")
|
list-style-image: url("chrome://global/skin/scroll-left-disabled.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbarbutton[type="increment"] {
|
scrollbarbutton[type="increment"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-right.gif")
|
list-style-image: url("chrome://global/skin/scroll-right.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
scrollbarbutton[type="increment"][disabled="true"] {
|
scrollbarbutton[type="increment"][disabled="true"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-right-disabled.gif")
|
list-style-image: url("chrome://global/skin/scroll-right-disabled.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
scrollbar[align="vertical"] scrollbarbutton[type="decrement"] {
|
scrollbar[align="vertical"] scrollbarbutton[type="decrement"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-up.gif")
|
list-style-image: url("chrome://global/skin/scroll-up.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbar[align="vertical"] scrollbarbutton[type="decrement"][disabled="true"] {
|
scrollbar[align="vertical"] scrollbarbutton[type="decrement"][disabled="true"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-up-disabled.gif")
|
list-style-image: url("chrome://global/skin/scroll-up-disabled.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbar[align="vertical"] scrollbarbutton[type="increment"] {
|
scrollbar[align="vertical"] scrollbarbutton[type="increment"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-down.gif")
|
list-style-image: url("chrome://global/skin/scroll-down.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollbar[align="vertical"] scrollbarbutton[type="increment"][disabled="true"] {
|
scrollbar[align="vertical"] scrollbarbutton[type="increment"][disabled="true"] {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
list-style-image: url("chrome://global/skin/scroll-down-disabled.gif")
|
list-style-image: url("chrome://global/skin/scroll-down-disabled.gif")
|
||||||
}
|
}
|
||||||
|
|
||||||
slider[align="vertical"] thumb:active {
|
slider[align="vertical"] thumb:active {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
background-color: #CCCCCC;
|
background-color: #CCCCCC;
|
||||||
}
|
}
|
||||||
|
|
||||||
slider {
|
slider {
|
||||||
user-focus: ignore;
|
|
||||||
user-select: none;
|
|
||||||
background-color: #999999;
|
background-color: #999999;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
titledbutton#security-button {
|
#security-button
|
||||||
list-style-image:url("chrome://navigator/skin/unlock.gif");
|
{
|
||||||
}
|
list-style-image:url("chrome://navigator/skin/unlock.gif");
|
||||||
|
}
|
||||||
|
|
||||||
titledbutton#security-button[level="high"] {
|
#security-button[level="high"]
|
||||||
|
{
|
||||||
list-style-image:url("chrome://navigator/skin/lock.gif");
|
list-style-image:url("chrome://navigator/skin/lock.gif");
|
||||||
}
|
}
|
||||||
|
|
||||||
titledbutton#security-button[level="low"] {
|
#security-button[level="low"]
|
||||||
|
{
|
||||||
list-style-image:url("chrome://navigator/skin/lock.gif");
|
list-style-image:url("chrome://navigator/skin/lock.gif");
|
||||||
}
|
}
|
||||||
|
|
||||||
titledbutton#security-button[level="broken"] {
|
#security-button[level="broken"]
|
||||||
|
{
|
||||||
list-style-image:url("chrome://navigator/skin/broken.gif");
|
list-style-image:url("chrome://navigator/skin/broken.gif");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче