| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- @use 'sass:map';
- // Color labels
- span.color-label {
- display: inline-block;
- width: 5rem;
- height: 1rem;
- padding: $badge-padding-y $badge-padding-x;
- border: 1px solid #303030;
- border-radius: $border-radius;
- }
- // Object hierarchy depth indicators
- .record-depth {
- display: inline;
- user-select: none;
- opacity: 33%;
- // Add spacing to the last or only dot.
- span:only-of-type,
- span:last-of-type {
- margin-right: map.get($spacers, 1);
- }
- }
- // Hides the last child of an element
- .hide-last-child :last-child {
- visibility: hidden;
- opacity: 0;
- }
- // NetBox edition text
- .netbox-edition {
- letter-spacing: .15rem;
- }
- // A floating div for form buttons
- .btn-float-group {
- position: sticky;
- bottom: 10px;
- z-index: 4;
- }
- .btn-float-group-left {
- @extend .btn-float-group;
- float: left;
- }
- .btn-float-group-right {
- @extend .btn-float-group;
- float: right;
- }
- // Override a transparent background
- .btn-float {
- --tblr-btn-bg: var(--#{$prefix}bg-surface-tertiary) !important;
- }
- .logo {
- height: 80px;
- }
- .sso-icon {
- height: 24px;
- }
- .btn-white {
- @extend .btn-light;
- }
- .btn-black {
- @extend .btn-dark;
- }
- .btn-grey, .btn-gray {
- @extend .btn-secondary;
- }
- img.plugin-icon {
- max-width: 1.4285em;
- height: auto;
- }
- // Image attachment thumbnails
- .thumbnail {
- max-width: 200px;
- img {
- border: 1px solid #606060;
- }
- }
- // Image preview popover (rendered for <a.image-preview> by initImagePreview())
- .image-preview-popover {
- --bs-popover-max-width: clamp(240px, 25vw, 640px);
- .popover-header {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .popover-body {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- img {
- display: block;
- max-width: 100%;
- max-height: clamp(160px, 33vh, 640px);
- height: auto;
- }
- }
- html[data-bs-theme=dark] {
- // Assuming icon is black/white line art, invert it and tone down brightness
- img.plugin-icon {
- filter: grayscale(100%) invert(100%) brightness(80%);
- }
- }
|