lumina-sass 2.3.2 → 2.4.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "lumina-sass",
3
- "version": "2.3.2",
3
+ "version": "2.4.2",
4
4
  "description": "Lumina Sass design tokens, mixins and public sub-modules (flexbox, color, mix).",
5
5
  "main": "src/_index.sass",
6
6
  "sass": "src/_index.sass",
@@ -54,46 +54,3 @@
54
54
  @content
55
55
  @else
56
56
  @error "Invalid orientation `#{$orientation}` – use portrait or landscape."
57
-
58
- @mixin figure($object-fit: cover, $size: null, $style: italic, $width: 16, $length: 9, $position: null, $percentage: null)
59
- &
60
- video.portrait-media
61
- @if $width != null and $length != null
62
- @include aspect-ratio($width, $length)
63
-
64
- max-inline-size: 20rem !important
65
-
66
- // Landscape video – default ratio
67
- video.landscape-media
68
- @if $width != null and $length != null
69
- @include aspect-ratio($width, $length)
70
- object-position: center 35%
71
-
72
- // Image and picture handling
73
- picture,
74
- img
75
- inline-size: 100%
76
- object-fit: $object-fit
77
-
78
- @if $width != null and $length != null
79
- @include aspect-ratio($width, $length)
80
-
81
- @if $position != null or $percentage != null
82
- object-position: $position $percentage
83
-
84
- picture
85
- img
86
- inline-size: 100%
87
- object-fit: $object-fit
88
-
89
- @if $width != null and $length != null
90
- @include aspect-ratio($width, $length)
91
-
92
- @if $position != null or $percentage != null
93
- object-position: $position $percentage
94
-
95
- figcaption
96
- @include typo.font($size: $size, $style: $style)
97
-
98
- @mixin aspect-ratio($width: 16, $length: 9)
99
- aspect-ratio: #{$width} / #{$length}
@@ -139,41 +139,15 @@
139
139
  @include true.assert-equal(typo.font-family-of('mono'), monospace)
140
140
  @include true.assert-equal(typo.font-family-of('serif'), serif)
141
141
 
142
- @include true.test-module('Layout Helpers')
143
- @include true.test('Generates aspect-ratio')
142
+ @include true.test-module('Styling (Native)')
143
+ @include true.test('Applies typography font styling to figcaption')
144
144
  @include true.assert
145
145
  @include true.output
146
- @include media.aspect-ratio(16, 9)
146
+ figure figcaption
147
+ @include typo.font($style: italic)
147
148
 
148
149
  @include true.expect
149
- aspect-ratio: 16 / 9
150
-
151
- @include true.test('Generates figure structure')
152
- @include true.assert
153
- @include true.output
154
- figure
155
- @include media.figure()
156
-
157
- @include true.expect
158
- figure video.portrait-media
159
- aspect-ratio: 16 / 9
160
- max-inline-size: 20rem !important
161
-
162
- figure video.landscape-media
163
- aspect-ratio: 16 / 9
164
- object-position: center 35%
165
-
166
- figure picture, figure img
167
- inline-size: 100%
168
- object-fit: cover
169
- aspect-ratio: 16 / 9
170
-
171
- figure picture img
172
- inline-size: 100%
173
- object-fit: cover
174
- aspect-ratio: 16 / 9
175
-
176
- figure picture figcaption
150
+ figure figcaption
177
151
  font-style: italic
178
152
 
179
153
  @include true.report