Skip to content

Commit 3250f15

Browse files
nelson-liuTomDLT
authored andcommitted
[MRG + 1] Rebased navbar fix (scikit-learn#7202)
* Fixed the documentation item on the navbars alignment. * Added z-index to the navbar so it doesn't get covered by page headers
1 parent aaf203d commit 3250f15

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/themes/scikit-learn/static/nature.css_t

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ div.navbar div.nav-icon {
116116
background: #ff9c34;
117117
padding: 5px 10px;
118118
border-radius: 5px;
119+
z-index: 10;
119120
}
120121
div.navbar ul li {
121122
display: none;
@@ -137,6 +138,7 @@ div.navbar div.nav-icon {
137138
top: 10px;
138139
margin-right: 10px;
139140
background: #ff9c34;
141+
z-index: 9;
140142
}
141143
div.navbar.responsive > ul li {
142144
display: flex;
@@ -1186,6 +1188,7 @@ div.navbar ul.dropdown-menu li a.btn {
11861188
vertical-align: middle;
11871189
padding: 0;
11881190
padding-left: 4px;
1191+
font-size: 8px;
11891192
}
11901193

11911194
.navbar .btn-group .btn {
@@ -1197,10 +1200,6 @@ div.navbar ul.dropdown-menu li a.btn {
11971200
box-shadow: inset 0 0px 0 rgba(255,255,255,.2), 0 0px 0px rgba(0,0,0,.05);
11981201
}
11991202

1200-
a.btn.dropdown-toggle, a.btn.dropdown-toggle:hover{
1201-
vertical-align: baseline;
1202-
}
1203-
12041203
li#other-versions {
12051204
position: absolute;
12061205
left: inherit;
@@ -1268,7 +1267,7 @@ li#other-versions {
12681267
color: #fff;
12691268
vertical-align: middle;
12701269
border-top-color: rgb(255, 255, 255);
1271-
padding-bottom: 8px;
1270+
padding-bottom: 5px;
12721271
}
12731272

12741273
.navbar .dropdown-menu .divider {

0 commit comments

Comments
 (0)