From 41686b69418b88003496587829b5d859a2050878 Mon Sep 17 00:00:00 2001 From: anmoltripathi Date: Wed, 7 Oct 2020 18:53:27 +0530 Subject: [PATCH 1/7] Resolve banner issue --- src/css/main.css | 8 +++++++- src/partials/main.hbs | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/css/main.css b/src/css/main.css index 23adde67..7dfa60e9 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -65,9 +65,15 @@ main p { color: var(--color-brand-blue-secondary); } +.article-banner span { + font-size: var(--font-small); + margin: 0.5rem 1rem 0 0; + color: var(--color-brand-gray4); +} + .article-banner svg { margin-right: 10px; - margin-bottom: 10px; + /* margin-bottom: 10px; */ font-size: var(--heading-h3); } diff --git a/src/partials/main.hbs b/src/partials/main.hbs index 1a62d1a2..4cf2ee09 100644 --- a/src/partials/main.hbs +++ b/src/partials/main.hbs @@ -5,7 +5,11 @@ {{#if (and @root.page.componentVersion.prerelease (not @root.page.latest.prerelease))}}

You are viewing the documentation for a prerelease version.

{{else}} -

A newer version of this documentation is available.

+ +
+

A newer version of this documentation is available.

+ The page is for an End Of Life version +
{{/if}} View Latest From c66838333c7be2b68e482f96e227b75d1ec4faba Mon Sep 17 00:00:00 2001 From: anmoltripathi Date: Thu, 8 Oct 2020 16:49:25 +0530 Subject: [PATCH 2/7] resolve banner style in mobile devices --- src/css/main.css | 9 +++++++++ src/partials/main.hbs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/css/main.css b/src/css/main.css index 7dfa60e9..9a25e982 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -152,6 +152,7 @@ main p { .article-banner a.btn { padding: 0.675rem 1rem; font-size: var(--font-small); + margin: auto; } .article-banner p { @@ -161,4 +162,12 @@ main p { .article-banner p .fab { font-size: 1.2rem; } + + .article-banner { + justify-content: center; + } + + .banner-text { + margin: 0.5rem 0; + } } diff --git a/src/partials/main.hbs b/src/partials/main.hbs index 4cf2ee09..7af43942 100644 --- a/src/partials/main.hbs +++ b/src/partials/main.hbs @@ -6,7 +6,7 @@

You are viewing the documentation for a prerelease version.

{{else}} -
+ From 69fa88e89765d64413f535ef738f21d586a42b66 Mon Sep 17 00:00:00 2001 From: anmoltripathi Date: Fri, 9 Oct 2020 18:26:03 +0530 Subject: [PATCH 3/7] update redirect to hash location --- src/js/06-page-rating.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/06-page-rating.js b/src/js/06-page-rating.js index 12654c94..42b17630 100644 --- a/src/js/06-page-rating.js +++ b/src/js/06-page-rating.js @@ -76,5 +76,9 @@ }, } + if (window.location.hash) { + var hash = window.location.hash + $('html, body').animate({ 'scrollTop': $(hash).offset().top }, 'slow') + } /*eslint-env jquery*/ })(jQuery) From c0aac7cef43fce30c01f30ba48b0dc7d7dd9b5fd Mon Sep 17 00:00:00 2001 From: anmoltripathi Date: Tue, 13 Oct 2020 11:18:58 +0530 Subject: [PATCH 4/7] revert banner code --- src/css/main.css | 9 --------- src/partials/main.hbs | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/css/main.css b/src/css/main.css index 9a25e982..7dfa60e9 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -152,7 +152,6 @@ main p { .article-banner a.btn { padding: 0.675rem 1rem; font-size: var(--font-small); - margin: auto; } .article-banner p { @@ -162,12 +161,4 @@ main p { .article-banner p .fab { font-size: 1.2rem; } - - .article-banner { - justify-content: center; - } - - .banner-text { - margin: 0.5rem 0; - } } diff --git a/src/partials/main.hbs b/src/partials/main.hbs index 7af43942..f444a4d3 100644 --- a/src/partials/main.hbs +++ b/src/partials/main.hbs @@ -6,10 +6,7 @@

You are viewing the documentation for a prerelease version.

{{else}} - +

A newer version of this documentation is available.

{{/if}} View Latest
From d6941031e0ec133858d874733e11fe9ad5d0b1d2 Mon Sep 17 00:00:00 2001 From: anmoltripathi Date: Tue, 13 Oct 2020 11:28:48 +0530 Subject: [PATCH 5/7] revert banner code --- src/partials/main.hbs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/partials/main.hbs b/src/partials/main.hbs index eeb00f23..a4a9771a 100644 --- a/src/partials/main.hbs +++ b/src/partials/main.hbs @@ -4,7 +4,6 @@ {{#if ./missing}} {{#if (and @root.page.componentVersion.prerelease (not ./prerelease))}}
-<<<<<<< HEAD {{#if (and @root.page.componentVersion.prerelease (not @root.page.latest.prerelease))}}

You are viewing the documentation for a prerelease version.

{{else}} @@ -12,9 +11,6 @@

A newer version of this documentation is available.

{{/if}} View Latest -======= -

You are viewing the documentation for a prerelease version.

->>>>>>> 6f0d7c56aa847b17c98cef6ffa2595d15f6bc9df
{{/if}} {{else}} From ef9d4166951a9f13cbaed4e59ad93862f5a36d81 Mon Sep 17 00:00:00 2001 From: anmoltripathi Date: Tue, 13 Oct 2020 11:52:18 +0530 Subject: [PATCH 6/7] revert banner code --- src/partials/main.hbs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/partials/main.hbs b/src/partials/main.hbs index a4a9771a..2ef84a79 100644 --- a/src/partials/main.hbs +++ b/src/partials/main.hbs @@ -4,13 +4,7 @@ {{#if ./missing}} {{#if (and @root.page.componentVersion.prerelease (not ./prerelease))}}
-{{#if (and @root.page.componentVersion.prerelease (not @root.page.latest.prerelease))}} -

You are viewing the documentation for a prerelease version.

-{{else}} - -

A newer version of this documentation is available.

-{{/if}} -View Latest +

You are viewing the documentation for a prerelease version.

{{/if}} {{else}} From 3a658ac9a4aa91b4b058cf6b5aeee42e1087d658 Mon Sep 17 00:00:00 2001 From: anmoltripathi Date: Tue, 13 Oct 2020 18:01:03 +0530 Subject: [PATCH 7/7] resolved issues --- src/css/doc.css | 6 +++--- src/css/highlight.css | 6 ++++-- src/css/main.css | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/css/doc.css b/src/css/doc.css index cf84bfe1..59ad934a 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -577,13 +577,13 @@ ul ul ul { padding-right: var(--base-small-space); padding-top: var(--base-large-space); padding-bottom: var(--base-large-space); - white-space: pre-wrap; + /* white-space: pre-wrap; */ /* NOTE enable these styles if side-to-side scrolling is preferred */ - /* + overflow-wrap: normal; word-wrap: normal; overflow-x: auto; - */ + background: #0074e00e; border: 1px solid var(--color-brand-gray8); border-radius: 3px; diff --git a/src/css/highlight.css b/src/css/highlight.css index 334ebcf7..3465519f 100644 --- a/src/css/highlight.css +++ b/src/css/highlight.css @@ -13,7 +13,8 @@ Other CSS rules for styling code blocks: */ .hljs-comment, .hljs-meta { - color: #708090; + /* color: #708090; */ + color: var(--color-brand-gray1); } .hljs-keyword, @@ -46,7 +47,8 @@ Other CSS rules for styling code blocks: .hljs-built_in, .hljs-function .hljs-title { - color: #e6db74; + /* color: #e6db74; */ + color: var(--color-brand-orange); } .hljs-regexp { diff --git a/src/css/main.css b/src/css/main.css index 7dfa60e9..d83958da 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -65,15 +65,15 @@ main p { color: var(--color-brand-blue-secondary); } -.article-banner span { +/* .article-banner span { font-size: var(--font-small); margin: 0.5rem 1rem 0 0; color: var(--color-brand-gray4); -} +} */ .article-banner svg { margin-right: 10px; - /* margin-bottom: 10px; */ + margin-bottom: 10px; font-size: var(--heading-h3); }