File: splitters.css

package info (click to toggle)
firefox 147.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 4,683,320 kB
  • sloc: cpp: 7,607,359; javascript: 6,533,295; ansic: 3,775,223; python: 1,415,500; xml: 634,561; asm: 438,949; java: 186,241; sh: 62,752; makefile: 18,079; objc: 13,092; perl: 12,808; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10; exp: 6
file content (109 lines) | stat: -rw-r--r-- 3,842 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* This file is loaded by both browser.xhtml and toolbox.xhtml. Therefore, rules
   defined here can not rely on toolbox.xhtml variables. */

/* Splitters */

:root {
  --devtools-splitter-color: #e0e0e2 /* --grey-25 */;
  /* Use :where() so we don't get a higher specificity for this rule */
  &:where([devtoolstheme="dark"]) {
    --devtools-splitter-color: #38383d /* --grey-70 */;
  }

  /* We can't use (forced-colors: active) as forced-colors doesn't apply as is,
     but @media (forced-colors) should be enough to detect HCM */
  @media (forced-colors) {
    --devtools-splitter-color: CanvasText;
  }

  /* Draggable splitter element size */
  --devtools-splitter-element-size: 1px;
  --devtools-emphasized-splitter-element-size: 2px;

  /* Define the widths of the draggable areas on each side of a splitter. top
     and bottom widths are used for horizontal splitters, inline-start and
     inline-end for side splitters.*/

  --devtools-splitter-top-width: 2px;
  --devtools-splitter-bottom-width: 2px;
  --devtools-horizontal-splitter-min-height: calc(
    var(--devtools-splitter-top-width) + var(--devtools-splitter-bottom-width) + var(--devtools-splitter-element-size)
  );
  --devtools-emphasized-horizontal-splitter-min-height: calc(
    var(--devtools-splitter-top-width) + var(--devtools-splitter-bottom-width) + var(--devtools-emphasized-splitter-element-size)
  );

  /* Small draggable area on inline-start to avoid overlaps on scrollbars.*/
  --devtools-splitter-inline-start-width: 1px;
  --devtools-splitter-inline-end-width: 4px;

  --devtools-vertical-splitter-min-width: calc(
    var(--devtools-splitter-inline-start-width) + var(--devtools-splitter-inline-end-width) + var(--devtools-splitter-element-size)
  );
}

splitter.devtools-horizontal-splitter,
.devtools-side-splitter {
  appearance: none;
  background-image: none;
  border: 0;
  border-style: solid;
  border-color: transparent;
  background-color: var(--devtools-splitter-color);
  background-clip: content-box;
  position: relative;

  box-sizing: border-box;

  z-index: var(--browser-stack-z-index-devtools-splitter, 1);

  /* opt-out of forced colors because the transparent borders are turned into
     opaque ones in High Contrast Mode. --devtools-splitter-color has specific value
     in High Contrast Mode so we should be fine */
  forced-color-adjust: none;
}

splitter.devtools-horizontal-splitter {
  min-height: var(--devtools-horizontal-splitter-min-height);

  border-top-width: var(--devtools-splitter-top-width);
  border-bottom-width: var(--devtools-splitter-bottom-width);

  margin-top: calc(-1 * var(--devtools-splitter-top-width) - 1px);
  margin-bottom: calc(-1 * var(--devtools-splitter-bottom-width));

  cursor: ns-resize;
}

#toolbox-deck ~ splitter.devtools-horizontal-splitter {
  min-height: var(--devtools-emphasized-horizontal-splitter-min-height);
}

/**
 * Emphasized splitter has the hover style.
 * This emphasized splitter affect splitter console only.
 */
#toolbox-deck ~ splitter.devtools-horizontal-splitter:hover {
  background-color: var(--theme-emphasized-splitter-color-hover);
}

.devtools-side-splitter {
  min-width: var(--devtools-vertical-splitter-min-width);

  border-inline-start-width: var(--devtools-splitter-inline-start-width);
  border-inline-end-width: var(--devtools-splitter-inline-end-width);

  margin-inline-start: calc(-1 * var(--devtools-splitter-inline-start-width) - 1px);
  margin-inline-end: calc(-1 * var(--devtools-splitter-inline-end-width));

  cursor: ew-resize;
}

.devtools-horizontal-splitter.disabled,
.devtools-side-splitter.disabled {
  pointer-events: none;
}