Skip to content

Commit

Permalink
WIP to bring api page design in line
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 28, 2021
1 parent a4ae3d1 commit 6032bff
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
13 changes: 13 additions & 0 deletions caps/static/scss/api.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ul.breadcrumb {
li + li {
::before {
padding: 0 5px;
color: #ccc;
content: "/\00a0";
}
}
}

.pull-right {
float: right !important;
}
7 changes: 4 additions & 3 deletions caps/static/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
@import "../bootstrap/forms";
@import "../bootstrap/buttons";
@import "../bootstrap/transitions";
// @import "../bootstrap/dropdown";
// @import "../bootstrap/button-group";
@import "../bootstrap/dropdown";
@import "../bootstrap/button-group";
// @import "../bootstrap/input-group";
// @import "../bootstrap/custom-forms";
@import "../bootstrap/nav";
@import "../bootstrap/navbar";
@import "../bootstrap/card";
// @import "../bootstrap/breadcrumb";
@import "../bootstrap/breadcrumb";
// @import "../bootstrap/pagination";
@import "../bootstrap/badge";
// @import "../bootstrap/jumbotron";
Expand Down Expand Up @@ -82,3 +82,4 @@
@import "homepage";
@import "council-powers";
@import "net-zero-local-hero";
@import "api";
24 changes: 21 additions & 3 deletions templates/rest_framework/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@
{% load static %}
{% load pipeline %}

{% block title %}CAPS API{% endblock %}
{% block bootstrap_theme %}
{% stylesheet 'main' %}
{% endblock %}

{% block title %}Climate Action Plan Explorer API{% endblock %}

{% block branding %}
<a class="navbar-brand" rel="nofollow" href="/">DATA</a> <span class="navbar-brand">&raquo;</span> <a class="navbar-brand" href="{% url 'api-root' %}">API</a>
{% block navbar %}
{% include 'includes/site-header.html' %}
<div class="site-subheader">
<nav class="navbar navbar-expand-md navbar-dark">
<a class="navbar-brand" href="{% url 'home' %}">Climate Action Plan Explorer</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#secondaryNav" aria-controls="secondaryNav" aria-expanded="false" aria-label="Toggle secondary navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="secondaryNav">
<div class="navbar-nav">
<a class="nav-link" href="{% url 'council_list' %}">All councils</a>
<a class="nav-link" href="{% url 'about' %}">About</a>
</div>
</div>
</nav>
</div>
{% endblock %}

0 comments on commit 6032bff

Please sign in to comment.