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

463 lines
8.9 KiB
SCSS
Raw Normal View History

2021-03-13 02:31:46 -07:00
main.login-container {
display: flex;
height: calc(100vh - 4rem);
width: 100vw;
align-items: center;
justify-content: center;
flex-direction: column;
padding-top: 40px;
padding-bottom: 40px;
}
footer.login-footer {
height: 4rem;
margin-top: auto;
.container-fluid {
display: flex;
justify-content: flex-end;
padding: $container-padding-x $grid-gutter-width;
}
}
.form-login {
width: 100%;
max-width: 330px;
padding: 15px;
// margin: auto;
}
.form-login input[type='text'] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-login input[type='password'] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.form-login .form-control {
position: relative;
box-sizing: border-box;
height: auto;
padding: 10px;
font-size: 16px;
}
li.dropdown-item.dropdown-item-btns {
display: flex;
justify-content: space-between;
align-items: center;
}
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 100; /* Behind the navbar */
// padding: 48px 0 0; /* Height of navbar */
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}
@media (max-width: 767.98px) {
.sidebar {
top: 5rem;
}
}
.sidebar-sticky {
position: relative;
top: 0;
height: calc(100vh - 48px);
padding-top: 0.5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
.navbar-brand {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
font-size: 1rem;
}
.sidebar {
.sidebar-nav-link {
color: $gray-800;
}
.accordion-body {
max-height: calc(100vh - 24rem);
overflow-y: auto;
.nav-item {
.nav-link {
padding: 0.25rem 0.5rem;
font-size: $font-size-base;
}
.nav-link:hover {
background-color: $blue-100;
border-radius: $border-radius;
}
}
}
div.position-sticky {
height: calc(100% - 8rem);
}
div.sidebar-bottom {
padding-left: 0.5rem;
padding-right: 0.5rem;
position: sticky;
height: 8rem;
background-color: $light;
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
.nav-link {
padding: 0.5rem 0.25rem;
}
}
a.sidebar-logo {
display: flex;
flex-shrink: 1;
width: 100%;
height: 4rem;
}
}
.tooltip {
pointer-events: none;
}
.ws-nowrap {
white-space: nowrap !important;
}
h1.accordion-item-title,
h2.accordion-item-title,
h3.accordion-item-title,
h4.accordion-item-title,
h5.accordion-item-title,
h6.accordion-item-title {
padding: 0 0.5rem;
font-weight: $font-weight-bold;
text-transform: uppercase;
color: $text-muted;
font-size: $font-size-sm;
}
#object-type-selector {
button.dropdown-item,
h6.dropdown-header {
font-size: $font-size-sm;
}
}
.stats-container {
min-height: 50vh;
}
span.color-label {
width: 5rem;
height: 1rem;
display: block;
box-shadow: $box-shadow-sm;
border-radius: $border-radius;
padding: $badge-padding-y $badge-padding-x;
}
2021-04-16 14:58:44 -07:00
pre {
border-radius: $border-radius;
border: 1px solid $gray-200;
background-color: $gray-100;
padding: $spacer;
white-space: pre;
}
.btn {
white-space: nowrap;
}
2021-03-13 02:31:46 -07:00
.card {
box-shadow: $box-shadow-sm;
.card-header {
border-bottom: none;
padding: $card-cap-padding-x;
}
.card-header + .card-body {
padding-top: 0;
}
2021-04-22 18:58:36 -07:00
.card-body {
overflow-x: auto;
}
2021-03-13 02:31:46 -07:00
}
.form-floating {
position: relative;
> .input-group > .form-control,
> .input-group > .form-select {
height: $form-floating-height;
padding: $form-floating-padding-y $form-floating-padding-x;
}
> .input-group > label {
position: absolute;
top: 0;
left: 0;
height: 100%; // allow textareas
padding: $form-floating-padding-y $form-floating-padding-x;
pointer-events: none;
border: $input-border-width solid transparent; // Required for aligning label's text with the input as it affects inner box model
transform-origin: 0 0;
@include transition($form-floating-transition);
}
> .input-group > .form-control {
&::placeholder {
color: transparent;
}
&:focus,
&:not(:placeholder-shown) {
padding-top: $form-floating-input-padding-t;
padding-bottom: $form-floating-input-padding-b;
}
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
&:-webkit-autofill {
padding-top: $form-floating-input-padding-t;
padding-bottom: $form-floating-input-padding-b;
}
}
> .input-group > .form-select,
> .choices > .choices__inner,
> .ss-main span.placeholder, // SlimSelect Single
> .ss-main div.ss-values // SlimSelect Multiple
{
padding-top: $form-floating-input-padding-t;
padding-bottom: $form-floating-input-padding-b;
}
> .input-group > .form-control:focus,
> .input-group > .form-control:not(:placeholder-shown),
> .input-group > .form-select,
> .choices,
> .ss-main {
~ label {
opacity: $form-floating-label-opacity;
transform: $form-floating-label-transform;
z-index: 4;
}
}
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
> .input-group > .form-control:-webkit-autofill {
~ label {
opacity: $form-floating-label-opacity;
transform: $form-floating-label-transform;
z-index: 4;
}
}
}
textarea#id_local_context_data,
2021-04-13 21:51:12 -07:00
textarea.markdown,
textarea#id_public_key {
2021-03-13 02:31:46 -07:00
font-family: $font-family-monospace;
}
2021-04-18 11:36:41 -07:00
textarea.form-control[name='csv'] {
font-family: $font-family-monospace;
}
2021-04-18 00:22:52 -07:00
table tr.vertical-align {
vertical-align: middle;
}
2021-03-13 02:31:46 -07:00
// Pad all adjacent cards
.card:not(:only-of-type) {
margin-bottom: $spacer;
}
.stat-btn {
min-width: $spacer * 3;
}
nav.breadcrumb-container {
padding: $badge-padding-y $badge-padding-x;
border-radius: $border-radius;
background-color: $light;
font-size: $font-size-sm;
width: fit-content;
ol.breadcrumb {
margin-bottom: 0;
li.breadcrumb-item > a {
text-decoration: none;
}
li.breadcrumb-item > a:hover {
text-decoration: underline;
}
}
}
div#content-title {
display: flex;
flex-direction: column;
flex: 1 0 auto;
}
div.paginator > form > div.input-group {
width: fit-content;
}
button.btn.btn-outline-gray.dropdown-toggle:after {
color: $black;
}
// Apply bootstrap focus styling to Choices.JS elements.
div.choices.is-focused > div.choices__inner {
border-color: $form-select-focus-border-color;
outline: 0;
@if $enable-shadows {
@include box-shadow($form-select-box-shadow, $form-select-focus-box-shadow);
} @else {
box-shadow: $form-select-focus-box-shadow;
}
}
div.field-group:not(:first-of-type) {
margin-top: $spacer * 3;
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: $spacer;
}
}
label.required {
font-weight: $font-weight-bold;
&::after {
font-family: 'Material Design Icons';
content: '\f06C4';
font-weight: normal;
font-size: 8px;
font-style: normal;
margin: 0 0 0 2px;
text-decoration: none;
display: inline-block;
position: absolute;
}
}
2021-03-14 17:31:55 -07:00
div.bulk-buttons {
display: flex;
& > * {
margin: $spacer / 4;
}
}
i.bi-plus:before,
span.bi-plus:before {
font-weight: $font-weight-bold !important;
}
2021-03-19 09:38:26 -07:00
table tbody tr.success {
background-color: rgba($success, 0.15);
}
2021-04-13 21:51:12 -07:00
table td,
table th {
font-size: $font-size-sm;
}
2021-04-15 16:53:04 -07:00
// Cable Tracing
.cable-trace {
max-width: 38rem;
margin: 1rem auto;
text-align: center;
}
.cable-trace .node {
background-color: $gray-100;
border: $border-width solid $gray-200;
border-radius: $border-radius;
padding: 1.5rem 1rem;
position: relative;
z-index: 1;
}
.cable-trace .termination {
background-color: $gray-200;
border: $border-width solid $gray-300;
box-shadow: $box-shadow;
border-radius: $border-radius;
margin: -1rem auto;
padding: 0.5rem;
position: relative;
width: 60%;
z-index: 2;
}
.cable-trace .active {
border: 0.25rem solid $green;
}
.cable-trace .cable {
border-left-style: solid;
border-left-width: 0.25rem;
margin: 1rem 0 1rem 50%;
padding: 1.5rem;
text-align: left;
width: 50%;
}
.cable-trace .trace-end {
margin-top: 2rem;
text-align: center;
}
2021-04-18 16:42:28 -07:00
pre.change-data {
padding-left: 0;
padding-right: 0;
& > span {
display: block;
padding-left: $spacer;
padding-right: $spacer;
&.added {
background-color: rgba($green, 0.4);
}
&.removed {
background-color: rgba($red, 0.4);
}
}
}
pre.change-diff {
border-color: transparent;
&.change-removed {
background-color: rgba($red, 0.4);
}
&.change-added {
background-color: rgba($green, 0.4);
}
}
2021-04-20 01:18:24 -07:00
div.card-overlay {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba($white, 0.75);
border-radius: $border-radius;
display: flex;
justify-content: center;
align-items: center;
& > div.spinner-border {
width: 6rem;
height: 6rem;
color: $secondary;
}
}
div.card > div.card-header > div.table-controls {
max-width: 25%;
width: 100%;
}