Skip to content

Commit 437b6cb

Browse files
committed
Re-arrange header (all links are on left side now)
1 parent b7f2d20 commit 437b6cb

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

_includes/header.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<li class="left button">
1111
<a href="{{ site.github.url }}/docs" title="Documentation on how to use ev3dev">Docs</a>
1212
</li>
13+
<li class="left button">
14+
<a href="{{ site.github.url }}/news" title="News about ev3dev">News</a>
15+
</li>
1316
<li class="left button dropdown-button">
1417
<a>
1518
Community
@@ -19,16 +22,19 @@
1922
</a>
2023
<ul class="button-dropdown">
2124
<li>
22-
<a href="{{ site.github.url }}/projects" title="List of projects that use ev3dev">Projects Gallery</a>
25+
<a href="https://github.com/ev3dev/ev3dev/issues" title="Found a bug? Report it here.">Issues</a>
2326
</li>
2427
<li>
25-
<a href="{{ site.github.url }}/contributing" title="How to contribute to ev3dev">Contributing</a>
28+
<a href="{{ site.github.url }}/projects" title="List of projects that use ev3dev">Projects Gallery</a>
2629
</li>
2730
<li>
28-
<a href="{{ site.github.url }}/news" title="News about ev3dev">News</a>
31+
<a href="{{ site.github.url }}/contributing" title="How to contribute to ev3dev">Contributing</a>
2932
</li>
3033
</ul>
3134
</li>
35+
<li class="left button">
36+
<a href="https://github.com/ev3dev/ev3dev/releases" title="SD card image files">Download</a>
37+
</li>
3238
<!-- items below float right, so appear in reverse order -->
3339
<li class="right header-box" id="search-li">
3440
<input type="text" id="search-input" onfocus="searchFocus()" onkeyup="searchTextChanged()" placeholder="Quick Nav" onkeypress="this.onkeyup();" onpaste="this.onkeyup();" oninput="this.onkeyup();" />
@@ -55,12 +61,6 @@ <h2>In other pages</h2>
5561
</div>
5662
</div>
5763
</li>
58-
<li class="right button">
59-
<a href="https://github.com/ev3dev/ev3dev/issues" title="Found a bug? Report it here.">Issues</a>
60-
</li>
61-
<li class="right button">
62-
<a href="https://github.com/ev3dev/ev3dev/releases" title="SD card image files">Download</a>
63-
</li>
6464
</nav>
6565
</div>
6666

javascripts/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
if ($('#header').height() <= 50) {
66

77
$('#header').removeClass('mobile-hidden');
8-
$('#header').animate({ height: 446 }, 400, function () {
8+
$('#header').animate({ height: 416 }, 400, function () {
99
$('#header').height('auto');
1010
});
1111
}

stylesheets/styles.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -970,16 +970,16 @@ dt {
970970
}
971971

972972
.button .button-dropdown {
973-
top: -20px;
973+
margin-top: -20px;
974974
opacity: 0;
975+
position: absolute;
975976

976977
transition: all 100ms ease-in-out;
977-
transition-property: opacity, top, visibility;
978+
transition-property: opacity, margin-top, visibility;
978979
transition-delay: 1ms;
979980

980981
padding: 5px 35px 5px 10px;
981982
width: 100px;
982-
position: relative;
983983
color: #efefef;
984984
background: #191919;
985985
-moz-border-radius: 2px;
@@ -996,7 +996,7 @@ dt {
996996
}
997997

998998
.button.dropdown-button > a {
999-
width: 120px;
999+
width: 88px;
10001000
visibility: visible !important;
10011001
}
10021002

@@ -1009,13 +1009,13 @@ dt {
10091009
cursor: pointer;
10101010
}
10111011

1012-
.button.dropdown-button:hover {
1012+
.button.dropdown-button:hover {
10131013
visibility: visible;
10141014
}
10151015

10161016
.button:hover .button-dropdown {
10171017
opacity: 1;
1018-
top: 0;
1018+
margin-top: 0;
10191019
}
10201020

10211021
.nav-dropdown-arrow {
@@ -1386,7 +1386,7 @@ section #title p {
13861386
transition: none;
13871387

13881388
opacity: 1;
1389-
1389+
margin-top: 0;
13901390
background-color: transparent;
13911391
padding: 0;
13921392
width: 100%;

0 commit comments

Comments
 (0)