Skip to content

Commit

Permalink
Fixes #3383 ('Variables' sections on docs page) (#3513)
Browse files Browse the repository at this point in the history
* Enable custom names for 'Variables' sections

* add gap between consecutive 'Variables' sections
  • Loading branch information
avt613 committed Apr 26, 2022
1 parent e674d87 commit 8f13d7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_includes/components/variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

{% if variables_size != '0' or variables_keys_size != '0' %}
<div class="bd-vars">
{% include elements/anchor.html name="Variables" %}
{% include elements/anchor.html name=anchor_name %}

<div class="bd-var bd-is-head">
<div class="bd-var-name">
Expand Down
4 changes: 4 additions & 0 deletions docs/_sass/components/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
}
}

.bd-vars + .bd-vars {
margin-top: var(--docs-inner);
}

.bd-var {
display: flex;
flex-wrap: wrap;
Expand Down

0 comments on commit 8f13d7c

Please sign in to comment.