-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1133 from adumesny/develop
fixed oneColumnMode css
- Loading branch information
Showing
6 changed files
with
39 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
/*! | ||
* gridstack extra CSS for [1-11] columns (non default) | ||
* gridstack 0.6.2-dev extra CSS for [2-11] columns (non default) | ||
* https://gridstackjs.com/ | ||
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov | ||
* gridstack.js may be freely distributed under the MIT license. | ||
*/ | ||
|
||
$gridstack-columns: 12 !default; | ||
$gridstack-columns: 11 !default; | ||
|
||
@mixin grid-stack-items($gridstack-columns) { | ||
.grid-stack.grid-stack-#{$gridstack-columns} { | ||
@mixin grid-stack-items($columns) { | ||
.grid-stack.grid-stack-#{$columns} { | ||
|
||
> .grid-stack-item { | ||
min-width: 100% / $gridstack-columns; | ||
min-width: 100% / $columns; | ||
|
||
@for $i from 1 through $gridstack-columns { | ||
&[data-gs-width='#{$i}'] { width: (100% / $gridstack-columns) * $i; } | ||
&[data-gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; } | ||
&[data-gs-min-width='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; } | ||
&[data-gs-max-width='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; } | ||
@for $i from 1 through $columns { | ||
&[data-gs-width='#{$i}'] { width: (100% / $columns) * $i; } | ||
&[data-gs-x='#{$i}'] { left: (100% / $columns) * $i; } | ||
&[data-gs-min-width='#{$i}'] { min-width: (100% / $columns) * $i; } | ||
&[data-gs-max-width='#{$i}'] { max-width: (100% / $columns) * $i; } | ||
} | ||
} | ||
} | ||
} | ||
|
||
@for $j from 1 through $gridstack-columns { | ||
@for $j from 2 through $gridstack-columns { | ||
@include grid-stack-items($j) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters