You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/03/12 16:32:25 UTC
[incubator-hop-website] branch master updated: HOP-2603 mobile menu
styling
This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop-website.git
The following commit(s) were added to refs/heads/master by this push:
new 68b203b HOP-2603 mobile menu styling
new 6e5f07f Merge pull request #28 from bamaer/HOP-2603
68b203b is described below
commit 68b203b3a45d4eaa1393f9771ea1b053bba626fb
Author: Bart Maertens <ba...@know.bi>
AuthorDate: Fri Mar 12 16:53:19 2021 +0100
HOP-2603 mobile menu styling
---
antora-ui-hop/src/css/header.css | 11 ++++++++++-
antora-ui-hop/src/partials/header-content.hbs | 4 ++--
layouts/partials/header.html | 4 ++--
3 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/antora-ui-hop/src/css/header.css b/antora-ui-hop/src/css/header.css
index ace30a0..0585851 100644
--- a/antora-ui-hop/src/css/header.css
+++ b/antora-ui-hop/src/css/header.css
@@ -186,7 +186,7 @@ body {
height: 100%;
box-shadow: 0 16px 16px 0 rgba(10, 10, 10, 0.1);
overflow-y: auto;
- top: 4rem;
+ top: 8rem;
right: 0;
}
@@ -194,6 +194,15 @@ body {
.navbar-menu .navbar-link:hover {
background-color: var(--navbar-menu-hover-background);
}
+
+ .navbar-item {
+ width: 100%;
+ }
+
+ .mobile-heading {
+ color: var(--color-asf-dark-blue);
+ font-weight: bold;
+ }
}
@media screen and (min-width: 1024px) {
diff --git a/antora-ui-hop/src/partials/header-content.hbs b/antora-ui-hop/src/partials/header-content.hbs
index dae8ccc..7114839 100644
--- a/antora-ui-hop/src/partials/header-content.hbs
+++ b/antora-ui-hop/src/partials/header-content.hbs
@@ -8,9 +8,9 @@
{{#each @items}}
{{#if children}}
<div class="navbar-item has-dropdown is-hoverable">
- <a class="navbar-link" href="#">{{name}}</a>
+ <a class="navbar-link mobile-heading" href="#">{{name}}</a>
{{else}}
- <a class="navbar-item" href="{{../../siteRootPath}}/{{url}}">{{name}}</a>
+ <a class="navbar-item mobile-heading" href="{{../../siteRootPath}}/{{url}}">{{name}}</a>
{{/if}}
{{#if children}}
<div class="navbar-dropdown">
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e9f82b6..b5f1836 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -35,7 +35,7 @@
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<div class="navbar-item has-dropdown is-hoverable">
- <a class="navbar-link" href="#">{{ .Name }}</a>
+ <a class="navbar-link mobile-heading" href="#">{{ .Name }}</a>
<div class="navbar-dropdown">
{{ range .Children }}
<a class="navbar-item" href="{{ .URL | relURL }}">{{ .Name }}</a>
@@ -43,7 +43,7 @@
</div>
</div>
{{ else }}
- <a class="navbar-item" href="{{ .URL | relURL }}">{{ .Name }}</a>
+ <a class="navbar-item mobile-heading" href="{{ .URL | relURL }}">{{ .Name }}</a>
{{ end }}
{{ end }}
</div>