Skip to content

Commit a9068b1

Browse files
Kadee80astaff
authored andcommitted
Add ot nav to docs (#130)
* customized template to include new nav 9not yet live on site * added responsive style for midsize screen * updated nav styles and behaviors * updated nav height to match docs * import master.css from website, renamed style sheets for clarity, added responsive margin
1 parent 69083a4 commit a9068b1

File tree

3 files changed

+351
-54
lines changed

3 files changed

+351
-54
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* This style sheet overrides imported ot website styles to work with docs defaults */
2+
3+
div#nav-spacer {
4+
height: 70px;
5+
width: 100%;
6+
-webkit-transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
7+
transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
8+
}
9+
10+
div#nav-spacer.nav-open {
11+
height: 150px;
12+
}
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
/* This file intentionally left blank. */
2-
div.body p{
3-
line-height: 20pt;
1+
/* OT NAV */
2+
3+
body {
4+
padding: 0;
5+
margin: 0;
6+
}
7+
8+
/* DOCS */
9+
10+
div.body p {
11+
line-height: 20pt;
412
}
513

614
div.body h1 {
@@ -9,135 +17,127 @@ div.body h1 {
917
padding-top: 0;
1018
font-size: 2.4em;
1119
min-height: 78px;
12-
1320
}
1421

15-
div.body h1 + p{
16-
padding-top: 24px;
22+
div.body h1 + p {
23+
padding-top: 24px;
1724
}
1825

19-
div.sphinxsidebar h2,
20-
div.sphinxsidebar h3,
26+
div.sphinxsidebar h2,
27+
div.sphinxsidebar h3,
2128
div.sphinxsidebar h4,
2229
div.sphinxsidebar h5,
2330
div.sphinxsidebar h6,
24-
div.body h2,
25-
div.body h3,
26-
div.body h4,
31+
div.body h2,
32+
div.body h3,
33+
div.body h4,
2734
div.body h5 {
28-
font-family: Open Sans;
35+
font-family: Open Sans;
2936
}
3037

31-
div.sphinxsidebar h3 a,
38+
div.sphinxsidebar h3 a,
3239
div.sphinxsidebar h3 a:hover,
33-
div.body h2{
34-
font-size: 22px;
40+
div.body h2 {
41+
font-size: 22px;
3542
}
3643

37-
@media screen and (max-width: 875px), (max-device-width: 767px) {
38-
44+
@media screen and (max-width: 875px),
45+
(max-device-width: 767px) {
3946
body {
4047
margin: 0;
4148
padding: 20px 30px;
4249
}
43-
4450
div.documentwrapper {
4551
float: none;
4652
background: #fff;
4753
text-align: center;
4854
}
49-
5055
div.sphinxsidebar {
5156
display: block;
5257
float: none;
5358
width: 102.5%;
5459
margin: -20px -30px 20px -30px;
55-
padding: 10px 20px;
60+
padding: 60px 20px;
5661
background: #FFF;
5762
color: #111;
5863
}
59-
60-
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
64+
div.sphinxsidebar h3,
65+
div.sphinxsidebar h4,
66+
div.sphinxsidebar p,
6167
div.sphinxsidebar h3 a {
6268
color: #111;
6369
}
64-
6570
div.sphinxsidebar a {
6671
color: #111;
6772
}
68-
6973
div.sphinxsidebar p.logo {
7074
display: inline-block;
7175
}
72-
76+
img.logo {
77+
display: none;
78+
}
7379
div.document {
7480
width: 100%;
7581
margin: 0;
7682
}
77-
7883
div.footer {
7984
display: none;
8085
}
81-
8286
div.bodywrapper {
8387
margin: 0;
8488
}
85-
8689
div.body {
8790
min-height: 0;
8891
padding: 0;
8992
}
90-
9193
.rtd_doc_footer {
9294
display: none;
9395
}
94-
9596
.document {
9697
width: auto;
9798
}
98-
9999
.footer {
100100
width: auto;
101101
}
102-
103102
.footer {
104103
width: auto;
105104
}
106-
107-
/* .github {
105+
/* .github {
108106
display: none;
109107
} */
110-
111108
div.sphinxsidebar {
112109
position: relative;
113110
margin-left: 0;
114111
}
115-
116-
pre, tt, code {
117-
font-size: 1.5em;
112+
pre,
113+
tt,
114+
code {
115+
font-size: 1.5em;
118116
}
119117
}
120118

121-
122-
div.body p.caption{
119+
div.body p.caption {
123120
font-size: 22px;
124121
}
125122

126-
127-
ul{
123+
ul {
128124
list-style-type: none;
129125
margin-left: 0;
130126
}
131127

132-
ul ul{
128+
ul ul {
133129
list-style-type: circle;
134130
margin-left: 30px;
135131
color: #999;
136132
}
137133

138134
@media screen and (min-device-width: 320px)and (max-device-width: 640px) {
139-
140-
pre, tt, code {
141-
font-size: 2em;
135+
pre,
136+
tt,
137+
code {
138+
font-size: 2em;
142139
}
143-
}
140+
}
141+
142+
143+

0 commit comments

Comments
 (0)