Skip to content

Commit 3a3b2ff

Browse files
author
Kadee80
committed
add modules to navigation
1 parent 69012ad commit 3a3b2ff

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

api/docs/source/static/override_master.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ div#nav-spacer.nav-open {
1212
text-decoration: none;
1313
}
1414

15-
header nav ul li a.active{
15+
header nav ul li ul li a:hover, header nav ul li ul li a.active:hover{
1616
text-decoration: none;
17+
color: black;
1718
}
19+
20+
header nav ul li a:hover, header nav ul li a.active:hover{
21+
text-decoration: none;
22+
color: black;
23+
}
24+
1825
@media screen and (max-width: 875px),
1926
(max-device-width: 767px) {
2027
header{

api/docs/source/templates/layout.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
<ul class="products">
7373
<li class="mobile">Products</li>
7474
<li><a href="https://opentrons.com/robots">Robots</a></li>
75+
<li><a href="https://opentrons.com/#/modules">Modules</a></li>
7576
<li><a href="https://opentrons.com/ot-app">OT App</a></li>
7677
<li><a href="https://opentrons.com/protocol-library/">Protocol Library</a></li>
7778
<li>&nbsp;</li>
78-
<li>&nbsp;</li>
7979
</ul>
8080
<ul class="company">
8181
<li class="mobile">Company</li>
@@ -106,6 +106,15 @@
106106
$('#dropdown').slideToggle(500);
107107
});
108108

109+
$('#dropdown ul').mouseenter(function(event) {
110+
$('*').removeClass('active');
111+
$(this).addClass('active');
112+
});
113+
114+
$('#dropdown ul').mouseleave(function(event) {
115+
$('*').removeClass('active');
116+
});
117+
109118
$('.menu-toggle').mouseenter(function(event) {
110119
event.preventDefault();
111120
var target = $(this).attr('data-dropdown');
@@ -170,6 +179,7 @@ <h1 class="title">Get In Touch</h1>
170179
<span class="link-title">PRODUCTS</span>
171180
<ul class="products-list">
172181
<li><a href="https://opentrons.com/robots">Robots</a></li>
182+
<li><a href="https://opentrons.com/#/modules">Modules</a></li>
173183
<li><a href="https://opentrons.com/ot-app">OT App</a></li>
174184
<li><a href="https://opentrons.com/protocol-library/">Protocol Library</a></li>
175185
</ul>

0 commit comments

Comments
 (0)