From 06e61cb2bbda6f625d0cfd3b82390accc34b7c97 Mon Sep 17 00:00:00 2001 From: Jeff Gu Kang Date: Tue, 17 Sep 2019 10:55:59 +0900 Subject: [PATCH 01/41] Fix image link not working --- docs/index-test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index-test.md b/docs/index-test.md index 967ba6f..ccdeb4b 100644 --- a/docs/index-test.md +++ b/docs/index-test.md @@ -120,7 +120,7 @@ end ### Small image -![](https://assets-cdn.github.com/images/icons/emoji/octocat.png) +![](../assets/images/search.svg) ### Large image From d24b06ad73f916145cdb23dcdd550e65c6f6fe70 Mon Sep 17 00:00:00 2001 From: Ilya Ivanov Date: Tue, 30 Jun 2020 00:12:21 +0700 Subject: [PATCH 02/41] allow custom favicon code --- _includes/favicon.html | 1 + _includes/head.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 _includes/favicon.html diff --git a/_includes/favicon.html b/_includes/favicon.html new file mode 100644 index 0000000..12c279e --- /dev/null +++ b/_includes/favicon.html @@ -0,0 +1 @@ + diff --git a/_includes/head.html b/_includes/head.html index 4f22497..1e4f90e 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -10,7 +10,7 @@ {% endif %} {% endunless %} - + {% include favicon.html %} From 9e52e712aeac21b35d2bd851152316a4da7de749 Mon Sep 17 00:00:00 2001 From: Ilya Ivanov Date: Tue, 30 Jun 2020 00:12:21 +0700 Subject: [PATCH 03/41] allow custom favicon code --- _includes/favicon.html | 1 + _includes/head.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 _includes/favicon.html diff --git a/_includes/favicon.html b/_includes/favicon.html new file mode 100644 index 0000000..c485d4c --- /dev/null +++ b/_includes/favicon.html @@ -0,0 +1 @@ + diff --git a/_includes/head.html b/_includes/head.html index c0f73d7..d26a42a 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -10,7 +10,7 @@ {% endif %} {% endunless %} - + {% include favicon.html %} From 404059ab03eb4ea13506e59601aa2eccd995fda9 Mon Sep 17 00:00:00 2001 From: Alexandre Segura Date: Tue, 22 Dec 2020 08:54:21 +0100 Subject: [PATCH 04/41] Prepend site.collections_dir if any. --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index f571923..00481c7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -177,7 +177,7 @@ layout: table_wrappers site.gh_edit_view_mode %}

- {{ site.gh_edit_link_text }} + {{ site.gh_edit_link_text }}

