mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
#6797: Improve global search styles
This commit is contained in:
parent
58862e115c
commit
53e21ceed4
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
@ -118,15 +118,6 @@ table td > .progress {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-container {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
@include media-breakpoint-down(lg) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card > .table.table-flush {
|
.card > .table.table-flush {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -270,25 +261,68 @@ div.title-container {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Global Search
|
||||||
nav.search {
|
nav.search {
|
||||||
// Don't overtake dropdowns
|
// Don't overtake dropdowns
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: var(--nbx-body-bg);
|
background-color: var(--nbx-body-bg);
|
||||||
|
|
||||||
form button.dropdown-toggle {
|
.search-container {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
@include media-breakpoint-down(lg) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Search Input & Selected Object Value & Object Selector
|
||||||
|
.input-group {
|
||||||
|
// Selected Object
|
||||||
|
.search-obj-selected {
|
||||||
|
border-color: $input-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Object Selector Dropdown Button
|
||||||
|
.dropdown-toggle {
|
||||||
|
// Generate the same styles as a regular Bootstrap button.
|
||||||
|
@include button-variant($input-group-addon-bg, $input-border-color);
|
||||||
|
margin-left: 0;
|
||||||
font-weight: $input-group-addon-font-weight;
|
font-weight: $input-group-addon-font-weight;
|
||||||
line-height: $input-line-height;
|
line-height: $input-line-height;
|
||||||
color: $input-group-addon-color;
|
color: $input-group-addon-color;
|
||||||
background-color: $input-group-addon-bg;
|
background-color: $input-group-addon-bg;
|
||||||
border: $input-border-width solid $input-group-addon-border-color;
|
border: $input-border-width solid $input-border-color;
|
||||||
border-color: $input-border-color;
|
|
||||||
@include border-radius($input-border-radius);
|
@include border-radius($input-border-radius);
|
||||||
border-left: 1px solid var(--nbx-search-filter-border-left-color);
|
border-left: 1px solid var(--nbx-search-filter-border-left-color);
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
box-shadow: unset !important;
|
box-shadow: unset !important;
|
||||||
}
|
}
|
||||||
|
// Don't show the dropdown icon — the filter icon is basically the same thing.
|
||||||
|
&:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Object Selector Dropdown Menu
|
||||||
|
.search-obj-selector {
|
||||||
|
@include media-breakpoint-down(lg) {
|
||||||
|
// Limit the height and enable scrolling on mobile devices.
|
||||||
|
max-height: 70vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-item,
|
||||||
|
.dropdown-header {
|
||||||
|
font-size: $font-size-sm;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-header {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -436,23 +470,6 @@ div.content-container {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-obj-selector {
|
|
||||||
@include media-breakpoint-down(lg) {
|
|
||||||
// Limit the height and enable scrolling on mobile devices.
|
|
||||||
max-height: 75vh;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-item,
|
|
||||||
.dropdown-header {
|
|
||||||
font-size: $font-size-sm;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-header {
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
span.color-label {
|
span.color-label {
|
||||||
display: block;
|
display: block;
|
||||||
width: 5rem;
|
width: 5rem;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<span class="input-group-text search-obj-selected">All Objects</span>
|
<span class="input-group-text search-obj-selected">All Objects</span>
|
||||||
|
|
||||||
<button type="button" aria-expanded="false" data-bs-toggle="dropdown" class="btn btn-outline-secondary dropdown-toggle">
|
<button type="button" aria-expanded="false" data-bs-toggle="dropdown" class="btn dropdown-toggle">
|
||||||
<i class="mdi mdi-filter-variant"></i>
|
<i class="mdi mdi-filter-variant"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user