@brady_h/styles 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,11 +1,21 @@
1
1
  {
2
2
  "name": "@brady_h/styles",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Shared SCSS styling foundation for projects",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "src"
8
8
  ],
9
+ "exports": {
10
+ ".": {
11
+ "sass": "./src/_index.scss",
12
+ "default": "./src/_index.scss"
13
+ },
14
+ "./classes": {
15
+ "sass": "./src/_classes.scss",
16
+ "default": "./src/_classes.scss"
17
+ }
18
+ },
9
19
  "sass": "./src/_index.scss",
10
20
  "style": "./src/_index.scss",
11
21
  "scripts": {
@@ -2,8 +2,8 @@
2
2
  @use "sass:math";
3
3
  @use "sass:map";
4
4
  @use "sass:meta";
5
- @use "./variables" as vars;
6
- @use "./breakpoints" as bp;
5
+ @use "./_variables" as vars;
6
+ @use "./_breakpoints" as bp;
7
7
 
8
8
  @function map-value($collection, $key, $fallback: null) {
9
9
  @if not map.has-key($collection, $key) {
package/src/_index.scss CHANGED
@@ -1,4 +1,4 @@
1
- @forward "./variables";
2
- @forward "./breakpoints";
3
- @forward "./functions";
4
- @forward "./mixins";
1
+ @forward "variables";
2
+ @forward "breakpoints";
3
+ @forward "functions";
4
+ @forward "mixins";
package/src/_mixins.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  @use "sass:map";
2
- @use "./breakpoints" as bp;
2
+ @use "./_breakpoints" as bp;
3
3
 
4
4
  @mixin respond-down($breakpoint: md) {
5
5
  @media (max-width: bp.breakpoint($breakpoint)) {
@@ -1,3 +1,5 @@
1
+ @use "sass:math";
2
+
1
3
  $spacing: (
2
4
  0: 0,
3
5
  1: 4px,
@@ -155,12 +157,12 @@ $content-width: (
155
157
  );
156
158
 
157
159
  $aspect-ratio: (
158
- square: 1 / 1,
159
- portrait: 3 / 4,
160
- landscape: 4 / 3,
161
- widescreen: 16 / 9,
162
- ultrawide: 21 / 9,
163
- golden: 1.618 / 1,
160
+ square: math.div(1, 1),
161
+ portrait: math.div(3, 4),
162
+ landscape: math.div(4, 3),
163
+ widescreen: math.div(16, 9),
164
+ ultrawide: math.div(21, 9),
165
+ golden: math.div(1.618, 1),
164
166
  );
165
167
 
166
168
  $opacity: (
@@ -401,11 +403,3 @@ $vertical-align: (
401
403
  sub: sub,
402
404
  super: super,
403
405
  );
404
-
405
- $object-fit: (
406
- fill: fill,
407
- contain: contain,
408
- cover: cover,
409
- none: none,
410
- scale-down: scale-down,
411
- );