Skip to content

Commit 499f1e0

Browse files
Convert regs list to list links pattern
1 parent bb5915d commit 499f1e0

2 files changed

Lines changed: 7 additions & 28 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
{% if regulations.exists() %}
2121
<div id="regulations-listing">
2222
<h4>{{ value.heading or 'Table of contents' }}</h4>
23-
<ul>
23+
<ul class="m-list m-list--links">
2424
{% for regulation in regulations %}
25-
<li class="h4">
26-
<a href="{{ regulation.url }}">
27-
<span class="title-num">{{ regulation.title }}</span>
25+
<li class="m-list__item">
26+
<a class="a-link a-link--jump" href="{{ regulation.url }}">
27+
{{ regulation.title }}
2828
</a>
2929
{% if regulation.regulation.future_versions %}
30-
<ul>
30+
<ul class="m-list m-list--links">
3131
{% for version in regulation.regulation.future_versions %}
32-
<li class="new-version">New amendments effective
33-
<a href="{{ regulation.url }}{{ version.effective_date|string }}/">
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 }}/">
3434
{{ ap_date(version.effective_date) }}
3535
</a>
3636
</li>

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,11 @@
77
========================================================================== */
88

99
#regulations-listing {
10-
margin: (math.div(45px, $base-font-size-px) + em) 0
11-
(math.div(60px, $base-font-size-px) + em);
12-
1310
> ul {
14-
margin-bottom: math.div(30px, $base-font-size-px) + em;
15-
padding-left: 0;
16-
17-
> li {
18-
border-bottom: 1px solid var(--gray);
19-
list-style-type: none;
20-
padding-bottom: math.div(15px, $base-font-size-px) + em;
21-
22-
&:first-child {
23-
border-top: 1px solid var(--gray);
24-
padding-top: math.div(15px, $base-font-size-px) + em;
25-
}
26-
}
27-
2811
.new-version {
2912
font-size: math.div($size-v, $base-font-size-px) + em;
3013
font-weight: normal;
3114
list-style-type: square;
3215
}
3316
}
34-
35-
a {
36-
border: 0;
37-
}
3817
}

0 commit comments

Comments
 (0)