Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions web/themes/interledger/css/components/footer-notes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.footer-notes {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The CSS file is named footnote.css but uses .footer-notes as the class. Consider aligning naming (footnote vs footer-notes) for clarity.

padding-inline: 5%;
font-size: var(--step--1);
}

.footer-notes .content-wrapper::before {
content: "";
display: block;
height: 1px;
width: 30%;
top: 0;
left: 0;
margin-bottom: var(--space-2xs);
background-color: black;
}

.footer-notes ol {
list-style: none;
padding: 0;
}

.footnote-backlink {
font-size: var(--step--2);
}
30 changes: 24 additions & 6 deletions web/themes/interledger/css/components/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,25 @@
}

/* Responsive card layout for medium screens and below */
/* except for tables on Policy pages */
@media (max-width: 1024px) {
.table-wrapper table thead {
.table-wrapper table:not(.policy-table) thead {
display: none;
}

.table-wrapper table,
.table-wrapper table tbody {
.table-wrapper table:not(.policy-table),
.table-wrapper table:not(.policy-table) tbody {
display: block;
}

.table-wrapper table tbody {
border: 1px solid var(---table-border-color-sm);
border: 1px solid var(--table-border-color-sm);
border-radius: var(--border-radius);
overflow: hidden;
background: var(--table-bg-sm);
}

.table-wrapper table tr {
.table-wrapper table:not(.policy-table) tr {
display: block;
}

Expand All @@ -101,8 +102,11 @@
color: var(--table-fg-sm);
}

.table-wrapper table td {
.table-wrapper table:not(.policy-table) td {
display: block;
}

.table-wrapper table td {
padding: var(--space-2xs) var(--space-xs);
position: relative;
color: var(--table-fg-sm);
Expand Down Expand Up @@ -144,3 +148,17 @@
padding-bottom: var(--space-2xs);
}
}

/* Policy Briefs page table styling */
.table-wrapper table.policy-table {
min-width: 600px;
max-width: none;
}

.table-wrapper table.policy-table td:first-child {
white-space: normal;
}

.table-wrapper:has(table.policy-table) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a suggestion, for horizontal scroll on mobile, consider adding a visual indicator that the table is scrollable (like a shadow fade on the right edge of the table or make the scrollbar persistent)

overflow-x: auto;
}
3 changes: 2 additions & 1 deletion web/themes/interledger/interledger.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global-styling:
version: 1.7.3
version: 1.7.4
css:
theme:
css/fonts.css: {}
Expand Down Expand Up @@ -31,6 +31,7 @@ global-styling:
css/components/cta-button.css: {}
css/components/event-card.css: {}
css/components/faq.css: {}
css/components/footer-notes.css: {}
css/components/hero.css: {}
css/components/highlight-text.css: {}
css/components/podcast.css: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<ol>
{% for item in items %}
<li id="footnote-{{ loop.index }}">
<span class="visually-hidden">Footnote
{{loop.index}}
</span>
<sup aria-hidden="true">{{ loop.index }}
</sup>
{{ item.content }}
<a href="#ref-{{ loop.index }}" aria-label="Return to footnote {{ loop.index }} reference in article" class="footnote-backlink">↩</a>
</li>
{% endfor %}
</ol>
6 changes: 6 additions & 0 deletions web/themes/interledger/templates/node--footer-notes.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<aside class="footer-notes node--{{ node.id }}">
<h2 class="visually-hidden">Footnotes</h2>
<div class="content-wrapper">
{{ content }}
</div>
</aside>