Skip to content

Commit 364e3a2

Browse files
authored
Simplified SASS code
1 parent ee5b601 commit 364e3a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ Here is a SASS code snippet which can make life easier (Thanks to @ascendantofra
226226
@for $i from 1 through $gridstack-columns {
227227
&[data-gs-width='#{$i}'] { width: (100% / $gridstack-columns) * $i; }
228228
&[data-gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; }
229-
&.grid-stack > .grid-stack-item[data-gs-min-width='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
230-
&.grid-stack > .grid-stack-item[data-gs-max-width='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
229+
&[data-gs-min-width='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
230+
&[data-gs-max-width='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
231231
}
232232
}
233233
```

0 commit comments

Comments
 (0)