Summary: Cleanup markup for navtabs a little, use CSS to add margin

instead of empty paragraph
 - Legacy-Id: 8919
This commit is contained in:
Ole Laursen 2015-01-26 16:32:56 +00:00
parent 212d7e8ff0
commit 7462ade959
9 changed files with 13 additions and 17 deletions

View file

@ -9,7 +9,7 @@
{% bootstrap_messages %}
<ul class="nav nav-tabs nav-memory">
<ul class="nav nav-tabs nav-memory" role="tablist">
<li class="active"><a href="#view" data-toggle="tab">Documents</a></li>
<li><a href="#documents" data-toggle="tab">Explicitly added</a></li>
<li><a href="#rules" data-toggle="tab">Rules</a></li>
@ -17,8 +17,6 @@
<li><a href="#info" data-toggle="tab">Exports</a></li>
</ul>
<p></p>
<div class="tab-content">
<div class="tab-pane active" id="view">
{% include "community/view_list.html" %}

View file

@ -2,11 +2,10 @@
<h1>{{ doc.title }}<br><small>{{ name }}</small></h1>
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" role="tablist">
{% for name, t, url, active, tooltip in tabs %}
<li {% if tooltip %}title="{{tooltip}}"{% endif %} class="{% if t == selected %}active {% endif %}{% if not active %}disabled {% endif %}">
<a {% if active %}href="{{ url }}"{% endif %}>{{ name|capfirst_allcaps }}</a>
</li>
{% endfor %}
</ul>
<p></p>

View file

@ -15,7 +15,7 @@
{% endif %}
</h1>
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" role="tablist">
{% for name, url in menu_entries %}
<li {% if selected_menu_entry == name.lower %}class="active"{% endif %}>
<a href="{{ url }}">{{ name }}</a>
@ -23,8 +23,6 @@
{% endfor %}
</ul>
<p></p>
{% if menu_actions %}
<div class="buttonlist">
{% for name, url in menu_actions %}

View file

@ -43,7 +43,6 @@
</li>
{% endif %}
</ul>
<p></p>
{% block nomcom_content %}
{% endblock %}

View file

@ -17,7 +17,6 @@
<li {% if selected == "requirements" %}class="active"{% endif %}><a href="{% url "nomcom_requirements" year %}">Desired expertise</a></li>
<li {% if selected == "questionnaires" %}class="active"{% endif %}><a href="{% url "nomcom_questionnaires" year %}">Questionnaires</a></li>
</ul>
<p></p>
{% block nomcom_content %}
{% endblock %}

View file

@ -54,7 +54,6 @@
{% endfor %}
</div>
<p></p>
<a class="btn btn-default" href="{% url "nomcom_view_feedback" year %}">Back</a>
{% endblock %}

View file

@ -48,6 +48,7 @@
{% endfor %}
</div>
<p></p>
<a class="btn btn-default" href="{% url "nomcom_view_feedback" year %}">Back</a>
<p>
<a class="btn btn-default" href="{% url "nomcom_view_feedback" year %}">Back</a>
</p>
{% endblock %}

View file

@ -7,7 +7,7 @@
{% block content %}
<h1>Internet-Draft submission </h1>
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" role="tablist">
<li {% if selected == "index" %}class="active"{% endif %}>
<a href="{% url "submit_upload_submission" %}">Upload</a>
</li>
@ -25,8 +25,6 @@
</li>
</ul>
<p></p>
{% block submit_content %}
{% endblock %}

View file

@ -82,9 +82,12 @@ body { padding-top: 70px; }
.panel-blank { color: #555; }
.panel-blank > .panel-heading { background-color: #eee; }
/* Style required form field labels - 2217 = &lowast; */
/* Required form field labels - 2217 = &lowast; */
label.required:after { content: "\2217"; color: #a94442; font-weight: bold; }
/* Add some margin to tabs */
.nav-tabs[role=tablist] { margin-bottom: 0.7em; }
/* Styles needed for the ballot table */
.position-discuss,
.position-block { background-color: #d9534f; }
@ -250,4 +253,6 @@ pre { line-height: 1.214; }
/* IPR */
#ipr-details dl.dl-horizontal dt { white-space: normal; }
.ipr-form .draft-row.template { display: none }