Skip to content

Commit 6997960

Browse files
Add initial nested list pattern
1 parent cbae2dd commit 6997960

2 files changed

Lines changed: 30 additions & 11 deletions

File tree

cfgov/regulations3k/jinja2/regulations3k/regulations-listing.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ <h4>{{ value.heading or 'Table of contents' }}</h4>
2727
{{ regulation.title }}
2828
</a>
2929
{% if regulation.regulation.future_versions %}
30-
<ul class="m-list m-list--links">
31-
{% for version in regulation.regulation.future_versions %}
32-
<li class="m-list__item new-version">New amendments effective
33-
<a class="a-link a-link--jump" href="{{ regulation.url }}{{ version.effective_date|string }}/">
34-
{{ ap_date(version.effective_date) }}
35-
</a>
36-
</li>
37-
{% endfor %}
38-
</ul>
30+
<div class="new-version">
31+
<h5>New amendments effective</h5>
32+
<ul class="m-list m-list--links">
33+
{% for version in regulation.regulation.future_versions %}
34+
<li class="m-list__item">
35+
<a class="a-link a-link--jump" href="{{ regulation.url }}{{ version.effective_date|string }}/">
36+
{{ ap_date(version.effective_date) }}
37+
</a>
38+
</li>
39+
{% endfor %}
40+
</ul>
41+
</div>
3942
{% endif %}
4043

4144
</li>

cfgov/unprocessed/apps/regulations3k/css/reg-listing.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,27 @@
77
========================================================================== */
88

99
#regulations-listing {
10-
> ul {
11-
.new-version {
10+
// TODO - Standardize a nested list link pattern.
11+
.new-version {
12+
h5 {
13+
margin-top: math.div(10px, $base-font-size-px) + rem;
14+
margin-bottom: math.div(10px, $base-font-size-px) + rem;
15+
}
16+
17+
a {
18+
margin-left: math.div(-30px, $base-font-size-px) + rem;
19+
padding-left: math.div(30px, $base-font-size-px) + rem;
20+
21+
&:hover:before {
22+
border: none;
23+
}
24+
}
25+
26+
li {
1227
font-size: math.div($size-v, $base-font-size-px) + em;
1328
font-weight: normal;
1429
list-style-type: square;
30+
margin-left: math.div(30px, $base-font-size-px) + rem;
1531
}
1632
}
1733
}

0 commit comments

Comments
 (0)