Skip to content

Commit c72d465

Browse files
committed
Summary: Insert anchor-target hack to try to alleviate the problem of
the top menu covering the anchor target, also increase the width at which content navigation menus disappear - Legacy-Id: 9093
1 parent 3fa5136 commit c72d465

16 files changed

Lines changed: 53 additions & 42 deletions

ietf/templates/doc/document_ballot_content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h4><span class="label label-{{ n|pos_to_label }}"> {{ n.name }}</span></h4>
7575

7676
{% for n, positions in position_groups %}
7777
{% for p in positions|dictsort:"ad.last_name" %}
78-
<h4 id="{{ p.ad.plain_name|slugify }}">
78+
<h4 class="anchor-target" id="{{ p.ad.plain_name|slugify }}">
7979
{% if p.old_ad %}<span class="text-muted">{% endif %}
8080
{{ p.ad.plain_name }}
8181
{% if p.old_ad %}</span>{% endif %}

ietf/templates/doc/document_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ <h2>Document history</h2>
9797

9898
<tbody>
9999
{% for e in events %}
100-
<tr id="history-{{ e.pk }}">
100+
<tr class="anchor-target" id="history-{{ e.pk }}">
101101
<td class="text-nowrap">{{ e.time|date:"Y-m-d" }}</td>
102102
<td class="text-right">{{ e.rev }}</td>
103103
<td>{{ e.by|escape }}</td>

ietf/templates/doc/index_active_drafts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>Active Internet-Drafts</h1>
2020
</p>
2121

2222
{% for group in groups %}
23-
<h2 id="{{ group.acronym }}">{{ group.name }} ({{ group.acronym }})</h2>
23+
<h2 class="anchor-target" id="{{ group.acronym }}">{{ group.name }} ({{ group.acronym }})</h2>
2424
{% for d in group.active_drafts %}
2525
<p>
2626
<b>{{ d.title }}.</b><br>

ietf/templates/doc/index_all_drafts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2>Contents</h2>
3333
</ul>
3434

3535
{% for state, heading, count, links in categories %}
36-
<h2 id="{{ state.slug }}">{{ heading }} ({{ count }})</h2>
36+
<h2 class="anchor-target" id="{{ state.slug }}">{{ heading }} ({{ count }})</h2>
3737
<p class="links">{{ links|safe }}</p>
3838
{% endfor %}
3939

ietf/templates/doc/relationship_help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>Document relationships</h1>
1515
</thead>
1616
<tbody>
1717
{% for rel in relations %}
18-
<tr id="{{ rel.slug }}">
18+
<tr class="anchor-target" id="{{ rel.slug }}">
1919
<td class="name">{{ rel.name }}</td>
2020
<td class="desc">{{ rel.desc|linebreaksbr }}</td>
2121
<td class="revname">{{ rel.revname }}</td>

ietf/templates/doc/state_help.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>{{ title }}</h1>
1919
</thead>
2020
<tbody>
2121
{% for state in states %}
22-
<tr id="{{ state.slug }}">
22+
<tr class="anchor-target" id="{{ state.slug }}">
2323
<th>{{ state.name }}</th>
2424
<td>{{ state.desc|safe|linebreaksbr }}</td>
2525
{% if has_next_states %}
@@ -47,7 +47,7 @@ <h2>Tags</h2>
4747

4848
<tbody>
4949
{% for tag in tags %}
50-
<tr id="{{ tag.slug }}">
50+
<tr class="anchor-target" id="{{ tag.slug }}">
5151
<td>{{ tag.name }}</td>
5252
<td>{{ tag.desc|linebreaksbr }}</td>
5353
</tr>

ietf/templates/group/active_wgs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
{% block content %}
88
<div class="row">
9-
<div class="col-sm-10">
9+
<div class="col-md-10">
1010

1111
<h1>Active IETF working groups</h1>
1212

1313
<a class="btn btn-default" href="{% url "ietf.group.info.concluded_groups" %}">Concluded WGs</a>
1414
<a class="btn btn-default" href="//www.ietf.org/dyn/wg/charter/history/">Historic charters</a>
1515

1616
{% for area in areas %}
17-
<h2 id="{{area.acronym}}">{{ area.name }} ({{ area.acronym }})</h2>
17+
<h2 class="anchor-target" id="{{area.acronym}}">{{ area.name }} ({{ area.acronym }})</h2>
1818

1919
{% if area.ads %}
2020
<h3>{{ area.acronym }} Area Director{{ area.ads|pluralize }} (AD{{ area.ads|pluralize }})</h3>
@@ -78,7 +78,7 @@ <h3>No active {{ area.acronym }} WGs</h3>
7878
{% endfor %}
7979

