You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ See example: [2 grids demo](http://gridstack.github.io/gridstack.js/demo/two.htm
219
219
220
220
If you need > 12 columns or want to generate the CSS manually you will need to generate CSS rules for `.grid-stack-item[gs-w="X"]` and `.grid-stack-item[gs-x="X"]`.
221
221
222
-
For instance for 4-column grid you need to write CSS to be:
222
+
For instance for 4-column grid you need CSS to be:
223
223
224
224
```css
225
225
.gs-4>.grid-stack-item[gs-x="1"] { left: 25% }
@@ -232,29 +232,30 @@ For instance for 4-column grid you need to write CSS to be:
232
232
.gs-4>.grid-stack-item[gs-w="4"] { width: 100% }
233
233
```
234
234
235
-
Better yet, here is a SASS code snippet, you can use sites like [sassmeister.com](https://www.sassmeister.com/) to generate the CSS for you instead:
235
+
Better yet, here is a SCSS code snippet, you can use sites like [sassmeister.com](https://www.sassmeister.com/) to generate the CSS for you instead:
236
236
237
-
```sass
237
+
```scss
238
238
$columns: 20;
239
239
@functionfixed($float) {
240
-
@return calc(round($float * 100) / 100); // total 4 digits being %
240
+
@returnround($float*100) /100; // total 4 digits being %
you can also use the SASS[src/gridstack-extra.scss](https://github.com/gridstack/gridstack.js/tree/master/src/gridstack-extra.scss) included in NPM package and modify to add more columns.
253
+
you can also use the SCSS[src/gridstack-extra.scss](https://github.com/gridstack/gridstack.js/tree/master/src/gridstack-extra.scss) included in NPM package and modify to add more columns.
0 commit comments