You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/04/17 09:50:25 UTC
[camel-website] branch master updated: Display Category Tags on
blog pages for small screens (#348)
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/master by this push:
new 18f4a16 Display Category Tags on blog pages for small screens (#348)
18f4a16 is described below
commit 18f4a16023ce51a91f454aab06d4cb6ca2a1170e
Author: rimshach <44...@users.noreply.github.com>
AuthorDate: Fri Apr 17 02:50:15 2020 -0700
Display Category Tags on blog pages for small screens (#348)
---
antora-ui-camel/src/css/blog.css | 7 -------
layouts/blog/list.html | 12 +++++++++---
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/antora-ui-camel/src/css/blog.css b/antora-ui-camel/src/css/blog.css
index b58089a..c29a13f 100644
--- a/antora-ui-camel/src/css/blog.css
+++ b/antora-ui-camel/src/css/blog.css
@@ -176,13 +176,6 @@ article.blog p {
}
}
-/* for mobile screens */
-@media screen and (max-width: 1023px) {
- .blog.list aside {
- display: none;
- }
-}
-
.blog ul,
.blog ol {
padding-bottom: 1rem;
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index 9ea3c52..1e83c14 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -1,15 +1,21 @@
{{ partial "header.html" . }}
<div class="body">
- <main role="main" class="doc blog list">
- <aside>
- <h3>Categories</h3>
+ <div class="toolbar" role="navigation">
+ <button class="nav-toggle">
+ </button>
+ </div>
+ <main role="main" class="nav-container doc blog list">
+ <aside class="nav">
<ul>
+ <h3>Categories</h3>
{{ range .Site.Taxonomies.categories.Alphabetical }}
<li><a class="category" href="{{ "/categories/" | relURL }}{{ .Name | urlize }}/">{{ .Name | upper }}<span>{{ .Count }}</span></a></li>
{{ end }}
</ul>
</aside>
+ </main>
+ <main role="main" class="doc blog list">
<div>
{{ $pages := ($.Paginator 3).Pages }}
{{ range $pages }}