Skip to content

Commit

Permalink
Merge pull request #2259 from adumesny/master
Browse files Browse the repository at this point in the history
css tweaks
  • Loading branch information
adumesny authored Apr 9, 2023
2 parents e19d705 + 03b898f commit 739cd41
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 739cd41

Please sign in to comment.