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

#6797: Improve controls & custom link styling

This commit is contained in:
Matt
2021-08-03 10:03:22 -07:00
parent 53e21ceed4
commit e8ba4b0564
28 changed files with 313 additions and 271 deletions

View File

@@ -261,6 +261,33 @@ div.title-container {
}
}
// Object list control buttons (Add/Clone/Import/Export)
.controls {
margin-bottom: map.get($spacers, 2);
// Each group of buttons.
.control-group {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
> * {
// Pad each control button.
margin: map.get($spacers, 1);
&:first-child {
// Don't pad the left side of the first control button.
margin-left: 0;
}
&:last-child {
// Don't pad the right side of the last control button.
margin-right: 0;
}
}
}
}
// Global Search
nav.search {
// Don't overtake dropdowns

View File

@@ -21,6 +21,14 @@ $theme-colors: (
'danger': $danger,
'light': $light,
'dark': $dark,
'red': $red-300,
'yellow': $yellow-300,
'green': $green-300,
'blue': $blue-300,
'cyan': $cyan-300,
'indigo': $indigo-300,
'purple': $purple-300,
'pink': $pink-300,
);
$theme-colors: map-merge($theme-colors, $theme-color-addons);

View File

@@ -4,6 +4,20 @@
$input-border-color: $gray-200;
$theme-colors: map-merge(
$theme-colors,
(
'red': $red-500,
'yellow': $yellow-500,
'green': $green-500,
'blue': $blue-500,
'cyan': $cyan-500,
'indigo': $indigo-500,
'purple': $purple-500,
'pink': $pink-500,
)
);
$theme-colors: map-merge($theme-colors, $theme-color-addons);
$light: $gray-200;