Fix icon & badge spacing inside buttons and tabs

This commit is contained in:
Jeremy Stretch 2024-01-05 15:34:00 -05:00
parent 39c0e68864
commit e30ff425a8
4 changed files with 15 additions and 13 deletions

Binary file not shown.

View File

@ -5,8 +5,8 @@
// Overrides of external libraries
@import 'overrides/slim-select';
@import 'overrides/tabler';
// Transitional styling
// Transitional styling to ease migration of templates from NetBox v3.x
@import 'transitional/cards';
@import 'transitional/icons';
@import 'transitional/tables';

View File

@ -0,0 +1,13 @@
// Buttons
.btn {
// Tabler sets display: flex
display: inline-block;
}
// Tabs
.nav-tabs {
.nav-link {
// Tabler sets display: flex
display: inline-block;
}
}

View File

@ -1,11 +0,0 @@
// Add padding between icon and text
// TODO: Find a more robust solution for this
.mdi {
padding-right: 4px;
}
// Omit padding inside small buttons (no text)
.btn-sm {
.mdi {
padding-right: 0;
}
}