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/. */
5 /* ===== splitter.css ===================================================
6 == Styles used by the XUL splitter element.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
11 /* ::::: splitter (vertical) ::::: */
14 -moz-box-align: center;
15 -moz-box-pack: center;
19 background-color: #9C9CFF;
23 splitter[state="dragging"],
24 splitter:hover:active {
25 background-color: #FFCF00;
28 /* This takes margin away from tree header splitters, else they look ugly! */
29 splitter.tree-splitter {
33 splitter[state="collapsed"][collapse="before"],
34 splitter[state="collapsed"][substate="before"],
35 splitter[state="collapsed"][collapse="after"]:-moz-locale-dir(rtl),
36 splitter[state="collapsed"][substate="after"]:-moz-locale-dir(rtl) {
39 border-radius: 0 5px 5px 0;
42 splitter[state="collapsed"][collapse="after"],
43 splitter[state="collapsed"][substate="after"],
44 splitter[state="collapsed"][collapse="before"]:-moz-locale-dir(rtl),
45 splitter[state="collapsed"][substate="before"]:-moz-locale-dir(rtl) {
48 border-radius: 5px 0 0 5px;
51 splitter:-moz-lwtheme {
55 /* ::::: splitter (horizontal) ::::: */
57 splitter[orient="vertical"] {
64 splitter[orient="vertical"][state="collapsed"][collapse="before"],
65 splitter[orient="vertical"][state="collapsed"][substate="before"] {
68 border-radius: 0 0 5px 5px;
71 splitter[orient="vertical"][state="collapsed"][collapse="after"],
72 splitter[orient="vertical"][state="collapsed"][substate="after"] {
75 border-radius: 5px 5px 0 0;
78 splitter[disabled="true"] {
79 cursor: default !important;
82 /* ::::: splitter grippy ::::: */
87 border-top: 3px solid black;
88 border-bottom: 3px solid black;
91 background: #C09070 50% 50% no-repeat;
95 background-color: #FFCF00;
102 splitter[orient="vertical"] > grippy {
104 border-left: 3px solid black;
105 border-right: 3px solid black;
110 /* ..... normal state ..... */
112 /* vertical grippies */
113 splitter[collapse="before"] > grippy,
114 splitter[collapse="after"] > grippy:-moz-locale-dir(rtl) {
115 background-image: url("chrome://global/skin/splitter/grip-left.png");
118 splitter[collapse="after"] > grippy,
119 splitter[collapse="before"] > grippy:-moz-locale-dir(rtl) {
120 background-image: url("chrome://global/skin/splitter/grip-right.png");
123 /* horizontal grippies */
124 splitter[collapse="before"][orient="vertical"] > grippy {
125 background-image: url("chrome://global/skin/splitter/grip-top.png");
128 splitter[collapse="after"][orient="vertical"] > grippy {
129 background-image: url("chrome://global/skin/splitter/grip-bottom.png");
132 /* ..... collapsed state ..... */
134 /* vertical grippies */
135 splitter[collapse="before"][state="collapsed"] > grippy,
136 splitter[collapse="after"][state="collapsed"] > grippy:-moz-locale-dir(rtl) {
137 background-image: url("chrome://global/skin/splitter/grip-right.png");
140 splitter[collapse="after"][state="collapsed"] > grippy,
141 splitter[collapse="before"][state="collapsed"] > grippy:-moz-locale-dir(rtl) {
142 background-image: url("chrome://global/skin/splitter/grip-left.png");
145 /* horizontal grippies */
146 splitter[collapse="before"][state="collapsed"][orient="vertical"] > grippy {
147 background-image: url("chrome://global/skin/splitter/grip-bottom.png");
150 splitter[collapse="after"][state="collapsed"][orient="vertical"] > grippy {
151 background-image: url("chrome://global/skin/splitter/grip-top.png");