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;
23 :root[devtoolstheme="light"],
24 :root[devtoolstheme="dark"],
25 :root[devtoolstheme="firebug"] {
26 /* These variables are used in browser.xul but inside the toolbox they are overridden by --theme-splitter-color */
27 --devtools-splitter-color: #9C9CFF;
30 .devtools-horizontal-splitter,
31 .devtools-side-splitter {
32 -moz-appearance: none;
33 background-image: none;
36 border-color: transparent;
37 background-color: var(--devtools-splitter-color);
38 background-clip: content-box;
41 box-sizing: border-box;
43 /* Positive z-index positions the splitter on top of its siblings and makes
44 it clickable on both sides. */
48 .devtools-horizontal-splitter {
49 min-height: calc(var(--devtools-splitter-top-width) +
50 var(--devtools-splitter-bottom-width) + 1px);
52 border-top-width: var(--devtools-splitter-top-width);
53 border-bottom-width: var(--devtools-splitter-bottom-width);
55 margin-top: calc(-1 * var(--devtools-splitter-top-width) - 1px);
56 margin-bottom: calc(-1 * var(--devtools-splitter-bottom-width));
61 .devtools-side-splitter {
62 min-width: calc(var(--devtools-splitter-inline-start-width) +
63 var(--devtools-splitter-inline-end-width) + 1px);
65 border-inline-start-width: var(--devtools-splitter-inline-start-width);
66 border-inline-end-width: var(--devtools-splitter-inline-end-width);
68 margin-inline-start: calc(-1 * var(--devtools-splitter-inline-start-width) - 1px);
69 margin-inline-end: calc(-1 * var(--devtools-splitter-inline-end-width));
74 .devtools-horizontal-splitter.disabled,
75 .devtools-side-splitter.disabled {