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

310 lines
5.3 KiB
CSS
Raw Normal View History

2016-03-01 11:23:03 -05:00
/* Layout */
* {
margin: 0;
}
html {
overflow-y: scroll;
}
2016-03-01 11:23:03 -05:00
html, body {
height: 100%;
}
body {
padding-top: 70px;
}
.container {
width: auto;
max-width: 1600px;
2016-03-01 11:23:03 -05:00
}
.wrapper {
min-height: 100%;
height: auto !important;
margin: 0 auto -61px; /* the bottom margin is the negative value of the footer's height */
padding-bottom: 30px;
}
2016-08-09 14:57:14 -04:00
.navbar-brand {
padding: 12px 15px 8px;
}
2016-03-01 11:23:03 -05:00
.footer, .push {
height: 60px; /* .push must be the same height as .footer */
}
.footer {
background-color: #f5f5f5;
border-top: 1px solid #d0d0d0;
}
footer p {
margin: 20px 0;
}
/* Hide the username in the navigation menu on displays less than 1400px wide */
@media (max-width: 1399px) {
#navbar_user {
display: none;
}
}
/* Hide the search bar in the navigation menu on displays less than 1250px wide */
@media (max-width: 1249px) {
#navbar_search {
display: none;
}
}
/* Printer friendly CSS class and various fixes for printing. */
@media print {
body {
padding-top: 0px;
}
a[href]:after {
content: none !important;
}
.noprint {
display: none !important;
}
}
/* Collapse the nav menu on displays less than 980px wide */
@media (max-width: 979px) {
2016-07-09 14:09:35 -04:00
.navbar-header {
float: none;
}
.navbar-left,.navbar-right {
float: none !important;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-collapse.collapse {
display: none!important;
max-height: none;
2016-07-09 14:09:35 -04:00
}
.navbar-nav {
float: none !important;
2016-07-09 14:09:35 -04:00
margin-top: 7.5px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.collapse.in {
display:block !important;
}
#navbar_user {
display: inline;
}
}
2017-08-03 17:49:22 -04:00
/* Navigation menu */
li.subnav > a {
padding-left: 30px;
}
2017-09-29 14:27:42 -04:00
ul.dropdown-menu {
width: 250px;
}
ul.dropdown-menu div.buttons {
padding-right: 10px;
padding-top: 2px;
}
ul.dropdown-menu div.buttons a {
width: 26px;
}
ul.dropdown-menu > li > a {
clear: left;
}
2017-08-03 17:49:22 -04:00
2016-03-01 11:23:03 -05:00
/* Forms */
label {
font-weight: normal;
}
label.required {
font-weight: bold;
}
input[name="pk"] {
margin-top: 0;
}
2016-03-01 11:23:03 -05:00
2016-03-01 11:23:03 -05:00
/* Tables */
th.pk, td.pk {
padding-bottom: 6px;
padding-top: 10px;
2016-03-01 11:23:03 -05:00
width: 30px;
}
tfoot td {
font-weight: bold;
}
2016-12-14 17:09:33 -05:00
table.attr-table td:nth-child(1) {
width: 25%;
}
2017-03-29 16:45:25 -04:00
.table-headings th {
background-color: #f5f5f5;
}
td.min-width {
width: 1%;
}
2016-03-01 11:23:03 -05:00
/* Paginator */
div.paginator {
margin-bottom: 20px;
}
div.paginator form {
margin-bottom: 6px;
}
2016-03-01 11:23:03 -05:00
nav ul.pagination {
margin-top: 0;
margin-bottom: 8px !important;
2016-03-01 11:23:03 -05:00
}
/* Racks */
div.rack_header {
margin-left: 36px;
text-align: center;
2016-12-05 18:11:07 -05:00
width: 230px;
2016-03-01 11:23:03 -05:00
}
ul.rack_legend {
float: left;
list-style-type: none;
margin-right: 6px;
padding: 0;
width: 30px;
}
ul.rack_legend li {
color: #c0c0c0;
display: block;
font-size: 10px;
height: 20px;
overflow: hidden;
padding: 5px 0;
text-align: right;
}
/* Devices */
2017-09-20 14:44:51 -04:00
table.component-list td.subtable {
padding: 0;
padding-left: 16px;
}
2017-09-20 14:44:51 -04:00
table.component-list td.subtable td {
border: none;
padding-bottom: 6px;
padding-top: 6px;
}
table.interface-ips th {
font-size: 80%;
font-weight: normal;
}
2017-09-26 17:17:28 -04:00
/* Reports */
table.reports td.method {
font-family: monospace;
padding-left: 30px;
}
td.report-stats label {
2017-09-26 17:17:28 -04:00
display: inline-block;
line-height: 14px;
margin-bottom: 0;
min-width: 40px;
}
table.report th {
position: relative;
}
table.report th a {
position: absolute;
top: -51px;
}
2017-09-26 17:17:28 -04:00
/* Rendered Markdown */
.rendered-markdown table {
width: 100%;
}
.rendered-markdown th {
border-bottom: 2px solid #dddddd;
padding: 8px;
}
.rendered-markdown td {
border-top: 1px solid #dddddd;
padding: 8px;
}
2019-08-14 14:38:11 -04:00
.rendered-markdown :last-child {
margin-bottom: 0;
}
2017-07-17 11:41:39 -04:00
/* AJAX loader */
.loading {
position: fixed;
display: none;
z-index: 999;
height: 2em;
width: 2em;
overflow: show;
margin: auto;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.loading:before {
content: '';
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.3);
}
2016-03-01 11:23:03 -05:00
/* Misc */
2018-10-26 13:14:12 -04:00
.color-block {
display: block;
width: 80px;
border: 1px solid grey;
2018-10-26 13:14:12 -04:00
}
.inline-color-block {
display: inline-block;
width: 1.5em;
height: 1.5em;
border: 1px solid grey;
border-radius: .25em;
vertical-align: middle;
}
.text-nowrap {
white-space: nowrap;
}
2016-07-11 13:29:58 -04:00
.banner-bottom {
margin-bottom: 50px;
}
.panel table {
margin-bottom: 0;
2016-03-01 11:23:03 -05:00
}
.panel .table th {
border-bottom-width: 1px;
}
.panel table tr.even:first-child td {
border-top: 0;
2016-03-01 11:23:03 -05:00
}
.panel .list-group {
max-height: 400px;
overflow: auto;
}
ul.nav-tabs, ul.nav-pills {
margin-bottom: 20px;
}
2016-03-01 11:23:03 -05:00
/* Fix progress bar margin inside table cells */
td .progress {
margin-bottom: 0;
min-width: 100px;
2016-03-01 11:23:03 -05:00
}
textarea {
font-family: Consolas, Lucida Console, monospace;
}