+
- {% if page.title -%}

{{ page.title }} {%- if page.version-badge -%} diff --git a/_sass/modules/_buttons.scss b/_sass/modules/_buttons.scss index 0b7ae31fa..fb0dcde4d 100644 --- a/_sass/modules/_buttons.scss +++ b/_sass/modules/_buttons.scss @@ -66,9 +66,15 @@ font-size: $small-font-size; background: none; border: none; - margin: $spacing-unit / 2 0 $spacing-unit / 2 ($spacing-unit / 4 * -1); + margin: $spacing-unit / 2 0; padding: $spacing-unit / 4; color: $color-slate; + position: sticky; + top: 0; + background-color: $color-white; + width: 100%; + text-align: left; + padding-left: $spacing-unit; @include tablet-and-up { display: none; From 3a02cfce7e95f274bcc05c062a9f1da6309f3b13 Mon Sep 17 00:00:00 2001 From: ADTC Date: Sun, 28 Mar 2021 18:53:15 +0800 Subject: [PATCH 25/31] Fix the code block in EmptyDrop section in Types The {% endraw %} tag must be on its own line when using {%- raw -%} otherwise the code block will not get rendered as expected. --- _basics/types.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_basics/types.md b/_basics/types.md index 1d127da01..9b4e28532 100644 --- a/_basics/types.md +++ b/_basics/types.md @@ -148,7 +148,8 @@ You can check to see if an object exists or not before you access any of its att {% unless pages == empty %}

{{ pages.frontpage.title }}

{{ pages.frontpage.content }}
-{% endunless %}{% endraw %} +{% endunless %} +{% endraw %} ``` Both empty strings and empty arrays will return `true` if checked for equivalence with `empty`. From e5f8134a116d4e8c6e36a5b2be19676417d899c8 Mon Sep 17 00:00:00 2001 From: ADTC Date: Mon, 29 Mar 2021 23:44:24 +0800 Subject: [PATCH 26/31] Change the style of filter subheadings to indicate them as such It looked like the filter subheadings like Array Filters were new separate sections in the menu, when it should be a subsection under Filters. This fixes it by changing the boldness and adding an indicative arrow next to the header so that it looks different. --- _includes/sidebar-link.html | 2 +- _includes/sidebar.html | 3 +++ _sass/modules/_layout.scss | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/_includes/sidebar-link.html b/_includes/sidebar-link.html index 4452f1926..222f56e8e 100644 --- a/_includes/sidebar-link.html +++ b/_includes/sidebar-link.html @@ -1,4 +1,4 @@ -

{{ header | capitalize }}

+

{{ header | capitalize }}