Skip to content

Commit

Permalink
css tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
adumesny committed Apr 9, 2023
1 parent e7bac7a commit 03b898f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = function(grunt) {
grunt.initConfig({
sass: {
options: {
// precision: 3, // doesn't work
implementation: sass,
sourceMap: false
},
Expand Down
6 changes: 2 additions & 4 deletions src/gridstack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,14 @@ $animation_speed: .3s !default;
}
}

@for $i from 0 through $gridstack-columns {
&[gs-w='#{$i}'] { width: math.div(100%, $gridstack-columns) * $i; }
@for $i from 0 through ($gridstack-columns - 1) {
&[gs-x='#{$i}'] { left: math.div(100%, $gridstack-columns) * $i; }
&[gs-w='#{$i + 1}'] { width: math.div(100%, $gridstack-columns) * ($i + 1); }
}
}

&.grid-stack-1>.grid-stack-item {
min-width: 100%;
&[gs-w='1'] { width: 100%; }
&[gs-x='0'] { left: 0; }
}

&.grid-stack-animate,
Expand Down

0 comments on commit 03b898f

Please sign in to comment.