Skip to content

Commit 803c7e2

Browse files
Remove top margin on first child of blockquote
1 parent 8404044 commit 803c7e2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

assets-src/styles/sass/30-base/_quotes.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ blockquote {
2222
margin-top: 1rem;
2323
}
2424

25+
> *:first-child {
26+
margin-top: 0;
27+
}
28+
2529
cite {
2630
color: $off-black;
2731
font-size: 1rem;

assets-src/styles/sass/50-core-components/_quotes.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
.component--quote {
66
@include txt-saturn;
7-
@include stack(1rem);
87
color: $w3c-blue;
98
font-weight: bold;
109
margin-inline-end: 0;

public/dist/assets/styles/core.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ blockquote::before {
501501
blockquote > * + * {
502502
margin-top: 1rem;
503503
}
504+
blockquote > *:first-child {
505+
margin-top: 0;
506+
}
504507
blockquote cite {
505508
color: #111;
506509
font-size: 1rem;
@@ -3156,9 +3159,6 @@ main,
31563159
.component--quote {
31573160
font-size: 1.125rem;
31583161
line-height: 1.5;
3159-
display: flex;
3160-
flex-direction: column;
3161-
justify-content: flex-start;
31623162
color: #005a9c;
31633163
font-weight: bold;
31643164
-webkit-margin-end: 0;
@@ -3168,9 +3168,6 @@ main,
31683168
padding: 1.25rem;
31693169
position: relative;
31703170
}
3171-
.component--quote > * + * {
3172-
margin-top: 1rem;
3173-
}
31743171
.component--quote::before {
31753172
background-color: #005a9c;
31763173
border-radius: 0.3125rem;

public/dist/assets/styles/core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)