Skip to content
Open
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
29 changes: 16 additions & 13 deletions cfgov/regulations3k/jinja2/regulations3k/regulations-listing.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,25 @@
{% if regulations.exists() %}
<div id="regulations-listing">
<h4>{{ value.heading or 'Table of contents' }}</h4>
<ul>
<ul class="m-list m-list--links">
Comment thread
anselmbradford marked this conversation as resolved.
{% for regulation in regulations %}
<li class="h4">
<a href="{{ regulation.url }}">
<span class="title-num">{{ regulation.title }}</span>
<li class="m-list__item">
<a class="a-link a-link--jump" href="{{ regulation.url }}">
<span class="a-link__text">{{ regulation.title }}</span>
</a>
{% if regulation.regulation.future_versions %}
<ul>
{% for version in regulation.regulation.future_versions %}
<li class="new-version">New amendments effective
<a href="{{ regulation.url }}{{ version.effective_date|string }}/">
{{ ap_date(version.effective_date) }}
</a>
</li>
{% endfor %}
</ul>
<div class="new-version">
<h5>New amendments effective</h5>
<ul class="m-list m-list--links">
{% for version in regulation.regulation.future_versions %}
<li class="m-list__item">
<a class="a-link a-link--jump" href="{{ regulation.url }}{{ version.effective_date|string }}/">
<span class="a-link__text">{{ ap_date(version.effective_date) }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}

</li>
Expand Down
30 changes: 13 additions & 17 deletions cfgov/unprocessed/apps/regulations3k/css/reg-listing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,28 @@
========================================================================== */

#regulations-listing {
margin: (math.div(45px, $base-font-size-px) + em) 0
(math.div(60px, $base-font-size-px) + em);
// TODO - Standardize a nested list link pattern.
.new-version {
margin-top: math.div(10px, $base-font-size-px) + rem;

> ul {
margin-bottom: math.div(30px, $base-font-size-px) + em;
padding-left: 0;
h5 {
margin-bottom: math.div(10px, $base-font-size-px) + rem;
}

> li {
border-bottom: 1px solid var(--gray);
list-style-type: none;
padding-bottom: math.div(15px, $base-font-size-px) + em;
a {
margin-left: math.div(-30px, $base-font-size-px) + rem;
padding-left: math.div(30px, $base-font-size-px) + rem;

&:first-child {
border-top: 1px solid var(--gray);
padding-top: math.div(15px, $base-font-size-px) + em;
&:hover:before {
border: none;
}
}

.new-version {
li {
font-size: math.div($size-v, $base-font-size-px) + em;
font-weight: normal;
list-style-type: square;
margin-left: math.div(30px, $base-font-size-px) + rem;
}
}

a {
border: 0;
}
}
Loading