Skip to content

Commit b4bf9ef

Browse files
authored
Merge pull request #2320 from adumesny/master
simplified gridstack-extra.scss
2 parents be4a942 + 3468d81 commit b4bf9ef

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ you can also use the SCSS [src/gridstack-extra.scss](https://github.com/gridstac
255255
Sample gulp command for 30 columns:
256256
```js
257257
gulp.src('node_modules/gridstack/dist/src/gridstack-extra.scss')
258-
.pipe(replace('$gridstack-columns-start: 2 !default;','$gridstack-columns-start: 30;'))
259-
.pipe(replace('$gridstack-columns: 11 !default;','$gridstack-columns: 30;'))
258+
.pipe(replace('$start: 2 !default;','$start: 30;'))
259+
.pipe(replace('$end: 11 !default;','$end: 30;'))
260260
.pipe(sass({outputStyle: 'compressed'}))
261261
.pipe(rename({extname: '.min.css'}))
262262
.pipe(gulp.dest('dist/css'))

src/gridstack-extra.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* default to generate [2-11] columns as 1 (oneColumnMode) and 12 (default) are in the main css
33
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
44
*/
5-
$gridstack-columns-start: 2 !default;
6-
$gridstack-columns: 11 !default;
5+
$start: 2 !default;
6+
$end: 11 !default;
77

88
@function fixed($float) {
99
@return calc(round($float * 1000) / 1000); // total 4-5 digits being %
@@ -20,6 +20,6 @@ $gridstack-columns: 11 !default;
2020
}
2121
}
2222

23-
@for $j from $gridstack-columns-start through $gridstack-columns {
23+
@for $j from $start through $end {
2424
@include grid-stack-items($j)
2525
}

0 commit comments

Comments
 (0)