toolkit 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,8 @@
|
|
1
|
+
$nested-context-contexts: 100% !default;
|
2
|
+
$nested-context-position: left !default;
|
3
|
+
|
1
4
|
// simple function to find the context of a nested percentage.
|
2
|
-
@function nested-context($contexts) {
|
5
|
+
@function nested-context($contexts: $nested-context-contexts) {
|
3
6
|
|
4
7
|
// First level deep is always 100%
|
5
8
|
$percentage: 100%;
|
@@ -14,7 +17,7 @@
|
|
14
17
|
}
|
15
18
|
|
16
19
|
// mixin to make things easier
|
17
|
-
@mixin nested-context($contexts, $position:
|
20
|
+
@mixin nested-context($contexts: $nested-context-contexts, $position: $nested-context-position) {
|
18
21
|
width: nested-context($contexts);
|
19
22
|
@if $position == "center" {
|
20
23
|
position: relative;
|