1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Tweak CSS

This commit is contained in:
Jeremy Stretch
2020-11-06 16:09:55 -05:00
parent 6542a326c1
commit 5db14f9410
3 changed files with 15 additions and 12 deletions

View File

@ -164,7 +164,7 @@ INTERFACE_BUTTONS = """
{% elif record.is_connectable and perms.dcim.add_cable %}
<span class="dropdown">
<button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="mdi mdi-lan-connect" aria-hidden="true"></span>
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="{% url 'dcim:interface_connect' termination_a_id=record.pk termination_b_type='interface' %}?return_url={{ device.get_absolute_url }}">Interface</a></li>

View File

@ -120,9 +120,6 @@ footer p {
}
/* Navigation menu */
li.subnav > a {
padding-left: 30px;
}
ul.dropdown-menu {
width: 250px;
}
@ -354,11 +351,15 @@ textarea {
/* MDI icons */
.mdi::before {
font-size: 20px;
line-height: 14px;
line-height: 20px;
position: relative;
top: 2px;
}
.btn .mdi::before {
font-size: 20px;
line-height: 14px;
position: relative;
top: 4px;
top: 2px;
}
.btn-xs .mdi::before {
font-size: 18px;
@ -373,12 +374,11 @@ textarea {
}
.dropdown-menu .mdi::before {
position: relative;
top: 4px;
left: -8px;
}
.nav .mdi::before {
left: -2px;
position: relative;
top: 4px;
top: 2px;
}
.navbar .navbar-toggle .mdi::before {
position: relative;
@ -404,6 +404,9 @@ textarea {
position: relative;
top: 3px;
}
.input-group-btn .mdi::before {
font-size: 20px;
}
.navbar-brand .mdi::before {
position: relative;
top: 2px;

View File

@ -305,11 +305,11 @@
{% with action=change.get_action_display|lower %}
<div class="list-group-item">
{% if action == 'created' %}
<span class="label label-success"><i class="mdi mdi-plus-thick"></i></span>
<span class="label label-success">Created</span>
{% elif action == 'updated' %}
<span class="label label-warning"><i class="mdi mdi-pencil"></i></span>
<span class="label label-warning">Modified</span>
{% elif action == 'deleted' %}
<span class="label label-danger"><i class="mdi mdi-trash-can-outline"></i></span>
<span class="label label-danger">Deleted</span>
{% endif %}
{{ change.changed_object_type.name|bettertitle }}
{% if change.changed_object.get_absolute_url %}