8080
</div>
81-
<div class="col-sm-2 hidden-print bs-docs-sidebar" id="affix">
81+
<div class="col-md-2 hidden-print bs-docs-sidebar" id="affix">
8282
<ul class="nav nav-pills nav-stacked small" data-spy="affix">
8383
{% for area in areas %}
8484
<li><a href="#{{area.acronym}}">{{ area.name }}</a></li>

ietf/templates/iesg/agenda.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
{% block content %}
3131
<div class="row">
32-
<div class="col-sm-10">
32+
<div class="col-md-10">
3333

3434
<h1>IESG agenda: {{ date }} </h1>
3535

@@ -40,9 +40,9 @@ <h1>IESG agenda: {{ date }} </h1>
4040

4141
{% for num, section in sections %}
4242

43-
{% if num|sectionlevel == 1 %}<h2 id="{{num}}">{{ num }}. {{ section.title|safe }}</h2>{% endif %}
44-
{% if num|sectionlevel == 2 %}<h3 id="{{num}}">{{ num }} {{ section.title|safe }}</h3>{% endif %}
45-
{% if num|sectionlevel == 3 %}<h4 id="{{num}}">{{ num }} {{ section.title|safe }}</h4>{% endif %}
43+
{% if num|sectionlevel == 1 %}<h2 class="anchor-target" id="{{num}}">{{ num }}. {{ section.title|safe }}</h2>{% endif %}
44+
{% if num|sectionlevel == 2 %}<h3 class="anchor-target" id="{{num}}">{{ num }} {{ section.title|safe }}</h3>{% endif %}
45+
{% if num|sectionlevel == 3 %}<h4 class="anchor-target" id="{{num}}">{{ num }} {{ section.title|safe }}</h4>{% endif %}
4646

4747
{% if num == "1.4" %}
4848
<pre>
@@ -130,7 +130,7 @@ <h1>IESG agenda: {{ date }} </h1>
130130
{% endfor %}
131131
</div>
132132

133-
<div class="col-sm-2 hidden-print bs-docs-sidebar" id="affix">
133+
<div class="col-md-2 hidden-print bs-docs-sidebar" id="affix">
134134
<ul class="nav nav-pills nav-stacked small" data-spy="affix">
135135
{% for num, section in sections %}
136136
{% if num|sectionlevel <= 1 %}

ietf/templates/ipr/details_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1>History for IPR disclosure<br><small>{{ ipr.title }}</small></h1>
2929

3030
<tbody>
3131
{% for e in events %}
32-
<tr id="history-{{ e.pk }}">
32+
<tr class="anchor-target" id="history-{{ e.pk }}">
3333
<td class="text-nowrap">{{ e.time|date:"Y-m-d" }}</td>
3434
<td>{{ e.type }}
3535
{% if e.response_due and e.response_past_due %}

ietf/templates/ipr/list.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{% block content %}
1010
<div class="row">
11-
<div class="col-sm-10">
11+
<div class="col-md-10">
1212

1313
<h1>Intellectual property rights disclosures</h1>
1414

@@ -33,21 +33,21 @@ <h1>Intellectual property rights disclosures</h1>
3333
{% endif %}
3434
</p>
3535

36-
<h2 id="generic">Generic IPR disclosures</h2>
36+
<h2 class="anchor-target" id="generic">Generic IPR disclosures</h2>
3737

3838
{% include "ipr/ipr_table.html" with iprs=generic_disclosures %}
3939

40-
<h2 id="specific">Specific IPR disclosures</h2>
40+
<h2 class="anchor-target" id="specific">Specific IPR disclosures</h2>
4141

4242
{% include "ipr/ipr_table.html" with iprs=specific_disclosures %}
4343

44-
<h2 id="notify">Specific third-party IPR disclosures</h2>
44+
<h2 class="anchor-target" id="notify">Specific third-party IPR disclosures</h2>
4545

4646
{% include "ipr/ipr_table.html" with iprs=thirdpty_disclosures %}
4747

4848
</div>
4949

50-
<div class="col-sm-2 hidden-print bs-docs-sidebar" id="affix">
50+
<div class="col-md-2 hidden-print bs-docs-sidebar" id="affix">
5151
<ul class="nav nav-pills nav-stacked small" data-spy="affix">
5252
<li><a href="#generic">Generic IPR disclosures</a></li>
5353
<li><a href="#specific">Specific IPR disclosures</a></li>

0 commit comments

Comments
 (0)