-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathextended_toc.css
More file actions
188 lines (153 loc) · 5.03 KB
/
extended_toc.css
File metadata and controls
188 lines (153 loc) · 5.03 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/* Extended Table of Contents CSS Styles */
/* ==========================================================================
Header Styles
========================================================================== */
.plutoui-toc header {
cursor: pointer;
}
span.toc-header-container {
position: fixed;
display: none;
--size: 25px;
height: calc(51px - 1rem);
flex-direction: row-reverse;
right: calc(1rem + min(80vh, 300px));
}
.toc-header-icon {
margin-right: 0.3rem;
align-self: stretch;
display: inline-block;
width: var(--size);
background-size: var(--size) var(--size);
background-repeat: no-repeat;
background-position: center;
filter: var(--image-filters);
cursor: pointer;
}
.toc-header-filler {
margin: .25rem;
}
header:hover span.toc-header-container,
span.toc-header-container:hover {
display: flex;
}
.toc-header-hide {
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/ionicons@5.5.1/src/svg/eye-outline.svg);
opacity: 50%;
--size: 1em;
}
.toc-header-save {
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/ionicons@5.5.1/src/svg/save-outline.svg);
opacity: 50%;
}
nav:not(.file-state-differs) .toc-header-save {
display: none;
}
pluto-notebook[hide-enabled] span.toc-header-hide {
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/ionicons@5.5.1/src/svg/eye-off-outline.svg);
}
/* ==========================================================================
Table of Contents Row Styles
========================================================================== */
span.toc-hide-container {
--width: min(80vw, 300px);
position: fixed;
display: flex;
right: calc(var(--width) + 1rem + 22px - 100px);
height: var(--height);
width: 100px;
z-index: -1;
}
span.toc-hide {
visibility: hidden;
opacity: 50%;
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/ionicons@5.5.1/src/svg/eye-outline.svg);
cursor: pointer;
}
div.toc-row.hidden span.toc-hide {
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/ionicons@5.5.1/src/svg/eye-off-outline.svg);
}
span.toc-hide-container:hover > .toc-hide,
div.toc-row:hover .toc-hide {
visibility: visible;
}
div.toc-row a {
display: flex;
}
span.toc-icon {
--size: 17px;
display: block;
align-self: stretch;
background-size: var(--size) var(--size);
background-repeat: no-repeat;
background-position: center;
width: var(--size);
filter: var(--image-filters);
}
span.toc-collapse {
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/ionicons@5.5.1/src/svg/chevron-down.svg);
margin-right: 3px;
min-width: var(--size);
}
.plutoui-toc section div.toc-row.collapsed span.toc-collapse {
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/ionicons@5.5.1/src/svg/chevron-forward.svg);
}
.plutoui-toc section div.toc-row a span.toc-collapse.no-children {
background-image: none;
}
div.toc-row.parent-hidden {
text-decoration: underline dotted .5px;
text-underline-offset: 2px;
}
div.toc-row.hidden {
text-decoration: underline dashed 1px;
text-underline-offset: 2px;
}
.plutoui-toc div.parent-collapsed {
display: none;
}
pluto-notebook[hide-enabled] div.toc-row.hidden,
pluto-notebook[hide-enabled] div.toc-row.parent-hidden {
display: none;
}
.drag_enabled .toc-row.dragged {
border: 2px dashed grey;
}
/* ==========================================================================
Row Separator Styles
========================================================================== */
div.toc-row-separator {
height: 2px;
margin: 3px 0px;
background: #aaa;
display: none;
}
div.toc-row-separator.active {
display: block;
}
div.toc-row-separator.active.noshow {
display: none;
}
/* ==========================================================================
Main Cell Hidings
========================================================================== */
pluto-notebook[hide-enabled] pluto-cell[toc-hidden] {
display: none;
}
/* This style permits to have a cell whose output is still being shown when
the cell is hidden. This is useful for having hidden cells that still are
sending HTML as output (like ToC and BondTable) */
pluto-notebook[hide-enabled] pluto-cell[always-show-output][toc-hidden] {
display: block;
}
pluto-notebook[hide-enabled] pluto-cell[always-show-output][toc-hidden]:not(.code_differs) > pluto-input,
pluto-notebook[hide-enabled] pluto-cell[always-show-output][toc-hidden]:not(.code_differs) > pluto-shoulder,
pluto-notebook[hide-enabled] pluto-cell[always-show-output][toc-hidden]:not(.code_differs) > pluto-trafficlight,
pluto-notebook[hide-enabled] pluto-cell[always-show-output][toc-hidden]:not(.code_differs) > pluto-runarea,
pluto-notebook[hide-enabled] pluto-cell[always-show-output][toc-hidden]:not(.code_differs) > button {
display: none;
}
pluto-notebook[hide-enabled] pluto-cell[always-show-output][toc-hidden]:not(.code_differs) {
margin-top: 0px;
min-height: 0px;
}