{% endif %} From e513fd6fdb565ecff003e279c3584c97f3db48b1 Mon Sep 17 00:00:00 2001 From: Sehi L'Yi Date: Wed, 9 Mar 2022 13:35:12 -0500 Subject: [PATCH 05/41] Fix typo (#499) Co-authored-by: Matt Wang --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index eb63805..007d1d6 100644 --- a/index.md +++ b/index.md @@ -39,7 +39,7 @@ remote_theme: just-the-docs/just-the-docs $ gem install just-the-docs ``` ```yaml - # .. or add it to your your Jekyll site’s Gemfile + # .. or add it to your Jekyll site’s Gemfile gem "just-the-docs" ``` From 9fe92419da724c57efc03b8a273ac14ad350494e Mon Sep 17 00:00:00 2001 From: Nathan Jessen Date: Wed, 9 Mar 2022 11:35:42 -0700 Subject: [PATCH 06/41] Fix typo (#473) Co-authored-by: Matt Wang --- index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.md b/index.md index 007d1d6..01539a9 100644 --- a/index.md +++ b/index.md @@ -53,7 +53,7 @@ remote_theme: just-the-docs/just-the-docs $ bundle exec just-the-docs rake search:init ``` -3. Run you local Jekyll server +3. Run your local Jekyll server ```bash $ jekyll serve ``` @@ -62,6 +62,7 @@ remote_theme: just-the-docs/just-the-docs $ bundle exec jekyll serve ``` + 4. Point your web browser to [http://localhost:4000](http://localhost:4000) If you're hosting your site on GitHub Pages, [set up GitHub Pages and Jekyll locally](https://help.github.com/en/articles/setting-up-your-github-pages-site-locally-with-jekyll) so that you can more easily work in your development environment. From 4e0e3ab3d87037da898604d6c5654c31ddccfcce Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 9 Mar 2022 18:35:57 +0000 Subject: [PATCH 07/41] Clarify label of link to Jekyll quickstart (#549) Co-authored-by: Matt Wang --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index 01539a9..d961f58 100644 --- a/index.md +++ b/index.md @@ -20,7 +20,7 @@ Just the Docs gives your documentation a jumpstart with a responsive Jekyll them ### Dependencies -Just the Docs is built for [Jekyll](https://jekyllrb.com), a static site generator. View the [quick start guide](https://jekyllrb.com/docs/) for more information. Just the Docs requires no special plugins and can run on GitHub Pages' standard Jekyll compiler. The [Jekyll SEO Tag plugin](https://github.com/jekyll/jekyll-seo-tag) is included by default (no need to run any special installation) to inject SEO and open graph metadata on docs pages. For information on how to configure SEO and open graph metadata visit the [Jekyll SEO Tag usage guide](https://jekyll.github.io/jekyll-seo-tag/usage/). +Just the Docs is built for [Jekyll](https://jekyllrb.com), a static site generator. View the [Jekyll quick start guide](https://jekyllrb.com/docs/) for more information. Just the Docs requires no special plugins and can run on GitHub Pages' standard Jekyll compiler. The [Jekyll SEO Tag plugin](https://github.com/jekyll/jekyll-seo-tag) is included by default (no need to run any special installation) to inject SEO and open graph metadata on docs pages. For information on how to configure SEO and open graph metadata visit the [Jekyll SEO Tag usage guide](https://jekyll.github.io/jekyll-seo-tag/usage/). ### Quick start: Use as a GitHub Pages remote theme From 260d98d825c6acd82288e987bbf52d6896764bf8 Mon Sep 17 00:00:00 2001 From: Michelle Blanchette <33374343+MichelleBlanchette@users.noreply.github.com> Date: Wed, 9 Mar 2022 13:36:09 -0500 Subject: [PATCH 08/41] remove extra spaces (#554) Co-authored-by: Matt Wang --- docs/ui-components/buttons.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ui-components/buttons.md b/docs/ui-components/buttons.md index 3297f29..0cb3401 100644 --- a/docs/ui-components/buttons.md +++ b/docs/ui-components/buttons.md @@ -83,15 +83,15 @@ Use the [margin utility classes]({{ site.baseurl }}{% link docs/utilities/layout
[Button with space](http://example.com/){: .btn .btn-purple .mr-2 } -[Button ](http://example.com/){: .btn .btn-blue .mr-2 } +[Button](http://example.com/){: .btn .btn-blue } [Button with more space](http://example.com/){: .btn .btn-green .mr-4 } -[Button ](http://example.com/){: .btn .btn-blue } +[Button](http://example.com/){: .btn .btn-blue }
```markdown [Button with space](http://example.com/){: .btn .btn-purple .mr-2 } -[Button ](http://example.com/){: .btn .btn-blue } +[Button](http://example.com/){: .btn .btn-blue } [Button with more space](http://example.com/){: .btn .btn-green .mr-4 } -[Button ](http://example.com/){: .btn .btn-blue } +[Button](http://example.com/){: .btn .btn-blue } ``` From aac87fad2763c44defdb09e99c68b63157b0ab07 Mon Sep 17 00:00:00 2001 From: Peter Mosses <18308236+pdmosses@users.noreply.github.com> Date: Wed, 9 Mar 2022 19:36:21 +0100 Subject: [PATCH 09/41] Set color for search input (#498) * Set color for search input Fix #497 - Insert `color: $body-text-color;` in styling for `search-input`. * Update search.scss Prettier --- _sass/search.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/_sass/search.scss b/_sass/search.scss index 4290210..b4d68ec 100644 --- a/_sass/search.scss +++ b/_sass/search.scss @@ -48,6 +48,7 @@ padding-bottom: $sp-2; padding-left: #{$gutter-spacing-sm + $sp-5}; font-size: 16px; + color: $body-text-color; background-color: $search-background-color; border-top: 0; border-right: 0; From 70b34f01f7355fc0850333ac08668a70c3faae2d Mon Sep 17 00:00:00 2001 From: Peter Mosses <18308236+pdmosses@users.noreply.github.com> Date: Mon, 4 Jul 2022 21:15:10 +0200 Subject: [PATCH 10/41] Combination (#578) This PR combines (and resolves conflicts between) #448, #463, #466, #494, #495, #496, #498, and #572. The main aim is to facilitate use of several of the implemented features _together_, when using the fork as a remote theme. It should also simplify merging the included PRs into a future release. The branch [combination-rec-nav](https://github.com/pdmosses/just-the-docs/tree/combination-rec-nav) adds [multi-level navigation](https://github.com/pmarsceill/just-the-docs/pull/462) and (NEW:) [sibling links](https://github.com/pmarsceill/just-the-docs/pull/394) to the branch used for this PR. It includes updated [documentation for the navigation structure](https://pdmosses.github.io/just-the-docs/docs/navigation-structure/), and reorganised and extended [navigation tests](https://pdmosses.github.io/just-the-docs/tests/navigation/). The documentation and the tests can be browsed at the (temporary) [website published from the combination-rec-nav branch](https://pdmosses.github.io/just-the-docs/). _Caveat:_ The changes to v0.3.3 in this PR and #462 have not yet been reviewed or approved, and may need updating before merging into a release of the theme. If you use a branch from a PR as a remote theme, there is a risk of such updates affecting your website. Moreover, these branches are likely to be deleted after they have been merged. To avoid such problems, you could copy the branch that you want to use to your own fork of the theme. Co-authored-by: Matt Wang --- 404.html | 2 +- _config.yml | 10 +- _includes/css/callouts.scss.liquid | 93 ++++++++ _includes/css/just-the-docs.scss.liquid | 3 +- _includes/nav.html | 34 ++- _layouts/default.html | 52 +++-- _sass/code.scss | 207 ----------------- _sass/color_schemes/dark.scss | 17 +- _sass/color_schemes/light.scss | 208 ++++++++++++++++++ _sass/content.scss | 2 +- _sass/custom/custom.scss | 4 + _sass/navigation.scss | 22 +- _sass/typography.scss | 2 - _sass/vendor/OneDarkJekyll/LICENSE | 21 ++ _sass/vendor/OneDarkJekyll/README.md | 25 +++ _sass/vendor/OneDarkJekyll/colors.less | 30 +++ .../OneDarkJekyll/syntax-firewatch-green.scss | 65 ++++++ .../OneDarkJekyll/syntax-firewatch.scss | 65 ++++++ .../OneDarkJekyll/syntax-one-dark-vivid.scss | 64 ++++++ .../vendor/OneDarkJekyll/syntax-one-dark.scss | 64 ++++++ .../OneDarkJekyll/syntax-variables.less | 56 +++++ _sass/vendor/OneDarkJekyll/syntax.less | 93 ++++++++ assets/js/just-the-docs.js | 17 +- assets/js/zzzz-search-data.json | 6 +- docs/configuration.md | 84 ++++++- docs/index-test.md | 51 +++++ docs/navigation-structure.md | 13 +- docs/tests/index.md | 22 -- docs/tests/navigation/disambiguation/a.md | 14 -- docs/tests/navigation/disambiguation/b.md | 14 -- docs/tests/navigation/disambiguation/ca.md | 16 -- docs/tests/navigation/disambiguation/cb.md | 16 -- docs/tests/navigation/disambiguation/dca.md | 16 -- docs/tests/navigation/disambiguation/dcb.md | 16 -- docs/tests/navigation/disambiguation/index.md | 14 -- docs/tests/navigation/exclusion/0.md | 13 -- docs/tests/navigation/exclusion/00.md | 15 -- docs/tests/navigation/exclusion/000.md | 17 -- docs/tests/navigation/exclusion/001.md | 17 -- docs/tests/navigation/exclusion/01.md | 15 -- docs/tests/navigation/exclusion/010.md | 17 -- docs/tests/navigation/exclusion/011.md | 17 -- docs/tests/navigation/exclusion/1.md | 13 -- docs/tests/navigation/exclusion/10.md | 15 -- docs/tests/navigation/exclusion/100.md | 17 -- docs/tests/navigation/exclusion/101.md | 17 -- docs/tests/navigation/exclusion/11.md | 15 -- docs/tests/navigation/exclusion/110.md | 17 -- docs/tests/navigation/exclusion/111.md | 17 -- docs/tests/navigation/exclusion/excluded.md | 11 - docs/tests/navigation/exclusion/index.md | 36 --- docs/tests/navigation/exclusion/untitled.md | 6 - docs/tests/navigation/index.md | 8 - docs/tests/navigation/order/default/10.md | 14 -- docs/tests/navigation/order/default/2.md | 14 -- docs/tests/navigation/order/default/a.md | 14 -- .../navigation/order/default/aa-lower.md | 14 -- docs/tests/navigation/order/default/aa.md | 14 -- docs/tests/navigation/order/default/index.md | 15 -- docs/tests/navigation/order/floats/-1.1.md | 16 -- docs/tests/navigation/order/floats/0.0.md | 16 -- docs/tests/navigation/order/floats/10.0.md | 16 -- docs/tests/navigation/order/floats/2.2222.md | 16 -- docs/tests/navigation/order/floats/index.md | 13 -- docs/tests/navigation/order/index.md | 16 -- docs/tests/navigation/order/integers/-1.md | 16 -- docs/tests/navigation/order/integers/0.md | 16 -- docs/tests/navigation/order/integers/10.md | 16 -- docs/tests/navigation/order/integers/2.md | 16 -- docs/tests/navigation/order/integers/index.md | 13 -- docs/tests/navigation/order/mixture/-1.1.md | 16 -- docs/tests/navigation/order/mixture/-1.md | 16 -- docs/tests/navigation/order/mixture/0.0.md | 16 -- docs/tests/navigation/order/mixture/0.md | 16 -- docs/tests/navigation/order/mixture/10.0.md | 16 -- docs/tests/navigation/order/mixture/10.md | 14 -- docs/tests/navigation/order/mixture/2.2222.md | 16 -- docs/tests/navigation/order/mixture/2.md | 14 -- docs/tests/navigation/order/mixture/a.md | 14 -- .../navigation/order/mixture/aa-lower.md | 16 -- docs/tests/navigation/order/mixture/aa.md | 16 -- docs/tests/navigation/order/mixture/index.md | 11 - docs/tests/navigation/order/order.md | 7 - docs/tests/navigation/order/strings/10.md | 16 -- docs/tests/navigation/order/strings/2.md | 16 -- docs/tests/navigation/order/strings/a.md | 16 -- .../navigation/order/strings/aa-lower.md | 16 -- docs/tests/navigation/order/strings/aa.md | 16 -- docs/tests/navigation/order/strings/index.md | 13 -- docs/tests/styling/dl.md | 83 ------- docs/tests/styling/index.md | 8 - docs/tests/styling/ol.md | 65 ------ docs/tests/styling/ul.md | 65 ------ docs/ui-components/callouts.md | 104 +++++++++ just-the-docs.gemspec | 4 +- lib/tasks/search.rake | 2 +- 96 files changed, 1137 insertions(+), 1451 deletions(-) create mode 100644 _includes/css/callouts.scss.liquid create mode 100644 _sass/vendor/OneDarkJekyll/LICENSE create mode 100644 _sass/vendor/OneDarkJekyll/README.md create mode 100644 _sass/vendor/OneDarkJekyll/colors.less create mode 100644 _sass/vendor/OneDarkJekyll/syntax-firewatch-green.scss create mode 100644 _sass/vendor/OneDarkJekyll/syntax-firewatch.scss create mode 100644 _sass/vendor/OneDarkJekyll/syntax-one-dark-vivid.scss create mode 100644 _sass/vendor/OneDarkJekyll/syntax-one-dark.scss create mode 100644 _sass/vendor/OneDarkJekyll/syntax-variables.less create mode 100644 _sass/vendor/OneDarkJekyll/syntax.less delete mode 100644 docs/tests/index.md delete mode 100644 docs/tests/navigation/disambiguation/a.md delete mode 100644 docs/tests/navigation/disambiguation/b.md delete mode 100644 docs/tests/navigation/disambiguation/ca.md delete mode 100644 docs/tests/navigation/disambiguation/cb.md delete mode 100644 docs/tests/navigation/disambiguation/dca.md delete mode 100644 docs/tests/navigation/disambiguation/dcb.md delete mode 100644 docs/tests/navigation/disambiguation/index.md delete mode 100644 docs/tests/navigation/exclusion/0.md delete mode 100644 docs/tests/navigation/exclusion/00.md delete mode 100644 docs/tests/navigation/exclusion/000.md delete mode 100644 docs/tests/navigation/exclusion/001.md delete mode 100644 docs/tests/navigation/exclusion/01.md delete mode 100644 docs/tests/navigation/exclusion/010.md delete mode 100644 docs/tests/navigation/exclusion/011.md delete mode 100644 docs/tests/navigation/exclusion/1.md delete mode 100644 docs/tests/navigation/exclusion/10.md delete mode 100644 docs/tests/navigation/exclusion/100.md delete mode 100644 docs/tests/navigation/exclusion/101.md delete mode 100644 docs/tests/navigation/exclusion/11.md delete mode 100644 docs/tests/navigation/exclusion/110.md delete mode 100644 docs/tests/navigation/exclusion/111.md delete mode 100644 docs/tests/navigation/exclusion/excluded.md delete mode 100644 docs/tests/navigation/exclusion/index.md delete mode 100644 docs/tests/navigation/exclusion/untitled.md delete mode 100644 docs/tests/navigation/index.md delete mode 100644 docs/tests/navigation/order/default/10.md delete mode 100644 docs/tests/navigation/order/default/2.md delete mode 100644 docs/tests/navigation/order/default/a.md delete mode 100644 docs/tests/navigation/order/default/aa-lower.md delete mode 100644 docs/tests/navigation/order/default/aa.md delete mode 100644 docs/tests/navigation/order/default/index.md delete mode 100644 docs/tests/navigation/order/floats/-1.1.md delete mode 100644 docs/tests/navigation/order/floats/0.0.md delete mode 100644 docs/tests/navigation/order/floats/10.0.md delete mode 100644 docs/tests/navigation/order/floats/2.2222.md delete mode 100644 docs/tests/navigation/order/floats/index.md delete mode 100644 docs/tests/navigation/order/index.md delete mode 100644 docs/tests/navigation/order/integers/-1.md delete mode 100644 docs/tests/navigation/order/integers/0.md delete mode 100644 docs/tests/navigation/order/integers/10.md delete mode 100644 docs/tests/navigation/order/integers/2.md delete mode 100644 docs/tests/navigation/order/integers/index.md delete mode 100644 docs/tests/navigation/order/mixture/-1.1.md delete mode 100644 docs/tests/navigation/order/mixture/-1.md delete mode 100644 docs/tests/navigation/order/mixture/0.0.md delete mode 100644 docs/tests/navigation/order/mixture/0.md delete mode 100644 docs/tests/navigation/order/mixture/10.0.md delete mode 100644 docs/tests/navigation/order/mixture/10.md delete mode 100644 docs/tests/navigation/order/mixture/2.2222.md delete mode 100644 docs/tests/navigation/order/mixture/2.md delete mode 100644 docs/tests/navigation/order/mixture/a.md delete mode 100644 docs/tests/navigation/order/mixture/aa-lower.md delete mode 100644 docs/tests/navigation/order/mixture/aa.md delete mode 100644 docs/tests/navigation/order/mixture/index.md delete mode 100644 docs/tests/navigation/order/order.md delete mode 100644 docs/tests/navigation/order/strings/10.md delete mode 100644 docs/tests/navigation/order/strings/2.md delete mode 100644 docs/tests/navigation/order/strings/a.md delete mode 100644 docs/tests/navigation/order/strings/aa-lower.md delete mode 100644 docs/tests/navigation/order/strings/aa.md delete mode 100644 docs/tests/navigation/order/strings/index.md delete mode 100644 docs/tests/styling/dl.md delete mode 100644 docs/tests/styling/index.md delete mode 100644 docs/tests/styling/ol.md delete mode 100644 docs/tests/styling/ul.md create mode 100644 docs/ui-components/callouts.md diff --git a/404.html b/404.html index 5fde966..a2d250a 100644 --- a/404.html +++ b/404.html @@ -8,4 +8,4 @@ search_exclude: true

Page not found

-

The page you requested could not be found. Try using the navigation {% if site.search_enabled != false %}or search {% endif %}to find what you're looking for or go to this site's home page.

+

The page you requested could not be found. Try using the navigation {% if site.search_enabled != false %}or search {% endif %}to find what you're looking for or go to this site's home page.

diff --git a/_config.yml b/_config.yml index dbe742f..e590821 100644 --- a/_config.yml +++ b/_config.yml @@ -19,15 +19,7 @@ baseurl: "/just-the-docs" # the subpath of your site, e.g. /blog url: "https://just-the-docs.github.io" # the base hostname & protocol for your site, e.g. http://example.com permalink: pretty -exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile" -, "docs/tests/" -] - -# Regression tests -# By default, the pages in /docs/tests are excluded when the ste is built. -# To include them, comment-out the relevant line above. -# Uncommenting the following line doesn't work - see https://github.com/jekyll/jekyll/issues/4791 -# include: ["docs/tests/"] +exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"] # Set a path/url to a logo that will be displayed instead of the title #logo: "/assets/images/just-the-docs.png" diff --git a/_includes/css/callouts.scss.liquid b/_includes/css/callouts.scss.liquid new file mode 100644 index 0000000..e99600e --- /dev/null +++ b/_includes/css/callouts.scss.liquid @@ -0,0 +1,93 @@ +{%- comment -%} + {% include css/callouts.scss.liquid color_scheme = string %} + produces SCSS for all the callouts in site.callouts. For the "dark" + color scheme, the levels of the text and background colors are reversed. +{%- endcomment -%} + +{%- assign callout_background_hue = "000" -%} +{%- assign callout_color_hue = "300" -%} +{%- if site.callouts_level == "loud" or include.color_scheme == "dark" and site.callouts_level != "quiet" -%} + {%- assign callout_background_hue = "300" -%} + {%- assign callout_color_hue = "000" -%} +{%- endif -%} + +div.opaque { + background-color: $body-background-color; +} + +{%- for callout in site.callouts %} + +{%- assign callout_opacity = callout[1].opacity | default: site.callouts_opacity | default: 0.2 -%} + +p.{{ callout[0] }}, blockquote.{{ callout[0] }} { + background: rgba(${{ callout[1].color }}-{{ callout_background_hue }}, {{ callout_opacity }}); + border-left: $border-radius solid ${{ callout[1].color }}-{{ callout_color_hue }}; + border-radius: $border-radius; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); + padding: .8rem; + {% if callout[1].title %} + &::before { + color: ${{ callout[1].color }}-{{ callout_color_hue }}; + content: "{{ callout[1].title }}"; + display: block; + font-weight: bold; + text-transform: uppercase; + font-size: .75em; + padding-bottom: .125rem; + } + {% endif %} + > .{{ callout[0] }}-title { + color: ${{ callout[1].color }}-{{ callout_color_hue }}; + display: block; + font-weight: bold; + text-transform: uppercase; + font-size: .75em; + padding-bottom: .125rem; + } +} + +p.{{ callout[0] }}-title, blockquote.{{ callout[0] }}-title { + background: rgba(${{ callout[1].color }}-{{ callout_background_hue }}, {{ callout_opacity }}); + border-left: $border-radius solid ${{ callout[1].color }}-{{ callout_color_hue }}; + border-radius: $border-radius; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); + padding: .8rem; + > p:first-child { + margin-top: 0; + margin-bottom: 0; + color: ${{ callout[1].color }}-{{ callout_color_hue }}; + display: block; + font-weight: bold; + text-transform: uppercase; + font-size: .75em; + padding-bottom: .125rem; + } +} + +blockquote.{{ callout[0] }} { + margin-left: 0; + margin-right: 0; + + > p:first-child { + margin-top: 0; + } + + > p:last-child { + margin-bottom: 0; + } +} + +blockquote.{{ callout[0] }}-title { + margin-left: 0; + margin-right: 0; + + > p:nth-child(2) { + margin-top: 0; + } + + > p:last-child { + margin-bottom: 0; + } +} + +{% endfor -%} diff --git a/_includes/css/just-the-docs.scss.liquid b/_includes/css/just-the-docs.scss.liquid index 495cd6d..29d5690 100644 --- a/_includes/css/just-the-docs.scss.liquid +++ b/_includes/css/just-the-docs.scss.liquid @@ -1,7 +1,8 @@ {% if site.logo %} -$logo: "{{ site.logo | absolute_url }}"; +$logo: "{{ site.logo | relative_url }}"; {% endif %} @import "./support/support"; @import "./color_schemes/{{ include.color_scheme }}"; @import "./modules"; {% include css/custom.scss.liquid %} +{% include css/callouts.scss.liquid color_scheme = include.color_scheme %} diff --git a/_includes/nav.html b/_includes/nav.html index 325a68c..accfd89 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -60,11 +60,11 @@ {%- for node in pages_list -%} {%- if node.parent == nil -%} {%- unless node.nav_exclude -%} -