Skip to content

Commit b518aa9

Browse files
authored
fix(reference-button): Set new margins (#1324)
1 parent 7f1efe9 commit b518aa9

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/_includes/components/signpost.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% endunless %}
55
{{section.section_description}}
66

7-
<div class="flex flex--wrap gutter gutter--large">
7+
<div class="flex flex--wrap waffle waffle--large">
88
{% for category in section.section %}
99
<div class="flex__column flex__column--12 flex__column--{{section.section_col}}@medium flex">
1010
{% include components/reference-button.html

src/_sass/components/_markdown.scss

+16
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,21 @@
236236
grid-template-columns: 1fr 1fr;
237237
grid-gap: 20px
238238
}
239+
240+
// double is another div in .markdown container and that's why it has 16px margin top
241+
.reference-button {
242+
margin-top: 8px;
243+
margin-bottom: 8px;
244+
}
245+
}
246+
247+
// remove reference button margins when it's inside the flex component (flex with waffle has its own margins)
248+
.flex {
249+
&.waffle {
250+
.reference-button {
251+
margin-top: 0;
252+
margin-bottom: 0;
253+
}
254+
}
239255
}
240256
}

src/_sass/components/_reference-button.scss

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
@include breakpoint(large up) {
1414
grid-template-areas: "icon heading" "icon content";
15+
margin-top: 24px;
16+
margin-bottom: 24px;
1517
}
1618

1719
svg {

0 commit comments

Comments
 (0)