Skip to content

Commit 1de18f7

Browse files
committed
Add initial version of files
- css/matpower.css - CSS style sheet for HTML documentation - mathCmds.tex.txt - LaTeX macros available also to MathJax - preamble.tex.txt - LaTeX preamble with packages and more macros - prolog.rst.txt - ReST prolog included for all .rst files, defines roles and substitutions
1 parent a69568b commit 1de18f7

File tree

4 files changed

+547
-0
lines changed

4 files changed

+547
-0
lines changed

css/matpower.css

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
/* matpower.css */
2+
/*
3+
MathJax {
4+
vertical-align: middle;
5+
}
6+
div.math {
7+
vertical-align: middle;
8+
}
9+
.eqno {
10+
float: right;
11+
}
12+
*/
13+
14+
/* From https://github.com/readthedocs/sphinx_rtd_theme/pull/383#issuecomment-348803509 */
15+
div.math {
16+
position: relative;
17+
padding-right: 2.5em;
18+
}
19+
.eqno {
20+
height: 100%;
21+
position: absolute;
22+
right: 0;
23+
padding-left: 5px;
24+
padding-bottom: 5px;
25+
padding-right: 1px;
26+
}
27+
.eqno:before {
28+
display: inline-block;
29+
height: 100%;
30+
vertical-align: middle;
31+
content: "";
32+
}
33+
.eqno .headerlink {
34+
display: none;
35+
visibility: hidden;
36+
font-size: 14px;
37+
padding-left: .3em;
38+
}
39+
.eqno:hover .headerlink {
40+
display: inline-block;
41+
visibility: hidden;
42+
margin-right: -1.05em;
43+
}
44+
.eqno .headerlink:after {
45+
visibility: visible;
46+
content: "\f0c1";
47+
font-family: FontAwesome;
48+
display: inline-block;
49+
margin-left: -.9em;
50+
}
51+
.MathJax_Display {
52+
max-width: 100%;
53+
overflow-x: auto;
54+
overflow-y: hidden;
55+
}
56+
57+
/*
58+
..eqno {
59+
margin-left: 5px;
60+
float: right;
61+
}
62+
.math .headerlink {
63+
display: none;
64+
visibility: hidden;
65+
}
66+
.math:hover .headerlink {
67+
display: inline-block;
68+
visibility: visible;
69+
margin-right: -0.7em;
70+
}
71+
*/
72+
73+
/* admonition title */
74+
.rst-content .note .admonition-title, .rst-content .note .wy-alert-title, .rst-content .seealso .admonition-title, .rst-content .seealso .wy-alert-title, .rst-content .wy-alert-info.admonition-todo .admonition-title, .rst-content .wy-alert-info.admonition-todo .wy-alert-title, .rst-content .wy-alert-info.admonition .admonition-title, .rst-content .wy-alert-info.admonition .wy-alert-title, .rst-content .wy-alert-info.attention .admonition-title, .rst-content .wy-alert-info.attention .wy-alert-title, .rst-content .wy-alert-info.caution .admonition-title, .rst-content .wy-alert-info.caution .wy-alert-title, .rst-content .wy-alert-info.danger .admonition-title, .rst-content .wy-alert-info.danger .wy-alert-title, .rst-content .wy-alert-info.error .admonition-title, .rst-content .wy-alert-info.error .wy-alert-title, .rst-content .wy-alert-info.hint .admonition-title, .rst-content .wy-alert-info.hint .wy-alert-title, .rst-content .wy-alert-info.important .admonition-title, .rst-content .wy-alert-info.important .wy-alert-title, .rst-content .wy-alert-info.tip .admonition-title, .rst-content .wy-alert-info.tip .wy-alert-title, .rst-content .wy-alert-info.warning .admonition-title, .rst-content .wy-alert-info.warning .wy-alert-title, .rst-content .wy-alert.wy-alert-info .admonition-title, .wy-alert.wy-alert-info .rst-content .admonition-title, .wy-alert.wy-alert-info .wy-alert-title {
75+
background: #568085;
76+
/*background: #e5ba40;*/ /* yellow */
77+
}
78+
/* admonition body */
79+
.rst-content .note, .rst-content .seealso, .rst-content .wy-alert-info.admonition, .rst-content .wy-alert-info.admonition-todo, .rst-content .wy-alert-info.attention, .rst-content .wy-alert-info.caution, .rst-content .wy-alert-info.danger, .rst-content .wy-alert-info.error, .rst-content .wy-alert-info.hint, .rst-content .wy-alert-info.important, .rst-content .wy-alert-info.tip, .rst-content .wy-alert-info.warning, .wy-alert.wy-alert-info {
80+
background-color: #e9f4f0;
81+
/*background-color: #faf1d9;*/ /* yellow */
82+
}
83+
/* class */
84+
html.writer-html4 .rst-content dl:not(.docutils)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt {
85+
/* teal */
86+
background-color: #d2e9e1;
87+
border-top-color: #8eaca6;
88+
color: #568085;
89+
/*background-color: #faf1d9;*/ /* yellow */
90+
}
91+
html.writer-html4 .rst-content dl:not(.docutils) dl:not(.field-list)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dl:not(.field-list):not(.attribute):not(.method):not(.staticmethod)>dt {
92+
padding-left: 6px;
93+
/* teal */
94+
background-color: #e7f3ef;
95+
border-left-color: #8eaca6;
96+
97+
/* yellow */
98+
/* background-color: #faf1d9;
99+
border-left-color: #e5ba40;*/
100+
}
101+
102+
103+
/* standard links */
104+
a {
105+
color: #568085;
106+
}
107+
a:visited {
108+
color: #8eaca6; /* or #568085 */
109+
}
110+
a:hover {
111+
color: #8eaca6;
112+
}
113+
114+
/* menu */
115+
.wy-menu-vertical a {
116+
color: #8eaca6;
117+
}
118+
.wy-menu-vertical a:visited {
119+
color: #8eaca6;
120+
}
121+
.wy-menu-vertical a:hover {
122+
color: #8eaca6;
123+
}
124+
.wy-menu-vertical a:active {
125+
color: #013f53;
126+
background-color: #d2e9e1;
127+
}
128+
129+
/* menu header */
130+
.wy-menu-vertical header, .wy-menu-vertical p.caption {
131+
color: #e5ba40;
132+
}
133+
134+
.wy-side-nav-search .wy-dropdown>a, .wy-side-nav-search>a {
135+
color: #faf1d9;
136+
}
137+
138+
/* allow text wrapping in table cells */
139+
.wy-table-responsive table td {
140+
white-space: normal;
141+
}
142+
143+
.hl {
144+
background-color: #fd0;
145+
}

0 commit comments

Comments
 (0)