Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/py-polars/docs/source/_static/css/custom.css
6939 views
1
/* To have blue background of width of the block (instead of width of content) */
2
dl.class>dt:first-of-type {
3
display: block !important;
4
}
5
6
/* Display long method names over multiple lines in navbar. */
7
.bd-toc-item {
8
overflow-wrap: break-word;
9
}
10
11
/* Dark & light theme tweaks */
12
html[data-theme="light"] {
13
--pst-color-on-background: #ecf4ff;
14
--pst-gradient-sidebar-left: #ffffff;
15
--pst-gradient-sidebar-right: #fbfbfb;
16
--pst-color-border: #cccccc;
17
}
18
19
html[data-theme="dark"] {
20
--pst-color-on-background: #333333;
21
--pst-gradient-sidebar-left: #121212;
22
--pst-gradient-sidebar-right: #181818;
23
--pst-color-sidebar-nav: #181818;
24
--pst-color-border: #444444;
25
}
26
27
/* add subtle gradients to sidebar and card elements */
28
div.bd-sidebar-primary {
29
background-image: linear-gradient(90deg, var(--pst-gradient-sidebar-left) 0%, var(--pst-gradient-sidebar-right) 100%);
30
}
31
32
div.sd-card {
33
background-image: linear-gradient(0deg, var(--pst-gradient-sidebar-left) 0%, var(--pst-gradient-sidebar-right) 100%);
34
}
35
36
/* match docs footer colour to the header */
37
footer.bd-footer {
38
background-color: var(--pst-color-on-background);
39
}
40
41
/*
42
we're not currently doing anything meaningful with the
43
right toc, so hide until there's something to put there
44
*/
45
div.bd-sidebar-secondary {
46
display: none;
47
}
48
49
label.sidebar-toggle.secondary-toggle {
50
display: none !important;
51
}
52
53
/* fix visited link colour */
54
a:visited {
55
color: var(--pst-color-link);
56
}
57
58
/* fix ugly navbar scrollbar display */
59
.sidebar-primary-items__end {
60
margin: 0 !important;
61
}
62
63
/* give code examples the same faint drop-shadow as admonitions */
64
pre {
65
box-shadow: 0 .2rem .5rem var(--pst-color-shadow), 0 0 .0625rem var(--pst-color-shadow) !important;
66
}
67
68