Skip to content

Commit fe22988

Browse files
committed
apply scanpy css
1 parent 170d600 commit fe22988

File tree

1 file changed

+123
-0
lines changed

1 file changed

+123
-0
lines changed

_static/css/custom.css

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,126 @@
66
}
77
.wy-side-nav-search { background-color: transparent }
88
.wy-side-nav-search input[type="text"] { border-width: 0 }
9+
10+
11+
/* Custom classes */
12+
13+
.small { font-size:40% }
14+
.smaller, .pr { font-size:70% }
15+
16+
17+
/* Custom classes with bootstrap buttons */
18+
19+
.tutorial,
20+
.tutorial:visited,
21+
.tutorial:hover
22+
{
23+
/* text-decoration: underline; */
24+
font-weight: bold;
25+
padding: 2px 5px;
26+
white-space: nowrap;
27+
max-width: 100%;
28+
background: #f07e44;
29+
border: solid 1px #f07e44;
30+
border-radius: .25rem;
31+
font-size: 75%;
32+
/* font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace; */
33+
color: #404040;
34+
overflow-x: auto;
35+
box-sizing: border-box;
36+
}
37+
38+
39+
/* Formatting of RTD markup: rubrics and sidebars and admonitions */
40+
41+
/* rubric */
42+
.rst-content p.rubric {
43+
margin-bottom: 6px;
44+
font-weight: normal;
45+
}
46+
.rst-content p.rubric::after { content: ":" }
47+
48+
/* sidebar */
49+
.rst-content .sidebar {
50+
/* margin: 0px 0px 0px 12px; */
51+
padding-bottom: 0px;
52+
}
53+
.rst-content .sidebar p {
54+
margin-bottom: 12px;
55+
}
56+
.rst-content .sidebar p,
57+
.rst-content .sidebar ul,
58+
.rst-content .sidebar dl {
59+
font-size: 13px;
60+
}
61+
62+
/* less space after bullet lists in admonitions like warnings and notes */
63+
.rst-content .section .admonition ul {
64+
margin-bottom: 6px;
65+
}
66+
67+
68+
/* Code: literals and links */
69+
70+
.rst-content tt.literal,
71+
.rst-content code.literal {
72+
color: #404040;
73+
}
74+
/* slim font weight for non-link code */
75+
.rst-content tt:not(.xref),
76+
.rst-content code:not(.xref),
77+
.rst-content *:not(a) > tt.xref,
78+
.rst-content *:not(a) > code.xref,
79+
.rst-content dl:not(.docutils) code
80+
{
81+
font-weight: normal;
82+
}
83+
.rst-content a > tt.xref,
84+
.rst-content a > code.xref,
85+
.rst-content dl:not(.docutils) a > tt.xref,
86+
.rst-content dl:not(.docutils) a > code.xref
87+
{
88+
font-weight: bold; /* underline looks clumsy, in particular with buttons and
89+
other hyperlinks, which don't come with underlines */
90+
}
91+
92+
93+
/* Just one box for annotation code for a less noisy look */
94+
95+
.rst-content .annotation {
96+
padding: 2px 5px;
97+
background-color: white;
98+
border: 1px solid #e1e4e5;
99+
}
100+
.rst-content .annotation tt,
101+
.rst-content .annotation code {
102+
padding: 0 0;
103+
background-color: transparent;
104+
border: 0 solid transparent;
105+
}
106+
107+
108+
/* Parameter lists */
109+
110+
/* Mimick rubric style used for other headings */
111+
/* TODO: once scanpydoc adds classes, also change return types like this */
112+
.rst-content dl:not(.docutils) dl > dt {
113+
font-weight: bold;
114+
background: none transparent;
115+
border-left: none;
116+
margin: 0 0 12px;
117+
padding: 3px 0 0;
118+
font-size: 111.11%;
119+
}
120+
/* Parameters contain <strong> parts and don’t need bold font */
121+
.rst-content dl.field-list dl > dt { font-weight: unset }
122+
/* Add colon between return tuple element name and type */
123+
.rst-content dl:not(.docutils) dl > dt .classifier::before { content: ' : ' }
124+
125+
/* Function headers */
126+
127+
.rst-content dl:not(.docutils) dt {
128+
background: #edf0f2;
129+
color: #404040;
130+
border-top: solid 3px #343131;
131+
}

0 commit comments

Comments
 (0)