This commit is contained in:
Arthur Hanson 2024-04-26 13:26:15 +02:00 committed by GitHub
commit 3ad769f5a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 42 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}

View File

@ -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 %}