1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/osx/global/nativescrollbars.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,90 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.9 +@namespace html url("http://www.w3.org/1999/xhtml"); 1.10 + 1.11 +scrollbar { 1.12 + -moz-appearance: scrollbar; 1.13 + -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar); 1.14 + cursor: default; 1.15 + background-color: white; 1.16 + pointer-events: auto; 1.17 +} 1.18 + 1.19 +scrollbar[root="true"] { 1.20 + position: relative; 1.21 + z-index: 2147483647; /* largest positive value of a signed 32-bit integer */ 1.22 +} 1.23 + 1.24 +html|select[size]:not([size="0"]):not([size="1"]) > scrollbar, 1.25 +html|select[multiple] > scrollbar { 1.26 + -moz-appearance: scrollbar-small; 1.27 +} 1.28 + 1.29 +@media all and (-moz-overlay-scrollbars) { 1.30 + scrollbar:not([active="true"]), 1.31 + scrollbar[disabled="true"] { 1.32 + visibility: hidden; 1.33 + } 1.34 +} 1.35 + 1.36 +/* ..... track ..... */ 1.37 + 1.38 +slider { 1.39 + -moz-appearance: scrollbartrack-horizontal; 1.40 +} 1.41 + 1.42 +slider[orient="vertical"] { 1.43 + -moz-appearance: scrollbartrack-vertical; 1.44 +} 1.45 + 1.46 +/* ..... thumb ..... */ 1.47 + 1.48 +thumb { 1.49 + -moz-appearance: scrollbarthumb-horizontal; 1.50 +} 1.51 + 1.52 +thumb[orient="vertical"] { 1.53 + -moz-appearance: scrollbarthumb-vertical; 1.54 +} 1.55 + 1.56 +/* ..... increment ..... */ 1.57 + 1.58 +scrollbarbutton[type="increment"] { 1.59 + -moz-appearance: scrollbarbutton-right; 1.60 +} 1.61 + 1.62 +scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] { 1.63 + -moz-appearance: scrollbarbutton-down; 1.64 +} 1.65 + 1.66 +/* ..... decrement ..... */ 1.67 + 1.68 +scrollbarbutton[type="decrement"] { 1.69 + -moz-appearance: scrollbarbutton-left; 1.70 +} 1.71 + 1.72 +scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { 1.73 + -moz-appearance: scrollbarbutton-up; 1.74 +} 1.75 + 1.76 +/* ::::: square at the corner of two scrollbars ::::: */ 1.77 + 1.78 +scrollcorner { 1.79 + /* XXX -moz-appearance: scrollcorner; */ 1.80 + -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base); 1.81 + width: 16px; 1.82 + cursor: default; 1.83 + background-color: white; 1.84 +} 1.85 + 1.86 +/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */ 1.87 +@media print { 1.88 + html|div scrollbar { 1.89 + -moz-appearance: scrollbar; 1.90 + -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar); 1.91 + cursor: default; 1.92 + } 1.93 +}