Merge fcce7b7bf4
into 5af3c659a5
This commit is contained in:
commit
3ad769f5a6
|
@ -113,6 +113,7 @@ async function bundleStyles() {
|
|||
'netbox': 'styles/netbox.scss',
|
||||
rack_elevation: 'styles/svg/rack_elevation.scss',
|
||||
cable_trace: 'styles/svg/cable_trace.scss',
|
||||
'rest-api': 'styles/rest_api.scss',
|
||||
};
|
||||
const pluginOptions = { outputStyle: 'compressed' };
|
||||
// Allow cache disabling.
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
.breadcrumb {
|
||||
background-color: #fff;
|
||||
}
|
||||
.btn-primary {
|
||||
background-color: #17a2b8;
|
||||
border: none;
|
||||
}
|
||||
.navbar-default {
|
||||
background-color: #1f2e41;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.navbar-default .navbar-text {
|
||||
color: #fff;
|
||||
}
|
||||
.navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand {
|
||||
padding: 12px 0 12px 0;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 1px;
|
||||
}
|
||||
.prettyprint {
|
||||
background-color: #f6f8fb;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
margin-bottom: 10px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-top: 10px;
|
||||
}
|
|
@ -2,6 +2,13 @@
|
|||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bootstrap_theme %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static "rest_framework/css/bootstrap.min.css" %}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{% static "rest-api.css" %}"/>
|
||||
{% endblock %}
|
||||
|
||||
{% block bootstrap_navbar_variant %}navbar-default{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
{{ block.super }}
|
||||
<link rel="icon" type="image/png" href="{% static 'rest-api.ico' %}" />
|
||||
|
@ -10,5 +17,7 @@
|
|||
{% block title %}{% if name %}{{ name }} | {% endif %}NetBox {% trans "REST API" %}{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<a class="navbar-brand" href="{% url 'home' %}">NetBox</a>
|
||||
<a class="navbar-brand" href="{% url 'home' %}">
|
||||
<img src="{% static 'netbox_logo.svg' %}" height="32" alt="{% trans "NetBox Logo" %}" class="navbar-brand-image">
|
||||
</a>
|
||||
{% endblock branding %}
|
||||
|
|
Loading…
Reference in New Issue