Skip to content

Commit

Permalink
Patch abs()
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 3, 2024
1 parent bd6b31c commit c276b54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import './variables';
@use 'sass:math';

@import './variables';

@import '../../../node_modules/bootstrap/scss/functions';
@import '../../../node_modules/admin-lte/build/scss/bootstrap-variables';
Expand Down
3 changes: 3 additions & 0 deletions gui/patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

# Patch wrong .scss files: https://github.com/ColorlibHQ/AdminLTE/issues/4255
sed -i 's@\&\.bg-#{$name} {@#{if\(\&, "\&.bg-#{\$name}",".bg-#{\$name}"\)} {@' node_modules/admin-lte/build/scss/mixins/*

# Bootstrap old abs() function fix
sed -i 's@ $dividend: abs($dividend);@ $dividend: math.abs($dividend);@' node_modules/bootstrap/scss/vendor/_rfs.scss

0 comments on commit c276b54

Please sign in to comment.