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/03/30 13:25:24 UTC

[camel-website] branch master updated: CAMEL-14745: make changes to create a responsive mobile design

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 7e98f5a  CAMEL-14745: make changes to create a  responsive mobile design
7e98f5a is described below

commit 7e98f5ad3cad7d3a266e796b29e2611ab0665b6f
Author: AemieJ <ae...@hotmail.co.uk>
AuthorDate: Thu Mar 26 21:27:18 2020 +0530

    CAMEL-14745: make changes to create a  responsive mobile design
---
 antora-ui-camel/src/css/blog.css           |  1 -
 antora-ui-camel/src/css/doc.css            |  3 +++
 antora-ui-camel/src/css/frontpage.css      |  3 +--
 content/blog/LTS-Release-Schedule/index.md | 19 ++++++++++---------
 layouts/blog/post.html                     |  2 +-
 layouts/download/download.html             |  5 ++++-
 layouts/shortcodes/table.html              |  3 ++-
 7 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/antora-ui-camel/src/css/blog.css b/antora-ui-camel/src/css/blog.css
index 7a80d1b..afeb009 100644
--- a/antora-ui-camel/src/css/blog.css
+++ b/antora-ui-camel/src/css/blog.css
@@ -97,7 +97,6 @@ article.blog p {
 
 .blog .post-content pre {
   max-width: 800px;
-  white-space: pre-wrap;
 }
 
 .blog .post .post-content table {
diff --git a/antora-ui-camel/src/css/doc.css b/antora-ui-camel/src/css/doc.css
index ab2d9f9..8bc134c 100644
--- a/antora-ui-camel/src/css/doc.css
+++ b/antora-ui-camel/src/css/doc.css
@@ -28,6 +28,7 @@
   line-height: 1.3;
   margin: 1rem 0 0;
   text-transform: uppercase;
+  word-wrap: break-word;
 }
 
 .static > h1:first-child,
@@ -118,6 +119,7 @@
 
 .doc a {
   color: var(--link-font-color);
+  word-break: break-word;
 }
 
 .doc a:hover {
@@ -171,6 +173,7 @@
 .doc .verseblock,
 .doc .quoteblock {
   margin: 1rem 0 0;
+  word-break: break-word;
 }
 
 .doc table.tableblock {
diff --git a/antora-ui-camel/src/css/frontpage.css b/antora-ui-camel/src/css/frontpage.css
index b6807e2..28ac0fc 100644
--- a/antora-ui-camel/src/css/frontpage.css
+++ b/antora-ui-camel/src/css/frontpage.css
@@ -58,7 +58,6 @@ header.frontpage a:active {
   font-weight: bold;
   outline: none;
   display: inline-block;
-  white-space: nowrap;
   box-shadow: 0 4px #8e480b;
 }
 
@@ -161,7 +160,6 @@ section.frontpage.projects .project {
 }
 
 section.frontpage.projects .project h1 {
-  white-space: nowrap;
   padding: 1rem 0;
   flex: 1;
 }
@@ -192,6 +190,7 @@ section.frontpage h6 {
   line-height: 1.3;
   margin: 1rem 0 0;
   text-transform: uppercase;
+  word-wrap: break-word;
 }
 
 section.frontpage a {
diff --git a/content/blog/LTS-Release-Schedule/index.md b/content/blog/LTS-Release-Schedule/index.md
index f97662e..6dd4ac5 100644
--- a/content/blog/LTS-Release-Schedule/index.md
+++ b/content/blog/LTS-Release-Schedule/index.md
@@ -28,15 +28,16 @@ but our LTS is limited to a 1-year schedule (typically same timeframe for Camel
 
 The tentative release schedule for 2020 is as follows:
 
- Release | Date     | LTS | EOL      | Java  
----------|----------|-----|----------|------
- 3.1.0   | Feb 2020 | No  |          | 8, 11
- 3.2.0   | Apr 2020 | No  |          | 8, 11
- 3.3.0   | Jun 2020 | Yes | Jun 2021 | 8, 11
- 3.4.0   | Aug 2020 | No  |          | 11
- 3.5.0   | Oct 2020 | No  |          | 11
- 3.6.0   | Dec 2020 | Yes | Dec 2021 | 11
-
+{{< table >}}
+| Release | Date     | LTS | EOL      | Java  
+|---------|----------|-----|----------|------
+| 3.1.0   | Feb 2020 | No  |          | 8, 11
+| 3.2.0   | Apr 2020 | No  |          | 8, 11
+| 3.3.0   | Jun 2020 | Yes | Jun 2021 | 8, 11
+| 3.4.0   | Aug 2020 | No  |          | 11
+| 3.5.0   | Oct 2020 | No  |          | 11
+| 3.6.0   | Dec 2020 | Yes | Dec 2021 | 11
+{{< /table >}}
 
 **NOTE:** The schedule is tentative and subject for change
 (for example date's may slip into the following month). 
diff --git a/layouts/blog/post.html b/layouts/blog/post.html
index 5e2b7a3..a44547a 100644
--- a/layouts/blog/post.html
+++ b/layouts/blog/post.html
@@ -20,7 +20,7 @@
             {{ end }}
             </p>
         </aside>
-        <div class="post-content">
+        <div class="post-content table-wrapper">
             {{ $featured := (.Resources.ByType "image").GetMatch "*featured*" }}
             {{ with $featured }}
               {{ if ne $featured.MediaType.SubType "svg" }}
diff --git a/layouts/download/download.html b/layouts/download/download.html
index 9bd2e47..a37d93b 100644
--- a/layouts/download/download.html
+++ b/layouts/download/download.html
@@ -29,6 +29,7 @@
 
             {{ $major := "" }}
             {{ $cnt := 1 }}
+            <div class="table-wrapper">
             <table class="tableblock frame-all grid-all stretch">
                 <thead>
                     <tr>
@@ -63,11 +64,13 @@
                     {{ $major = .Params.version | replaceRE "\\.\\d+$" "" }}
                 {{ end }}
             </table>
+            </div>
 
             <h3>Source Distribution</h3>
 
             {{ $major := "" }}
             {{ $cnt := 1 }}
+            <div class="table-wrapper">
             <table class="tableblock frame-all grid-all stretch">
                 <thead>
                     <tr>
@@ -96,7 +99,7 @@
                     {{ $major = .Params.version | replaceRE "\\.\\d+$" "" }}
                 {{ end }}
             </table>
-
+            </div>
             <h3>Older releases</h3>
 
             All releases are listed on the <a href="{{ "/releases/" | relURL}}">Releases</a> archive, here you will also find releases that are no longer supported.
diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html
index 22ba0cd..f301a69 100644
--- a/layouts/shortcodes/table.html
+++ b/layouts/shortcodes/table.html
@@ -1,3 +1,4 @@
 {{ $htmlTable := .Inner | markdownify }}
-{{ $htmlTable := replace $htmlTable "<table>" "<table class=\"tableblock frame-all grid-all stretch\">" }}
+{{ $htmlTable := replace $htmlTable "<table>" "<div class=\"table-wrapper \"><table class=\"tableblock frame-all grid-all stretch\">" }}
+{{ $htmlTable := replace $htmlTable "</table>" "</table></div>" }}
 {{ $htmlTable | safeHTML }}