elbaitemoon

Elbaite theme for Pale Moon
Log | Files | Refs

scrollbars.css (2175B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2  * License, v. 2.0. If a copy of the MPL was not distributed with this
      3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
      6 @namespace html url("http://www.w3.org/1999/xhtml");
      7 
      8 scrollbar {
      9   -moz-appearance: scrollbar;
     10   -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar);
     11   cursor: default;
     12   background-color: black;
     13 }
     14 
     15 scrollbar[root="true"] {
     16   position: relative;
     17   z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
     18 }
     19 
     20 html|select[size]:not([size="0"]):not([size="1"]) > scrollbar,
     21 html|select[multiple] > scrollbar {
     22   -moz-appearance: scrollbar-small;
     23 }
     24 
     25 @media all and (-moz-overlay-scrollbars) {
     26   scrollbar:not([active="true"]),
     27   scrollbar[disabled="true"] {
     28     visibility: hidden;
     29   }
     30 }
     31 
     32 /* ..... track ..... */
     33 
     34 slider {
     35   -moz-appearance: scrollbartrack-horizontal;
     36 }
     37 
     38 slider[orient="vertical"] {
     39   -moz-appearance: scrollbartrack-vertical;
     40 }
     41 
     42 /* ..... thumb ..... */
     43 
     44 thumb {
     45   -moz-appearance: scrollbarthumb-horizontal;
     46 }
     47 
     48 thumb[orient="vertical"] {
     49   -moz-appearance: scrollbarthumb-vertical;
     50 }
     51 
     52 /* ..... increment ..... */
     53 
     54 scrollbarbutton[type="increment"] {
     55   -moz-appearance: scrollbarbutton-right;
     56 }
     57 
     58 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
     59   -moz-appearance: scrollbarbutton-down;
     60 }
     61 
     62 /* ..... decrement ..... */
     63 
     64 scrollbarbutton[type="decrement"] {
     65   -moz-appearance: scrollbarbutton-left;
     66 }
     67 
     68 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
     69   -moz-appearance: scrollbarbutton-up;
     70 }
     71 
     72 /* ::::: square at the corner of two scrollbars ::::: */
     73 
     74 scrollcorner {
     75   /* XXX -moz-appearance: scrollcorner; */
     76   -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
     77   width: 16px;
     78   cursor: default;
     79   background-color: black;
     80 }
     81 
     82 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
     83 @media print {
     84   html|div scrollbar {
     85     -moz-appearance: scrollbar;
     86     -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar);
     87     cursor: default;
     88   }
     89 }