summaryrefslogtreecommitdiffstats
path: root/devtools/client/themes/splitview.css
blob: 08ccb05d6931997c4dc2ad0a85b0a7ff14c0ac3e (plain)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* 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/. */

.theme-dark {
  --sidemenu-selected-arrow: url(images/item-arrow-dark-ltr.svg);
  --sidemenu-selected-arrow-rtl: url(images/item-arrow-dark-rtl.svg);
}
.theme-light {
  --sidemenu-selected-arrow: url(images/item-arrow-ltr.svg);
  --sidemenu-selected-arrow-rtl: url(images/item-arrow-rtl.svg);
}

box,
.splitview-nav {
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.splitview-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--theme-sidebar-background);

  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
}

.splitview-nav > li {
  padding-inline-end: 8px;
  align-items: center;
  outline: 0;
  vertical-align: bottom;
  border-bottom: 1px solid var(--theme-splitter-color);
}

.placeholder {
  flex: 1;
  text-align: center;
}

.splitview-nav > li.splitview-active {
  background-color: var(--theme-selection-background);
  color: var(--theme-selection-color);
  background-image: var(--sidemenu-selected-arrow);
  background-repeat: no-repeat;
  background-position: center right;
}

.splitview-nav > li.splitview-active:-moz-locale-dir(rtl) {
  background-image: var(--sidemenu-selected-arrow-rtl);
  background-position: center left;
}

.splitview-nav > li:not(.splitview-active):where(:hover, :focus-within) {
  background-color: var(--theme-selection-background-hover);
}

/* Toolbars */

.splitview-main > .devtools-toolbar {
  height: 29px;
}

.splitview-main > toolbar,
.loading .splitview-nav-container {
  border-inline-end: 1px solid var(--theme-splitter-color);
}

.splitview-nav-container {
  justify-content: center;
}

.loading .splitview-nav-container > .placeholder {
  display: none !important;
}

.splitview-controller,
.splitview-main {
  flex: none;
}

.splitview-controller {
  min-height: 3em;
  max-height: 14em;
  max-width: 400px;
  min-width: 200px;
}

.splitview-side-details > * {
  display: none;
  min-width: 0;
  min-height: 0;
}

/* only the active details pane is shown */
.splitview-side-details > .splitview-active {
  display: flex;
}

/* filtered items are hidden */
ol.splitview-nav > li.splitview-filtered {
  display: none;
}

/* "empty list" and "all filtered" placeholders are hidden */
.splitview-nav:empty,
.splitview-nav.splitview-all-filtered,
.splitview-nav + .splitview-nav.placeholder {
  display: none;
}
.splitview-nav.splitview-all-filtered ~ .splitview-nav.placeholder.all-filtered,
.splitview-nav:empty ~ .splitview-nav.placeholder.empty {
  display: flex;
}

@media (width >= 700px) {
  .splitview-root {
    flex-direction: row;
  }
  .splitview-controller {
    max-height: none;
    /* Override the potential splitter-set height */
    height: auto !important;
  }
  .splitview-details {
    display: none;
  }
  .splitview-details.splitview-active {
    display: flex;
  }
}

/* portrait mode */
@media (width < 700px) {
  .splitview-controller {
    max-width: none;
    /* Override the potential splitter-set width */
    width: auto !important;
  }
}