From 13f822787783fa7a16e16d7468969054b7293e6c Mon Sep 17 00:00:00 2001 From: Martin Jorn Rogalla Date: Tue, 24 Feb 2015 22:04:49 +0100 Subject: [PATCH 1/4] Implemented the "Improve this page" feature. #3495 Created an "Improve this page" link for all the documentation headers. The feature uses the fa-pencil icon of font awesome. Improvement over #3504(closed). See issue #3495 for more information. Signed-off-by: Martin Jorn Rogalla --- site/_layouts/docs.html | 3 +++ site/_sass/_font-awesome.scss | 3 +++ site/_sass/_style.scss | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/site/_layouts/docs.html b/site/_layouts/docs.html index a0a8a5c1..d4d08026 100644 --- a/site/_layouts/docs.html +++ b/site/_layouts/docs.html @@ -9,6 +9,9 @@ layout: default
+

{{ page.title }}

{{ content }} {% include section_nav.html %} diff --git a/site/_sass/_font-awesome.scss b/site/_sass/_font-awesome.scss index 24ae2b61..d90676c2 100644 --- a/site/_sass/_font-awesome.scss +++ b/site/_sass/_font-awesome.scss @@ -20,3 +20,6 @@ .fa-link:before { content: "\f0c1"; } +.fa-pencil:before { + content: "\f040"; +} diff --git a/site/_sass/_style.scss b/site/_sass/_style.scss index 98ebebaa..154887dc 100644 --- a/site/_sass/_style.scss +++ b/site/_sass/_style.scss @@ -528,6 +528,12 @@ aside { } } +.improve { + margin-top: 0; + padding: 25px 0 0; + font-size: 16px; +} + .docs-nav-mobile select { color: #000; width: 100%; From e2306ed79bf9f01bbee83608c2892b80185ba557 Mon Sep 17 00:00:00 2001 From: Martin Jorn Rogalla Date: Tue, 24 Feb 2015 22:12:05 +0100 Subject: [PATCH 2/4] Removed unnecessary margin and simplified padding. Signed-off-by: Martin Jorn Rogalla --- site/_sass/_style.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site/_sass/_style.scss b/site/_sass/_style.scss index 154887dc..0b8ff267 100644 --- a/site/_sass/_style.scss +++ b/site/_sass/_style.scss @@ -529,8 +529,7 @@ aside { } .improve { - margin-top: 0; - padding: 25px 0 0; + padding-top: 25px; font-size: 16px; } From a4db7ec63c4692ff7d279955110ac11a6f794fb2 Mon Sep 17 00:00:00 2001 From: Martin Jorn Rogalla Date: Wed, 25 Feb 2015 00:00:57 +0100 Subject: [PATCH 3/4] Put the pencil icon in front of the improve link. Signed-off-by: Martin Jorn Rogalla --- site/_layouts/docs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_layouts/docs.html b/site/_layouts/docs.html index d4d08026..5388a213 100644 --- a/site/_layouts/docs.html +++ b/site/_layouts/docs.html @@ -10,7 +10,7 @@ layout: default

{{ page.title }}

{{ content }} From a43d3d1dc89400dee6361f8a27c56ac0837e9145 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 24 Feb 2015 21:19:47 -0800 Subject: [PATCH 4/4] Make the .improve callout a light grey. --- site/_sass/_style.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/_sass/_style.scss b/site/_sass/_style.scss index 0b8ff267..5980d248 100644 --- a/site/_sass/_style.scss +++ b/site/_sass/_style.scss @@ -531,6 +531,9 @@ aside { .improve { padding-top: 25px; font-size: 16px; + a { + color: #999; + } } .docs-nav-mobile select {