Skip to content

Commit 739cd41

Browse files
authored
Merge pull request #2259 from adumesny/master
css tweaks
2 parents e19d705 + 03b898f commit 739cd41

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Gruntfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function(grunt) {
1414
grunt.initConfig({
1515
sass: {
1616
options: {
17+
// precision: 3, // doesn't work
1718
implementation: sass,
1819
sourceMap: false
1920
},

src/gridstack.scss

+2-4
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,14 @@ $animation_speed: .3s !default;
8888
}
8989
}
9090

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

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

103101
&.grid-stack-animate,

0 commit comments

Comments
 (0)