tweaks for making devtools look nicer
[themes.git] / LCARStrek / global / splitter.css
CommitLineData
9099c61d
RK
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/. */
351107c9 4
b1eaa419 5/* ===== splitter.css ===================================================
6 == Styles used by the XUL splitter element.
7 ======================================================================= */
8
f98e9249
RK
9@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10
b1eaa419 11/* ::::: splitter (vertical) ::::: */
12
13splitter {
14 -moz-box-align: center;
15 -moz-box-pack: center;
6046f027 16 cursor: ew-resize;
b1eaa419 17 border: none;
b1eaa419 18 min-width: 6px;
19 background-color: #9C9CFF;
bbb0b4bf 20 margin: 0 3px;
b1eaa419 21}
22
23splitter[state="dragging"],
24splitter:hover:active {
25 background-color: #FFCF00;
26}
27
bbb0b4bf 28/* This takes margin away from tree header splitters, else they look ugly! */
b1eaa419 29splitter.tree-splitter {
30 margin: 0px;
31}
32
024ec655
RK
33splitter[state="collapsed"][collapse="before"],
34splitter[state="collapsed"][substate="before"],
35splitter[state="collapsed"][collapse="after"]:-moz-locale-dir(rtl),
36splitter[state="collapsed"][substate="after"]:-moz-locale-dir(rtl) {
37 cursor: e-resize;
01d40f5a
RK
38 margin-left: 0;
39 border-radius: 0 5px 5px 0;
024ec655
RK
40}
41
42splitter[state="collapsed"][collapse="after"],
43splitter[state="collapsed"][substate="after"],
44splitter[state="collapsed"][collapse="before"]:-moz-locale-dir(rtl),
45splitter[state="collapsed"][substate="before"]:-moz-locale-dir(rtl) {
46 cursor: w-resize;
01d40f5a
RK
47 margin-right: 0;
48 border-radius: 5px 0 0 5px;
024ec655
RK
49}
50
3b1530c2
RK
51splitter:-moz-lwtheme {
52 background: none;
53}
54
b1eaa419 55/* ::::: splitter (horizontal) ::::: */
56
57splitter[orient="vertical"] {
6046f027 58 cursor: ns-resize;
b1eaa419 59 border: none;
b1eaa419 60 min-height: 6px;
bbb0b4bf 61 margin: 3px 0;
b1eaa419 62}
63
024ec655
RK
64splitter[orient="vertical"][state="collapsed"][collapse="before"],
65splitter[orient="vertical"][state="collapsed"][substate="before"] {
66 cursor: s-resize;
01d40f5a
RK
67 margin-top: 0;
68 border-radius: 0 0 5px 5px;
024ec655
RK
69}
70
71splitter[orient="vertical"][state="collapsed"][collapse="after"],
72splitter[orient="vertical"][state="collapsed"][substate="after"] {
73 cursor: n-resize;
01d40f5a
RK
74 margin-bottom: 0;
75 border-radius: 5px 5px 0 0;
024ec655
RK
76}
77
706c344c
RK
78splitter[disabled="true"] {
79 cursor: default !important;
80}
81
b1eaa419 82/* ::::: splitter grippy ::::: */
83
84grippy {
85 cursor: pointer;
86 border: none;
87 border-top: 3px solid black;
88 border-bottom: 3px solid black;
89 min-width: 6px;
90 min-height: 121px;
bbb0b4bf 91 background: #C09070 50% 50% no-repeat;
b1eaa419 92}
93
94grippy:hover {
95 background-color: #FFCF00;
96}
97
98grippy:hover:active {
99 border: none;
100}
101
102splitter[orient="vertical"] > grippy {
103 border: none;
104 border-left: 3px solid black;
105 border-right: 3px solid black;
106 min-width: 121px;
107 min-height: 6px;
108}
109
110/* ..... normal state ..... */
111
112/* vertical grippies */
024ec655
RK
113splitter[collapse="before"] > grippy,
114splitter[collapse="after"] > grippy:-moz-locale-dir(rtl) {
01d40f5a 115 background-image: url("chrome://global/skin/splitter/grip-left.png");
b1eaa419 116}
117
024ec655
RK
118splitter[collapse="after"] > grippy,
119splitter[collapse="before"] > grippy:-moz-locale-dir(rtl) {
01d40f5a 120 background-image: url("chrome://global/skin/splitter/grip-right.png");
b1eaa419 121}
122
123/* horizontal grippies */
124splitter[collapse="before"][orient="vertical"] > grippy {
01d40f5a 125 background-image: url("chrome://global/skin/splitter/grip-top.png");
b1eaa419 126}
127
128splitter[collapse="after"][orient="vertical"] > grippy {
01d40f5a 129 background-image: url("chrome://global/skin/splitter/grip-bottom.png");
b1eaa419 130}
131
132/* ..... collapsed state ..... */
133
134/* vertical grippies */
024ec655
RK
135splitter[collapse="before"][state="collapsed"] > grippy,
136splitter[collapse="after"][state="collapsed"] > grippy:-moz-locale-dir(rtl) {
01d40f5a 137 background-image: url("chrome://global/skin/splitter/grip-right.png");
b1eaa419 138}
139
024ec655
RK
140splitter[collapse="after"][state="collapsed"] > grippy,
141splitter[collapse="before"][state="collapsed"] > grippy:-moz-locale-dir(rtl) {
01d40f5a 142 background-image: url("chrome://global/skin/splitter/grip-left.png");
b1eaa419 143}
144
145/* horizontal grippies */
146splitter[collapse="before"][state="collapsed"][orient="vertical"] > grippy {
01d40f5a 147 background-image: url("chrome://global/skin/splitter/grip-bottom.png");
b1eaa419 148}
149
150splitter[collapse="after"][state="collapsed"][orient="vertical"] > grippy {
01d40f5a 151 background-image: url("chrome://global/skin/splitter/grip-top.png");
b1eaa419 152}