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 /* This file is loaded by both browser.xul and toolbox.xul. Therefore, rules
6 defined here can not rely on toolbox.xul variables. */
11 /* Define the widths of the draggable areas on each side of a splitter. top
12 and bottom widths are used for horizontal splitters, inline-start and
13 inline-end for side splitters.*/
15 --devtools-splitter-top-width: 2px;
16 --devtools-splitter-bottom-width: 2px;
18 /* Small draggable area on inline-start to avoid overlaps on scrollbars.*/
19 --devtools-splitter-inline-start-width: 1px;
20 --devtools-splitter-inline-end-width: 4px;
22 /* These variables are used in browser.xul but inside the toolbox they are overridden by --theme-splitter-color */
23 --devtools-splitter-color: #9C9CFF;
26 .devtools-horizontal-splitter,
27 .devtools-side-splitter {
28 -moz-appearance: none;
29 background-image: none;
32 border-color: transparent;
33 background-color: var(--devtools-splitter-color);
34 background-clip: content-box;
37 box-sizing: border-box;
39 /* Positive z-index positions the splitter on top of its siblings and makes
40 it clickable on both sides. */
44 .devtools-horizontal-splitter {
45 min-height: calc(var(--devtools-splitter-top-width) +
46 var(--devtools-splitter-bottom-width) + 1px);
48 border-top-width: var(--devtools-splitter-top-width);
49 border-bottom-width: var(--devtools-splitter-bottom-width);
51 margin-top: calc(-1 * var(--devtools-splitter-top-width) - 1px);
52 margin-bottom: calc(-1 * var(--devtools-splitter-bottom-width));
57 .devtools-side-splitter {
58 min-width: calc(var(--devtools-splitter-inline-start-width) +
59 var(--devtools-splitter-inline-end-width) + 1px);
61 border-inline-start-width: var(--devtools-splitter-inline-start-width);
62 border-inline-end-width: var(--devtools-splitter-inline-end-width);
64 margin-inline-start: calc(-1 * var(--devtools-splitter-inline-start-width) - 1px);
65 margin-inline-end: calc(-1 * var(--devtools-splitter-inline-end-width));
70 .devtools-horizontal-splitter.disabled,
71 .devtools-side-splitter.disabled {