Skip to content

Commit

Permalink
Merge pull request #770 from 18F/734-cleanup
Browse files Browse the repository at this point in the history
Account for floating nav offset in more places
  • Loading branch information
cmc333333 authored Dec 15, 2017
2 parents 1b79959 + 40c95bc commit b370b40
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions ui/components/document/footnotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Footnote from '../node-renderers/footnote';
export function Footnotes({ id, footnotes }) {
return (
<div className="bottom-footnotes" id={id}>
<hr className="bottom-footnotes-border" />
{ footnotes.map(fn => <Footnote key={fn.identifier} docNode={fn} />) }
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion ui/components/node-renderers/table/tfoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function deriveColspan(docNode) {

export default function Tfoot({ docNode }) {
const footnotes = docNode.meta.descendantFootnotes.map(ft => (
<div className="clearfix" key={ft.identifier} id={`${ft.identifier}-table`}>
<div className="clearfix footnote" key={ft.identifier} id={`${ft.identifier}-table`}>
<div className="footnote-marker">{ft.marker}</div>
<div className="footnote-text">{ renderContents(ft.content) }</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion ui/css/module/_document.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@
@media #{$on-mobile} {
$size-of-floating-nav: 3rem;

.node-section::before {
.bottom-footnotes::before,
.node-policy::before,
.node-section::before,
.table-footer .footnote::before {
content: ' ';
display: block;
height: $size-of-floating-nav;
Expand Down
10 changes: 7 additions & 3 deletions ui/css/module/_footnotes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,13 @@ $footnote-vertical-margin: 24px;
}

.bottom-footnotes {
border-top: 1px solid $color-blue;
margin-top: 2.5em;
padding-top: .75em;
margin-top: 2rem;

.bottom-footnotes-border {
border: none;
border-bottom: 1px solid $color-blue;
margin-bottom: .75rem;
}

.node-footnote {
@extend .clearfix;
Expand Down

0 comments on commit b370b40

Please sign in to comment.