Skip to content

Commit 038cba3

Browse files
committed
Update custom.css. Prettier.
1 parent 64c1482 commit 038cba3

File tree

1 file changed

+87
-33
lines changed

1 file changed

+87
-33
lines changed

docs/_static/custom.css

Lines changed: 87 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,69 @@
22
/* Add Font Awesome 5 icon and color for todo */
33
--pst-icon-clipboard-list: '\f46d';
44
--pst-icon-admonition-todo: var(--pst-icon-clipboard-list);
5-
--pst-color-admonition-todo: 161 , 46, 233;
5+
--pst-color-admonition-todo: 161, 46, 233;
66
--target-color: #b9ee9e;
77
--codeblock-color: #aad993;
88
}
99

1010
.visuallyhidden {
1111
display: none;
1212
}
13+
1314
pre {
1415
border-radius: 0;
1516
background-color: white;
1617
box-shadow: none;
1718
}
19+
1820
a,
1921
a:visited,
2022
main.bd-content #main-content a,
2123
main.bd-content #main-content a:visited {
2224
color: #2980b9;
2325
}
26+
2427
a:hover,
2528
main.bd-content #main-content a:hover {
2629
color: #1a567e;
2730
text-decoration: none;
2831
}
32+
2933
ul {
3034
list-style-type: square;
3135
}
32-
ul li > p {
36+
37+
ul li>p {
3338
margin-bottom: 0.3rem;
3439
}
35-
ol li > p {
40+
41+
ol li>p {
3642
margin-bottom: 0.3rem;
3743
}
38-
img{
44+
45+
img {
3946
margin: 1rem 0;
4047
}
48+
4149
figure img,
4250
.figure img {
43-
box-shadow: 0 6px 24px 0 rgba(153,153,153,0.3);
51+
box-shadow: 0 6px 24px 0 rgba(153, 153, 153, 0.3);
4452
}
53+
4554
.sidebar img.logo {
4655
box-shadow: none;
4756
width: 200px;
4857
margin-bottom: 1rem;
4958
}
59+
5060
span.linenos {
5161
padding-right: 1em;
5262
}
63+
5364
p.ploneorglink img {
5465
vertical-align: bottom;
5566
}
67+
5668
dt:target,
5769
span.highlighted,
5870
ul.search li span.highlighted {
@@ -62,10 +74,12 @@ ul.search li span.highlighted {
6274
.bd-sidebar .nav ul {
6375
padding: 0 0 0 1rem;
6476
}
65-
.bd-sidebar .nav .toctree-checkbox ~ label i {
77+
78+
.bd-sidebar .nav .toctree-checkbox~label i {
6679
transform: rotate(90deg);
6780
}
68-
.bd-sidebar .nav .toctree-checkbox:checked ~ label i {
81+
82+
.bd-sidebar .nav .toctree-checkbox:checked~label i {
6983
transform: rotate(0deg);
7084
}
7185

@@ -74,15 +88,17 @@ ul.search li span.highlighted {
7488
font-size: 1.2em;
7589
margin-top: 3rem;
7690
}
91+
7792
.toctree-wrapper ul {
7893
list-style: none;
7994
}
8095

81-
section:not(#glossary) h1 ~ dl {
96+
section:not(#glossary) h1~dl {
8297
display: grid;
8398
grid-template-columns: max-content auto;
8499
}
85-
section:not(#glossary) h1 ~ dl dd {
100+
101+
section:not(#glossary) h1~dl dd {
86102
margin-bottom: unset !important;
87103
}
88104

@@ -95,38 +111,46 @@ div.section {
95111
border-radius: 0;
96112
border: none;
97113
border-left: .2rem solid;
98-
border-left-color: rgba(var(--pst-color-admonition-default),1);
114+
border-left-color: rgba(var(--pst-color-admonition-default), 1);
99115
}
116+
100117
.admonition .admonition-title {
101118
margin-bottom: 1.5rem !important;
102119
}
120+
103121
.admonition.toggle .admonition-title {
104122
cursor: pointer;
105123
display: flex;
106124
}
125+
107126
.admonition.toggle .admonition-title::after {
108127
content: "\f105";
109128
font-weight: 900;
110129
font-family: "Font Awesome 5 Free";
111130
margin-left: auto;
112131
}
132+
113133
.admonition.toggle .admonition-title.open::after {
114134
content: "\f107";
115135
}
136+
116137
/* admonition todo */
117138
.admonition.admonition-todo,
118139
div.admonition.admonition-todo {
119-
border-color: rgba(var(--pst-color-admonition-todo),1);
140+
border-color: rgba(var(--pst-color-admonition-todo), 1);
120141
}
121-
.admonition.admonition-todo > .admonition-title,
122-
div.admonition.admonition-todo > .admonition-title {
123-
background-color: rgba(var(--pst-color-admonition-todo),.1);
142+
143+
.admonition.admonition-todo>.admonition-title,
144+
div.admonition.admonition-todo>.admonition-title {
145+
background-color: rgba(var(--pst-color-admonition-todo), .1);
124146
}
125-
.admonition.admonition-todo > .admonition-title::before,
126-
div.admonition.admonition-todo > .admonition-title::before {
127-
color: rgba(var(--pst-color-admonition-todo),1);
147+
148+
.admonition.admonition-todo>.admonition-title::before,
149+
div.admonition.admonition-todo>.admonition-title::before {
150+
color: rgba(var(--pst-color-admonition-todo), 1);
128151
content: var(--pst-icon-admonition-todo);
129152
}
153+
130154
.admonition-github-only.admonition {
131155
display: none;
132156
}
@@ -135,6 +159,7 @@ div.admonition.admonition-todo > .admonition-title::before {
135159
.topic {
136160
padding: 1.5em 1em .5em 1em;
137161
}
162+
138163
.topic-title {
139164
font-weight: bold;
140165
}
@@ -146,6 +171,7 @@ div.admonition.admonition-todo > .admonition-title::before {
146171
background-color: #2980b9;
147172
border-color: #2980b9;
148173
}
174+
149175
.btn-primary {
150176
background-color: #1f86ca;
151177
border-color: #2980b9;
@@ -157,70 +183,81 @@ div.admonition.admonition-todo > .admonition-title::before {
157183
#search-documentation,
158184
#search-documentation~form,
159185
#search-documentation~p {
160-
display:block;
186+
display: block;
161187
}
188+
162189
ul.search {
163190
margin-left: 0;
164191
}
192+
165193
p.search-summary {
166194
margin: 1em 0 2rem 0;
167195
}
196+
168197
#search-results ul {
169198
list-style-type: none;
170199
padding-left: 0;
171200
}
201+
172202
#search-results ul li,
173203
ul.search li {
174204
margin-bottom: 2rem;
175205
padding: 0;
176206
background-image: none;
177207
border-bottom: none;
178208
}
209+
179210
#search-results ul li h3 {
180211
margin: 0.4rem 0 .5rem;
181212
font-size: 1.5rem;
182213
}
214+
183215
#search-results ul li .breadcrumbs {
184216
display: flex;
185217
flex-direction: row;
186218
flex-wrap: wrap;
187219
}
220+
188221
#search-results ul li .breadcrumbs a {
189222
font-weight: normal;
190223
}
224+
191225
#search-results ul li .breadcrumbs .lastbreadcrumb {
192226
white-space: nowrap;
193227
display: inline-block;
194228
max-width: 12rem;
195-
overflow: hidden; /* "overflow"-Wert darf nicht "visible" sein */
229+
overflow: hidden;
230+
/* "overflow"-Wert darf nicht "visible" sein */
196231

197232
text-overflow: ellipsis;
198233
}
234+
199235
ul.search li p.context {
200236
margin-left: 0;
201237
}
238+
202239
.pathseparator {
203240
padding: 0 0.7rem;
204241
}
205242

206243

207244
/* submenu */
208245
.bd-toc {
209-
box-shadow: 0 .2rem .5rem rgba(0,0,0,.05),0 0 .0625rem rgba(0,0,0,.1);
246+
box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .05), 0 0 .0625rem rgba(0, 0, 0, .1);
210247
}
211248

212249
/* extra sidebar */
213-
div.sidebar:not(.margin){
250+
div.sidebar:not(.margin) {
214251
width: 40%;
215252
float: right;
216253
clear: right;
217254
margin: .3rem 0 .3rem 0.5em;
218255
padding: 2rem 0 1.5rem 1rem !important;
219-
background-color: rgba(var(--pst-color-admonition-note),.1);
256+
background-color: rgba(var(--pst-color-admonition-note), .1);
220257
border: none;
221-
border-left: 8px rgba(var(--pst-color-admonition-default),1) solid;
258+
border-left: 8px rgba(var(--pst-color-admonition-default), 1) solid;
222259
border-radius: .2rem;
223-
box-shadow: 0 .2rem .5rem rgba(0,0,0,.05),0 0 .0625rem rgba(0,0,0,.1);
260+
box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .05), 0 0 .0625rem rgba(0, 0, 0, .1);
224261
}
225262

226263
div.sidebar:not(.margin) .figure {
@@ -229,31 +266,39 @@ div.sidebar:not(.margin) .figure {
229266
margin-left: 0;
230267
padding-left: 0;
231268
}
269+
232270
div.sidebar:not(.margin) img.logo {
233271
margin-top: 0;
234272
margin-bottom: .3rem;
235273
}
274+
236275
div.sidebar:not(.margin) p {
237276
margin-bottom: 0;
238277
}
278+
239279
div.sidebar:not(.margin) p.sidebar-title {
240280
display: none;
241281
}
282+
242283
div.sidebar:not(.margin) div.topic {
243284
padding: .5em 0;
244285
background-color: transparent;
245286
border: none;
246287
}
288+
247289
div.sidebar:not(.margin) pre {
248290
margin: .5em 0 1.5em 0;
249291
}
292+
250293
div.sidebar:not(.margin) div[class*="highlight-"] {
251294
margin-right: .5em;
252295
}
296+
253297
div.sidebar:not(.margin) .admonition {
254298
margin-right: .5em;
255299
background-color: #ffffff;
256300
}
301+
257302
@media (min-width:768px) {
258303
div.sidebar:not(.margin) {
259304
width: 50%;
@@ -266,25 +311,30 @@ div.sidebar:not(.margin) .admonition {
266311
main.bd-content #main-content dl.simple dt {
267312
margin-top: .8em;
268313
}
314+
269315
main.bd-content #main-content dl.simple dt:nth-of-type(1) {
270316
margin-top: 0;
271317
}
318+
272319
main.bd-content #main-content dl.simple dd {
273320
margin-top: .8em;
274321
}
275-
main.bd-content #main-content dl.simple dt + dd {
322+
323+
main.bd-content #main-content dl.simple dt+dd {
276324
margin-top: 0;
277325
}
278326

279327
.prev-next-bottom {
280328
margin: 20px 0 30px 0;
281329
}
282-
.prev-next-bottom a.left-prev, .prev-next-bottom a.right-next {
330+
331+
.prev-next-bottom a.left-prev,
332+
.prev-next-bottom a.right-next {
283333
padding: 5px 10px;
284-
border: 1px solid rgba(0,0,0,.2);
334+
border: 1px solid rgba(0, 0, 0, .2);
285335
max-width: 45%;
286336
overflow-x: hidden;
287-
color: rgba(0,0,0,.65);
337+
color: rgba(0, 0, 0, .65);
288338
border-radius: 10px;
289339
}
290340

@@ -294,7 +344,8 @@ li.nav-item.toc-entry {
294344
margin-bottom: 0.25em;
295345
}
296346

297-
span.guilabel, span.menuselection {
347+
span.guilabel,
348+
span.menuselection {
298349
border: none;
299350
background: #e7f2fa;
300351
border-radius: 4px;
@@ -314,14 +365,17 @@ span.guilabel, span.menuselection {
314365
dl.py.function {
315366
margin-bottom: 5rem;
316367
}
317-
dl.py.function > dt {
368+
369+
dl.py.function>dt {
318370
background-color: var(--codeblock-color);
319371
padding: 4px 5px;
320372
}
321-
dl.py.function > dt:target {
322-
background-color: var(--target-color);
373+
374+
dl.py.function>dt:target {
375+
background-color: var(--target-color);
323376
}
324-
dl.field-list > dt {
377+
378+
dl.field-list>dt {
325379
padding-left: 0;
326380
}
327381

0 commit comments

Comments
 (0)