Comparing version 1.0.3 to 2.0.0
@@ -181,3 +181,3 @@ [ | ||
"name": "font", | ||
"code": "\n @return map-fetch($bruce-fonts, $name);\n", | ||
"code": "\n @return mapGetIn($bruce-fonts, $name);\n", | ||
"line": { | ||
@@ -197,3 +197,8 @@ "start": 16, | ||
], | ||
"require": [], | ||
"require": [ | ||
{ | ||
"type": "function", | ||
"name": "mapGetIn" | ||
} | ||
], | ||
"parameter": [ | ||
@@ -203,3 +208,3 @@ { | ||
"name": "name", | ||
"description": "uses `map-fetch()` to return the value of `$name` from `$bruce-fonts`" | ||
"description": "uses `mapGetIn()` to return the value of `$name` from `$bruce-fonts`" | ||
} | ||
@@ -270,4 +275,4 @@ ], | ||
"line": { | ||
"start": 51, | ||
"end": 84 | ||
"start": 50, | ||
"end": 83 | ||
} | ||
@@ -447,2 +452,14 @@ } | ||
} | ||
}, | ||
{ | ||
"description": "\nReturns a color from `$bruce-colors`\n\n", | ||
"context": { | ||
"type": "function", | ||
"name": "font", | ||
"code": "\n @return mapGetIn($bruce-fonts, $name);\n", | ||
"line": { | ||
"start": 16, | ||
"end": 18 | ||
} | ||
} | ||
} | ||
@@ -761,6 +778,6 @@ ] | ||
{ | ||
"description": "\nReturns a media query based on the content of `$bp`.\n", | ||
"description": "\nReturns a media query based on the content of `$breakpoint`.\n", | ||
"commentRange": { | ||
"start": 2, | ||
"end": 24 | ||
"end": 28 | ||
}, | ||
@@ -770,6 +787,6 @@ "context": { | ||
"name": "BruceBreakpoint", | ||
"code": "\n // Standard\n $item: map-get($bruce-breakpoints, $bp);\n\n @if $item {\n $bp: $item;\n }\n\n @if $bruce-ie == true {\n @content;\n }\n\n @else {\n @if type-of($bp) == 'number'{\n @media (min-width: #{$bp}) {\n @content;\n }\n }\n\n @if type-of($bp) == 'list'{\n $first: nth($bp, 1);\n $bp: nth($bp, 2);\n\n $item: map-get($bruce-breakpoints, $bp);\n\n @if $item {\n $bp: $item;\n }\n\n\n @if type-of($first) == 'string'{\n @media (#{$first}: #{$bp}) {\n @content;\n }\n }\n @elseif type-of($first) == 'number'{\n @media (min-width: #{$first}) and (max-width: #{$bp}) {\n @content;\n }\n }\n @else{\n @warn 'bruce-breakpoint: wrong syntax';\n }\n }\n }\n", | ||
"code": "\n @if map-has-key($bruce-breakpoints, $breakpoint) {\n $breakpoint: map-get($bruce-breakpoints, $breakpoint);\n }\n\n @if type-of($breakpoint) == 'number'{\n @media (min-width: #{$breakpoint}) {\n @content;\n }\n }\n\n @if type-of($breakpoint) == 'list' {\n $first: nth($breakpoint, 1);\n $breakpoint: nth($breakpoint, 2);\n\n @if map-has-key($bruce-breakpoints, $breakpoint) {\n $breakpoint: map-get($bruce-breakpoints, $breakpoint);\n }\n\n\n @if type-of($first) == 'string' {\n @media (#{$first}: #{$breakpoint}) {\n @content;\n }\n }\n @elseif type-of($first) == 'number' {\n @media (min-width: #{$first}) and (max-width: #{$breakpoint}) {\n @content;\n }\n }\n @else {\n @warn 'bruce-breakpoint: wrong syntax';\n }\n }\n", | ||
"line": { | ||
"start": 26, | ||
"end": 72 | ||
"start": 30, | ||
"end": 65 | ||
} | ||
@@ -790,3 +807,3 @@ }, | ||
"type": "scss", | ||
"code": ".class {\n font-size: 1rem;\n\n @include bruce-breakpoint('small') {\n font-size: 2rem;\n }\n\n @include bruce-breakpoint(40em) {\n font-size: 3rem;\n }\n\n @include bruce-breakpoint(max-width: 40em) {\n font-size: 4rem;\n }\n\n}" | ||
"code": ".class {\n font-size: 1rem;\n\n @include BruceBreakpoint('small') {\n font-size: 2rem;\n }\n\n @include BruceBreakpoint(40em) {\n font-size: 3rem;\n }\n\n @include BruceBreakpoint(max-width 40em) {\n font-size: 4rem;\n }\n\n @include BruceBreakpoint(20em 40em) {\n font-size: 4rem;\n }\n\n}" | ||
} | ||
@@ -806,6 +823,6 @@ ], | ||
"name": "BruceGrid", | ||
"code": "\n .#{$name} {\n box-sizing: border-box;\n display: table;\n table-layout: fixed;\n width: 100%;\n\n &-auto {\n table-layout: auto;\n }\n\n &_column {\n box-sizing: border-box;\n display: block;\n vertical-align: top;\n\n @include BruceBreakpoint('small') {\n @include BruceGridWidths($number);\n }\n\n &-always {\n @include BruceGridWidths($number);\n }\n\n &-shrink {\n white-space: nowrap;\n width: 1px;\n }\n }\n\n @content;\n }\n", | ||
"code": "\n box-sizing: border-box;\n display: table;\n table-layout: fixed;\n width: 100%;\n\n &-auto {\n table-layout: auto;\n }\n\n &_column {\n box-sizing: border-box;\n display: block;\n vertical-align: top;\n\n @include BruceBreakpoint('small') {\n @include BruceGridWidths($number, &);\n }\n\n &-always {\n @include BruceGridWidths($number, &);\n }\n\n &-shrink {\n white-space: nowrap;\n width: 1px;\n }\n }\n\n @content;\n", | ||
"line": { | ||
"start": 71, | ||
"end": 103 | ||
"start": 70, | ||
"end": 100 | ||
} | ||
@@ -844,3 +861,3 @@ } | ||
"start": 2, | ||
"end": 49 | ||
"end": 48 | ||
}, | ||
@@ -852,4 +869,4 @@ "context": { | ||
"line": { | ||
"start": 51, | ||
"end": 84 | ||
"start": 50, | ||
"end": 83 | ||
} | ||
@@ -989,3 +1006,3 @@ }, | ||
"start": 64, | ||
"end": 69 | ||
"end": 68 | ||
}, | ||
@@ -995,6 +1012,6 @@ "context": { | ||
"name": "BruceGrid", | ||
"code": "\n .#{$name} {\n box-sizing: border-box;\n display: table;\n table-layout: fixed;\n width: 100%;\n\n &-auto {\n table-layout: auto;\n }\n\n &_column {\n box-sizing: border-box;\n display: block;\n vertical-align: top;\n\n @include BruceBreakpoint('small') {\n @include BruceGridWidths($number);\n }\n\n &-always {\n @include BruceGridWidths($number);\n }\n\n &-shrink {\n white-space: nowrap;\n width: 1px;\n }\n }\n\n @content;\n }\n", | ||
"code": "\n box-sizing: border-box;\n display: table;\n table-layout: fixed;\n width: 100%;\n\n &-auto {\n table-layout: auto;\n }\n\n &_column {\n box-sizing: border-box;\n display: block;\n vertical-align: top;\n\n @include BruceBreakpoint('small') {\n @include BruceGridWidths($number, &);\n }\n\n &-always {\n @include BruceGridWidths($number, &);\n }\n\n &-shrink {\n white-space: nowrap;\n width: 1px;\n }\n }\n\n @content;\n", | ||
"line": { | ||
"start": 71, | ||
"end": 103 | ||
"start": 70, | ||
"end": 100 | ||
} | ||
@@ -1007,6 +1024,2 @@ }, | ||
{ | ||
"type": "string", | ||
"name": "name" | ||
}, | ||
{ | ||
"type": "number", | ||
@@ -1013,0 +1026,0 @@ "name": "number" |
{ | ||
"name": "bruce", | ||
"title": "Bruce", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "SCSS Helpers", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3880396
2998