coer-elements 2.0.29 → 2.0.31

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/styles/index.scss CHANGED
@@ -11,6 +11,7 @@
11
11
  @use "./layout-flex.scss" as _layout-flex;
12
12
  @use "./layout-grid.scss" as _layout-grid;
13
13
  @use "./margins.scss" as _margins;
14
+ @use "./orders.scss" as _orders;
14
15
  @use "./overflow.scss" as _overflow;
15
16
  @use "./paddings.scss" as _padding;
16
17
  @use "./paragraphs" as _paragraphs;
@@ -45,6 +46,7 @@
45
46
  @include _layout-flex.mixin($breakpoint);
46
47
  @include _layout-grid.mixin($breakpoint);
47
48
  @include _margins.mixin($breakpoint);
49
+ @include _orders.mixin($breakpoint);
48
50
  @include _overflow.mixin($breakpoint);
49
51
  @include _padding.mixin($breakpoint);
50
52
  @include _paragraphs.mixin($breakpoint);
@@ -65,6 +67,7 @@
65
67
  @include _layout-flex.mixin($breakpoint);
66
68
  @include _layout-grid.mixin($breakpoint);
67
69
  @include _margins.mixin($breakpoint);
70
+ @include _orders.mixin($breakpoint);
68
71
  @include _overflow.mixin($breakpoint);
69
72
  @include _padding.mixin($breakpoint);
70
73
  @include _paragraphs.mixin($breakpoint);
@@ -1,7 +1,7 @@
1
1
  @mixin mixin($breakpoint) {
2
2
  .#{$breakpoint}flex-wrap {
3
3
  display: flex !important;
4
- flex-wrap: wrap !important;
4
+ flex-wrap: wrap !important;
5
5
  gap: 10px;
6
6
  }
7
7
 
@@ -58,7 +58,11 @@
58
58
  }
59
59
  }
60
60
 
61
- // AUTO
61
+ // AUTO
62
+ .#{$breakpoint}margin-auto {
63
+ margin: auto !important;
64
+ }
65
+
62
66
  .#{$breakpoint}margin-top-auto {
63
67
  margin-top: auto !important;
64
68
  }
@@ -0,0 +1,7 @@
1
+ @mixin mixin($breakpoint) {
2
+ @for $i from 1 through 25 {
3
+ .#{$breakpoint}order-#{$i} {
4
+ order: $i !important;
5
+ }
6
+ }
7
+ }
@@ -8,7 +8,28 @@ h1, h2, h3, h4, h5, h6, p, pre, hr, figure, fieldset {
8
8
  }
9
9
 
10
10
  @mixin mixin($breakpoint) {
11
- .#{$breakpoint}white-space-nowrap {
12
- white-space: nowrap !important;
11
+
12
+ @each $key, $value in (
13
+ 'normal' : normal,
14
+ 'nowrap' : nowrap,
15
+ 'pre' : pre,
16
+ 'pre-line' : pre-line,
17
+ 'pre-wrap' : pre-wrap
18
+ ) {
19
+ .#{$breakpoint}white-space-#{$key} {
20
+ white-space: $value !important;
21
+ }
22
+ }
23
+
24
+
25
+ @each $key, $value in (
26
+ 'left' : left,
27
+ 'center' : center,
28
+ 'right' : right,
29
+ 'justify' : justify
30
+ ) {
31
+ .#{$breakpoint}text-align-#{$key} {
32
+ text-align: $value;
33
+ }
13
34
  }
14
35
  }