Skip to content

Commit 28e7183

Browse files
authored
Merge pull request #2610 from LittleJ/ci-4.0.1-ug-improvements
[UG] Sphinx_rtd_theme fixes and improvements
2 parents b9bfb99 + 54d8e0b commit 28e7183

File tree

1 file changed

+83
-9
lines changed
  • user_guide_src/source/_themes/sphinx_rtd_theme/static/css

1 file changed

+83
-9
lines changed

user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css

Lines changed: 83 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,41 @@
11
@import 'theme.css';
22

3-
.highlighted {
4-
padding: 0px !important;
5-
font-weight: inherit !important;
6-
background-color: #f1d40f !important;
3+
/* Titles ------------------------------------------------------------------- */
4+
5+
h1 {
6+
margin-bottom: 2rem;
7+
}
8+
9+
h2, h3 {
10+
margin-bottom: 2rem;
11+
margin-top: 3rem;
12+
}
13+
14+
/* Images ------------------------------------------------------------------- */
15+
16+
.rst-content img {
17+
-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
18+
-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
19+
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
20+
display: block;
21+
height: auto!important;
22+
margin: 3rem auto!important;
23+
max-width: 700px;
24+
width: 100%!important;
725
}
826

27+
.rst-content img.align-left {
28+
margin-right: 2rem!important;
29+
max-width: 375px;
30+
}
31+
32+
.rst-content img.align-right {
33+
margin-left: 2rem!important;
34+
max-width: 400px;
35+
}
36+
37+
/* Navigation --------------------------------------------------------------- */
38+
939
#nav {
1040
background-color: #494949!important;
1141
margin: 0;
@@ -72,10 +102,24 @@ div#pulldown-menu {
72102
color: #aaaaaa;
73103
}
74104

105+
/* Side Menu ---------------------------------------------------------------- */
106+
75107
.wy-side-nav-search a {
76108
color: #ffffff;
77109
}
78110

111+
.wy-side-nav-search input[type=text] {
112+
border-color: #dd4815;
113+
}
114+
115+
.wy-nav-top {
116+
background-color: #dd4814;
117+
}
118+
119+
.wy-nav-top a {
120+
color: #ffffff!important;
121+
}
122+
79123
.wy-menu-vertical a:active {
80124
background-color: #dd4814;
81125
}
@@ -92,21 +136,51 @@ div#pulldown-menu {
92136
color: #97310e;
93137
}
94138

139+
/* Elements ----------------------------------------------------------------- */
140+
141+
.highlighted {
142+
padding: 0px !important;
143+
font-weight: inherit !important;
144+
background-color: #f1d40f !important;
145+
}
146+
95147
.wy-alert.wy-alert-success .wy-alert-title, .rst-content .wy-alert-success.note .wy-alert-title, .rst-content .wy-alert-success.attention .wy-alert-title, .rst-content .wy-alert-success.caution .wy-alert-title, .rst-content .wy-alert-success.danger .wy-alert-title, .rst-content .wy-alert-success.error .wy-alert-title, .rst-content .hint .wy-alert-title, .rst-content .important .wy-alert-title, .rst-content .tip .wy-alert-title, .rst-content .wy-alert-success.warning .wy-alert-title, .rst-content .wy-alert-success.seealso .wy-alert-title, .rst-content .wy-alert-success.admonition-todo .wy-alert-title, .wy-alert.wy-alert-success .rst-content .admonition-title, .rst-content .wy-alert.wy-alert-success .admonition-title, .rst-content .wy-alert-success.note .admonition-title, .rst-content .wy-alert-success.attention .admonition-title, .rst-content .wy-alert-success.caution .admonition-title, .rst-content .wy-alert-success.danger .admonition-title, .rst-content .wy-alert-success.error .admonition-title, .rst-content .hint .admonition-title, .rst-content .important .admonition-title, .rst-content .tip .admonition-title, .rst-content .wy-alert-success.warning .admonition-title, .rst-content .wy-alert-success.seealso .admonition-title, .rst-content .wy-alert-success.admonition-todo .admonition-title {
96148
background-color: #dd4814;
97149
}
98150

99151
.wy-alert.wy-alert-success, .rst-content .wy-alert-success.note, .rst-content .wy-alert-success.attention, .rst-content .wy-alert-success.caution, .rst-content .wy-alert-success.danger, .rst-content .wy-alert-success.error, .rst-content .hint, .rst-content .important, .rst-content .tip, .rst-content .wy-alert-success.warning, .rst-content .wy-alert-success.seealso, .rst-content .wy-alert-success.admonition-todo {
100-
background: rgba(0,0,0,0.05);
152+
background: rgba(0,0,0,0.05);
101153
}
102154

103155
/* override table width restrictions */
104156
.wy-table-responsive table td, .wy-table-responsive table th {
105-
white-space: normal;
157+
white-space: normal;
106158
}
107159

108160
.wy-table-responsive {
109-
margin-bottom: 24px;
110-
max-width: 100%;
111-
overflow: visible;
161+
margin-bottom: 24px;
162+
max-width: 100%;
163+
overflow: visible;
164+
}
165+
166+
.rst-content dl:not(.docutils) dt {
167+
background: #fbefeb;
168+
color: #dd4814;
169+
border-top: solid 3px #dd4814;
170+
}
171+
172+
.wy-plain-list-disc li ul, .rst-content .section ul li ul, .rst-content .toctree-wrapper ul li ul, article ul li ul {
173+
margin-bottom: 0.5rem;
174+
margin-top: -0.5rem;
175+
}
176+
177+
.rst-content dl:not(.docutils) dt:first-child {
178+
margin-top: 1rem;
179+
}
180+
181+
/* Footer ------------------------------------------------------------------- */
182+
183+
.rst-footer-buttons {
184+
margin-bottom: 2.5rem;
185+
margin-top: 2.5rem;
112186
}

0 commit comments

Comments
 (0)