File tree 2 files changed +8
-6
lines changed
netbox/project-static/styles
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
// Netbox-specific Styles and Overrides.
2
2
3
3
@use ' sass:map' ;
4
+ @use ' sass:math' ;
4
5
@import ' ./sidenav' ;
5
6
@import ' ./overrides' ;
6
7
@import ' ./utilities' ;
@@ -746,7 +747,7 @@ label.required {
746
747
div .bulk-buttons {
747
748
display : flex ;
748
749
justify-content : space-between ;
749
- margin : $spacer / 2 0 ;
750
+ margin : math . div ( $spacer , 2 ) 0 ;
750
751
751
752
// Each group of buttons needs to be contained separately for alignment purposes. This way, you
752
753
// can put some buttons in a group that aligns left, and other buttons in a group that aligns
@@ -777,7 +778,7 @@ div.bulk-buttons {
777
778
778
779
// However, the rest of the buttons should have spacing applied in all directions.
779
780
> * {
780
- margin : $spacer / 4 ;
781
+ margin : math . div ( $spacer , 4 ) ;
781
782
}
782
783
}
783
784
}
Original file line number Diff line number Diff line change 1
1
@use ' sass:map' ;
2
+ @use ' sass:math' ;
2
3
3
4
@mixin parent-link {
4
5
.navbar-nav .nav-item .nav-link [data-bs-toggle ] {
164
165
}
165
166
166
167
.nav-group-header {
167
- padding : $sidenav-link-spacing-y / 2 $sidenav-link-spacing-x ;
168
+ padding : math . div ( $sidenav-link-spacing-y , 2 ) $sidenav-link-spacing-x ;
168
169
margin-top : 0.5rem ;
169
170
margin-bottom : 0 ;
170
171
}
184
185
185
186
@include child-link () {
186
187
width : 100% ;
187
- padding-top : $sidenav-link-spacing-y / 2 ;
188
+ padding-top : math . div ( $sidenav-link-spacing-y , 2 ) ;
188
189
padding-right : map .get ($spacers , 1 );
189
- padding-bottom : $sidenav-link-spacing-y / 2 ;
190
+ padding-bottom : math . div ( $sidenav-link-spacing-y , 2 ) ;
190
191
padding-left : $sidenav-link-spacing-x ;
191
192
margin-top : 0 ;
192
193
margin-bottom : 0 ;
203
204
@include parent-link () {
204
205
width : unset ;
205
206
height : 100% ;
206
- padding-left : $sidenav-link-spacing-x / 2 ;
207
+ padding-left : math . div ( $sidenav-link-spacing-x , 2 ) ;
207
208
font-weight : $font-weight-bold ;
208
209
color : var (--nbx-sidenav-parent-color );
209
210
You can’t perform that action at this time.
0 commit comments