michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: @namespace html url("http://www.w3.org/1999/xhtml"); michael@0: michael@0: scrollbar { michael@0: -moz-appearance: scrollbar; michael@0: -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar); michael@0: cursor: default; michael@0: background-color: white; michael@0: pointer-events: auto; michael@0: } michael@0: michael@0: scrollbar[root="true"] { michael@0: position: relative; michael@0: z-index: 2147483647; /* largest positive value of a signed 32-bit integer */ michael@0: } michael@0: michael@0: html|select[size]:not([size="0"]):not([size="1"]) > scrollbar, michael@0: html|select[multiple] > scrollbar { michael@0: -moz-appearance: scrollbar-small; michael@0: } michael@0: michael@0: @media all and (-moz-overlay-scrollbars) { michael@0: scrollbar:not([active="true"]), michael@0: scrollbar[disabled="true"] { michael@0: visibility: hidden; michael@0: } michael@0: } michael@0: michael@0: /* ..... track ..... */ michael@0: michael@0: slider { michael@0: -moz-appearance: scrollbartrack-horizontal; michael@0: } michael@0: michael@0: slider[orient="vertical"] { michael@0: -moz-appearance: scrollbartrack-vertical; michael@0: } michael@0: michael@0: /* ..... thumb ..... */ michael@0: michael@0: thumb { michael@0: -moz-appearance: scrollbarthumb-horizontal; michael@0: } michael@0: michael@0: thumb[orient="vertical"] { michael@0: -moz-appearance: scrollbarthumb-vertical; michael@0: } michael@0: michael@0: /* ..... increment ..... */ michael@0: michael@0: scrollbarbutton[type="increment"] { michael@0: -moz-appearance: scrollbarbutton-right; michael@0: } michael@0: michael@0: scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] { michael@0: -moz-appearance: scrollbarbutton-down; michael@0: } michael@0: michael@0: /* ..... decrement ..... */ michael@0: michael@0: scrollbarbutton[type="decrement"] { michael@0: -moz-appearance: scrollbarbutton-left; michael@0: } michael@0: michael@0: scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { michael@0: -moz-appearance: scrollbarbutton-up; michael@0: } michael@0: michael@0: /* ::::: square at the corner of two scrollbars ::::: */ michael@0: michael@0: scrollcorner { michael@0: /* XXX -moz-appearance: scrollcorner; */ michael@0: -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base); michael@0: width: 16px; michael@0: cursor: default; michael@0: background-color: white; michael@0: } michael@0: michael@0: /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */ michael@0: @media print { michael@0: html|div scrollbar { michael@0: -moz-appearance: scrollbar; michael@0: -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar); michael@0: cursor: default; michael@0: } michael@0: }