Skip to content

Commit 3e9a7a9

Browse files
authored
feat(Quote): Quote wrapper pattern uses new grid; build quote block (#5694)
* quote wrapper - new grid, blocks * fix quote block example titles
1 parent 27d352c commit 3e9a7a9

File tree

6 files changed

+393
-148
lines changed

6 files changed

+393
-148
lines changed

templates/_macros/shared/vf_section_top_rule.jinja

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Helper macro to render a top rule for a section.
22
# Parameters:
3-
# - top_rule_variant: string, one of "default", "muted", "highlighted", "none"
4-
{%- macro vf_section_top_rule(top_rule_variant="default") -%}
3+
# - top_rule_variant("default" | "muted" | "highlighted" |"none"): variant of horizontal rule to use
4+
# - is_fixed_width(Boolean): Whether to constrain the rule by the fixed content width. Default to False.
5+
# If you don't use this, you should wrap the rule in a .grid-row.
6+
{%- macro vf_section_top_rule(
7+
top_rule_variant="default",
8+
is_fixed_width=False
9+
) -%}
510
{%- set top_rule_variant = top_rule_variant | trim | lower -%}
611
{%- if top_rule_variant not in ["default", "muted", "highlighted", "none"] -%}
712
{%- set top_rule_variant = "default" -%}
@@ -23,6 +28,10 @@
2328
{%- endif -%}
2429
{%- endif -%}
2530

31+
{%- if is_fixed_width -%}
32+
{%- set top_rule_classes = top_rule_classes + " " + "is-fixed-width" -%}
33+
{%- endif -%}
34+
2635
{%- if top_rule_variant != "none" -%}
2736
<hr class="{{- top_rule_classes -}}"/>
2837
{%- endif -%}

0 commit comments

Comments
 (0)