Skip to content

Commit eda5123

Browse files
committed
Theming api and target highlighting
1 parent 4bb96e0 commit eda5123

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

docs/_static/custom.css

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
--pst-icon-clipboard-list: '\f46d';
44
--pst-icon-admonition-todo: var(--pst-icon-clipboard-list);
55
--pst-color-admonition-todo: 161 , 46, 233;
6+
--target-color: #b9ee9e;
7+
--codeblock-color: #aad993;
68
}
79

810
.visuallyhidden {
@@ -54,7 +56,7 @@ p.ploneorglink img {
5456
dt:target,
5557
span.highlighted,
5658
ul.search li span.highlighted {
57-
background-color: #7ddf4493;
59+
background-color: var(--target-color);
5860
}
5961

6062
.bd-sidebar .nav ul {
@@ -302,3 +304,31 @@ span.guilabel, span.menuselection {
302304
font-style: italic;
303305
white-space: nowrap;
304306
}
307+
308+
309+
/*
310+
* extensions
311+
*/
312+
313+
/* definitions */
314+
dl.py.function {
315+
margin-bottom: 5rem;
316+
}
317+
dl.py.function > dt {
318+
background-color: var(--codeblock-color);
319+
padding: 4px 5px;
320+
}
321+
dl.py.function > dt:target {
322+
background-color: var(--target-color);
323+
}
324+
dl.field-list > dt {
325+
padding-left: 0;
326+
}
327+
328+
/* code blocks */
329+
div.viewcode-block:target {
330+
padding: 10px 10px;
331+
background-color: var(--codeblock-color);
332+
border-top: 1px solid var(--codeblock-color);
333+
border-bottom: 1px solid var(--codeblock-color);
334+
}

0 commit comments

Comments
 (0)