Skip to content

Commit d047750

Browse files
author
Felix Hennig
committed
made mobile work
1 parent 86bb219 commit d047750

File tree

3 files changed

+39
-26
lines changed

3 files changed

+39
-26
lines changed

src/css/base.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,12 @@ body ::-webkit-scrollbar-thumb {
125125
max-width: 1280px;
126126
margin: 0 auto;
127127
}
128+
129+
.container2 {
130+
display: flex;
131+
margin: 0 0;
132+
}
133+
134+
.space-between {
135+
justify-content: space-between;
136+
}

src/css/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ body {
283283
transition: max-height 0.2s ease, padding 0.2s ease;
284284
}
285285

286-
.navbar-sub .container {
286+
.navbar-sub .container2 {
287287
flex-direction: column;
288288
}
289289

src/partials/header-content.hbs

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,37 @@
2323
</div>
2424
</nav>
2525
<nav id="navbar-sub" class="navbar-sub">
26-
<div class="container">
27-
{{#> navbar }}
28-
navbar.hbs partial not found - you're seeing failover content
29-
<a class="navbar-sub-item" href="#">Home</a>
30-
<div class="navbar-sub-item drop-down">
31-
Operators
32-
<div class="drop-down-content">
33-
<a class="drop-down-item" href="#">Operator 1</a>
34-
<a class="drop-down-item" href="#">Operator 2</a>
35-
</div>
36-
</div>
37-
{{/navbar}}
38-
{{#with @root.page.versions}}
39-
<div class="page-versions">
40-
<button class="version-menu-toggle" title="Show other versions of page">{{@root.page.componentVersion.displayVersion}}</button>
41-
<div class="version-menu">
42-
{{#each this}}
43-
<a class="version
44-
{{~#if (eq ./version @root.page.version)}} is-current{{/if~}}
45-
{{~#if ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">{{./displayVersion}}</a>
46-
{{/each}}
26+
<div class="container space-between">
27+
<div class="container2">
28+
{{#> navbar }}
29+
navbar.hbs partial not found - you're seeing failover content
30+
<a class="navbar-sub-item" href="#">Home</a>
31+
<div class="navbar-sub-item drop-down">
32+
Operators
33+
<div class="drop-down-content">
34+
<a class="drop-down-item" href="#">Operator 1</a>
35+
<a class="drop-down-item" href="#">Operator 2</a>
36+
</div>
37+
</div>
38+
{{/navbar}}
39+
<a class="arrow" href="javascript:document.querySelector('.navbar-sub').classList.toggle('open')">
40+
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg>
41+
</a>
42+
</div>
43+
<div class="container2">
44+
{{#with @root.page.versions}}
45+
<div class="page-versions">
46+
<button class="version-menu-toggle" title="Show other versions of page">{{@root.page.componentVersion.displayVersion}}</button>
47+
<div class="version-menu">
48+
{{#each this}}
49+
<a class="version
50+
{{~#if (eq ./version @root.page.version)}} is-current{{/if~}}
51+
{{~#if ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">{{./displayVersion}}</a>
52+
{{/each}}
53+
</div>
4754
</div>
55+
{{/with}}
4856
</div>
49-
{{/with}}
50-
<a class="arrow" href="javascript:document.querySelector('.navbar-sub').classList.toggle('open')">
51-
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg>
52-
</a>
5357
</div>
5458
</nav>
5559
</header>

0 commit comments

Comments
 (0)