Skip to content

Commit

Permalink
Merge pull request #315 from adobe/redesign/block-fixes
Browse files Browse the repository at this point in the history
Redesign/block fixes
  • Loading branch information
snowiewdev authored Jun 27, 2023
2 parents 762d531 + b187231 commit 6920b97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
11 changes: 6 additions & 5 deletions blocks/footnotes/footnotes.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
.footnotes {
margin: 40px 0;
margin: var(--spacing-ml) 0;
}

.footnotes > div {
display: flex;
}

/* margin: 0 40px; */
font-size: 80%;
max-width: 600px;
margin: 10px auto;
.footnotes > div,
.footnotes .footnote-text > a {
font-size: var(--type-body-xs-size);
line-height: var(--type-body-xs-lh);
}

.footnotes .footnote-num {
Expand Down
2 changes: 1 addition & 1 deletion blocks/footnotes/footnotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default async function decorate($block) {
});

// enumerate footnotes
document.querySelector('footer').append($block);
document.querySelector('.section.content').append($block);
[...$block.children].forEach(($footnote, i) => {
$footnote.firstElementChild.classList.add('footnote-text');
const $num = document.createElement('div');
Expand Down
12 changes: 2 additions & 10 deletions blocks/videotext/videotext.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
/* default rule for mobile */
.videotext>div {
display: grid;
padding-top: 10px;
}

@media screen and (min-width: 900px) {
.videotext>div {
display: grid;
grid-template-columns: 70% 30%;
padding-top: 10px;
}
padding-top: var(--spacing-xxs);
}

.videocontent video {
Expand All @@ -18,5 +10,5 @@

.videotext .text {
font-size: var(--type-body-xs-size);
padding-left: 10px;
padding-top: var(--spacing-xxs);
}

0 comments on commit 6920b97

Please sign in to comment.