From 892ba08cc71b8c1e4e2db3bdb03e5f1708553f84 Mon Sep 17 00:00:00 2001 From: Sylvain Pace Date: Tue, 28 Aug 2018 18:12:30 +0200 Subject: [PATCH 1/5] Component: Add DocSeach to jquery website This commit will add DocSearch to the documentation website. It is the first step in order to fully integrate it. Ref Bootstraping PR as jquery/api.jquery.com#1104 --- themes/jquery/css/docsearch.css | 16 ++++++++++++++++ themes/jquery/header.php | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 themes/jquery/css/docsearch.css diff --git a/themes/jquery/css/docsearch.css b/themes/jquery/css/docsearch.css new file mode 100644 index 00000000..a0bba13f --- /dev/null +++ b/themes/jquery/css/docsearch.css @@ -0,0 +1,16 @@ +/* Custom DocSeach CSS to adapt the generic one +* See https://community.algolia.com/docsearch/styling.html for more info +*/ + +nav#main .searchform { + text-shadow: none; +} + +.searchform label { + width: 100%; + display: block; +} + +.algolia-autocomplete { + width: 99%; +} \ No newline at end of file diff --git a/themes/jquery/header.php b/themes/jquery/header.php index b53dc5f1..120309a5 100755 --- a/themes/jquery/header.php +++ b/themes/jquery/header.php @@ -35,6 +35,16 @@ + + + + + + Date: Wed, 29 Aug 2018 15:57:12 +0200 Subject: [PATCH 2/5] make it mobile compliant --- themes/jquery/css/docsearch.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/jquery/css/docsearch.css b/themes/jquery/css/docsearch.css index a0bba13f..0af33bff 100644 --- a/themes/jquery/css/docsearch.css +++ b/themes/jquery/css/docsearch.css @@ -1,16 +1,16 @@ -/* Custom DocSeach CSS to adapt the generic one -* See https://community.algolia.com/docsearch/styling.html for more info -*/ - +/* Custom DocSeach CSS to adapt the generic one * See https://community.algolia.com/docsearch/styling.html for more info */ nav#main .searchform { text-shadow: none; } - .searchform label { width: 100%; display: block; } - .algolia-autocomplete { width: 99%; -} \ No newline at end of file +} +@media only screen and (max-width: 480px) { + .ds-dropdown-menu{ + min-width: 100% !important; + } +} From d076a035ec93741bc94bd611d5e058192d630f65 Mon Sep 17 00:00:00 2001 From: Sylvain Pace Date: Wed, 29 Aug 2018 15:58:42 +0200 Subject: [PATCH 3/5] Component: Add DocSeach better integrated into jquery website This commit will enhance the includes by moving it to the end of the page --- themes/jquery/.DS_Store | Bin 0 -> 10244 bytes themes/jquery/footer.php | 7 ++++++- themes/jquery/header.php | 7 ------- 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 themes/jquery/.DS_Store diff --git a/themes/jquery/.DS_Store b/themes/jquery/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5fb70a7232eb5e833d330a0d9718a3adbe3525db GIT binary patch literal 10244 zcmeI2&u$Yj5XQ%8rKCw|Lsh|bkG-@i5(gwMQB@9{xp1UuLjRC|GzpYjE`0|c0p5g1 z;m!k;?;CH5z3UAz>FBg}$ z?D8Fo)7GKOw7R&Cw{|xIMxac9d-u9Ll|x(y;r@Nx#WzSM_XBqCR*TA8aw1o9ik<$2 ze2{)xCC^d!bD(NMHJ2GwW2loY$=8Br6Rn&;)0Z<>S z(cV}Us`KXt`YEjRMJn;_6QyZ@UgNl z#78$=*704K=&auz#oM z-v!1x(j2%H_PUS!tI8zgdgO<_F8c{i`NHgQ-veGvWO^SF-P87xz1BDkH5=&ba8(vC z)1y|X7-<{V>3L8xVH-8MEXEt_MDf-_TwH)1SAi++2cUQ@vp7nb(NSNv^Yvzq2>t!o z5nr{}0k18r9X|gV-vfLe$-DHJ$SuHl4dT}zD2C2m>uf;4Dp@f^APJ_JWI+d)HZcSmv69i zAIT-uY(*NbMOT$84|#;z9cW3gk6C4_`}fFZG75dPOFovdlI%Zutvw5PwF>&Q3Q-lQ zIO==8Q5Z>)mXv>KlkG91yg*#G|oO6WE@ literal 0 HcmV?d00001 diff --git a/themes/jquery/footer.php b/themes/jquery/footer.php index efd52f26..382dbe94 100755 --- a/themes/jquery/footer.php +++ b/themes/jquery/footer.php @@ -37,6 +37,11 @@ - + + diff --git a/themes/jquery/header.php b/themes/jquery/header.php index 120309a5..5bde27b9 100755 --- a/themes/jquery/header.php +++ b/themes/jquery/header.php @@ -39,13 +39,6 @@ - - - Date: Wed, 5 Sep 2018 16:46:41 +0200 Subject: [PATCH 4/5] Code: Format as requested from reviews --- themes/jquery/.DS_Store | Bin 10244 -> 0 bytes themes/jquery/css/docsearch.css | 17 ++++++++++------- themes/jquery/footer.php | 6 +++--- 3 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 themes/jquery/.DS_Store diff --git a/themes/jquery/.DS_Store b/themes/jquery/.DS_Store deleted file mode 100644 index 5fb70a7232eb5e833d330a0d9718a3adbe3525db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeI2&u$Yj5XQ%8rKCw|Lsh|bkG-@i5(gwMQB@9{xp1UuLjRC|GzpYjE`0|c0p5g1 z;m!k;?;CH5z3UAz>FBg}$ z?D8Fo)7GKOw7R&Cw{|xIMxac9d-u9Ll|x(y;r@Nx#WzSM_XBqCR*TA8aw1o9ik<$2 ze2{)xCC^d!bD(NMHJ2GwW2loY$=8Br6Rn&;)0Z<>S z(cV}Us`KXt`YEjRMJn;_6QyZ@UgNl z#78$=*704K=&auz#oM z-v!1x(j2%H_PUS!tI8zgdgO<_F8c{i`NHgQ-veGvWO^SF-P87xz1BDkH5=&ba8(vC z)1y|X7-<{V>3L8xVH-8MEXEt_MDf-_TwH)1SAi++2cUQ@vp7nb(NSNv^Yvzq2>t!o z5nr{}0k18r9X|gV-vfLe$-DHJ$SuHl4dT}zD2C2m>uf;4Dp@f^APJ_JWI+d)HZcSmv69i zAIT-uY(*NbMOT$84|#;z9cW3gk6C4_`}fFZG75dPOFovdlI%Zutvw5PwF>&Q3Q-lQ zIO==8Q5Z>)mXv>KlkG91yg*#G|oO6WE@ diff --git a/themes/jquery/css/docsearch.css b/themes/jquery/css/docsearch.css index 0af33bff..e408caff 100644 --- a/themes/jquery/css/docsearch.css +++ b/themes/jquery/css/docsearch.css @@ -1,16 +1,19 @@ /* Custom DocSeach CSS to adapt the generic one * See https://community.algolia.com/docsearch/styling.html for more info */ nav#main .searchform { - text-shadow: none; + text-shadow: none; } + .searchform label { - width: 100%; - display: block; + width: 100%; + display: block; } + .algolia-autocomplete { - width: 99%; + width: 99%; } + @media only screen and (max-width: 480px) { - .ds-dropdown-menu{ - min-width: 100% !important; - } + .ds-dropdown-menu { + min-width: 100% !important; + } } diff --git a/themes/jquery/footer.php b/themes/jquery/footer.php index 382dbe94..c7e38b79 100755 --- a/themes/jquery/footer.php +++ b/themes/jquery/footer.php @@ -39,9 +39,9 @@ From e3f16f3099ef13ff8a19e8e58ded9cade3e7b911 Mon Sep 17 00:00:00 2001 From: Sylvain Pace Date: Wed, 5 Sep 2018 19:00:55 +0200 Subject: [PATCH 5/5] Code: avoid automatic space from IDE --- themes/jquery/css/docsearch.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/jquery/css/docsearch.css b/themes/jquery/css/docsearch.css index e408caff..96f93107 100644 --- a/themes/jquery/css/docsearch.css +++ b/themes/jquery/css/docsearch.css @@ -1,19 +1,19 @@ /* Custom DocSeach CSS to adapt the generic one * See https://community.algolia.com/docsearch/styling.html for more info */ nav#main .searchform { - text-shadow: none; + text-shadow: none; } .searchform label { - width: 100%; - display: block; + width: 100%; + display: block; } .algolia-autocomplete { - width: 99%; + width: 99%; } @media only screen and (max-width: 480px) { - .ds-dropdown-menu { - min-width: 100% !important; - } + .ds-dropdown-menu { + min-width: 100% !important; + } }