blob: 1fbc5c3e3ee6d21139661619b81d5e43647a23a1 (
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
|
/* 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/. */
/* Accordion */
.accordion {
width: 100%;
padding: 0;
margin: 0;
list-style-type: none;
/* Accordion root has tabindex="-1" to get focus programatically.
* This can give it a focus outline when clicked, which we don't want.
* The container itself is not in the focus order at all. */
outline: none;
background-color: var(--theme-sidebar-background);
}
.accordion-header {
box-sizing: border-box;
display: flex;
align-items: center;
/* Reserve 1px for the border */
min-height: calc(var(--theme-toolbar-height) + 1px);
margin: 0;
border-bottom: 1px solid var(--theme-splitter-color);
padding: 2px 4px;
font-size: inherit;
font-weight: normal;
user-select: none;
cursor: default;
background-color: var(--theme-accordion-header-background);
}
.accordion-header:hover {
background-color: var(--theme-accordion-header-hover);
}
/*
Arrow should be a bit closer to the text than to the start edge:
- total distance between text and start edge = 20px
- arrow width = 10px
- distance between arrow and start edge = 6px
- distance between arrow and text = 4px
*/
.accordion-header .theme-twisty {
display: inline-block;
flex: none;
width: 10px;
height: 10px;
margin-inline-start: 2px;
margin-inline-end: 4px;
pointer-events: none;
}
.accordion-header-label {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
line-height: 16px;
color: var(--theme-toolbar-color);
}
.accordion-header-buttons {
flex: none;
display: flex;
align-items: center;
justify-content: flex-end;
max-width: 50%;
margin-inline-start: auto;
padding-inline-start: 4px;
}
.accordion-content {
overflow: auto;
border-bottom: 1px solid var(--theme-splitter-color);
}
.accordion-content[hidden] {
display: none;
}
.accordion-item:last-child > .accordion-content {
border-bottom: none;
}
|