@inc2734/unitone-css 0.94.3 → 0.95.0

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.
Files changed (163) hide show
  1. package/dist/app.css +1 -1
  2. package/dist/app.js +1 -1
  3. package/dist/behaviors/dividers.js +1 -0
  4. package/dist/behaviors/index.js +1 -0
  5. package/dist/behaviors/stairs.js +1 -0
  6. package/dist/compatibility/fluid-typography.js +1 -0
  7. package/dist/compatibility/index.js +1 -0
  8. package/dist/layout-primitives/both-sides/react.js +1 -0
  9. package/dist/layout-primitives/center/react.js +1 -0
  10. package/dist/layout-primitives/cluster/react.js +1 -0
  11. package/dist/layout-primitives/container/react.js +1 -0
  12. package/dist/layout-primitives/cover/react.js +1 -0
  13. package/dist/layout-primitives/decorator/react.js +1 -0
  14. package/dist/layout-primitives/float/react.js +1 -0
  15. package/dist/layout-primitives/frame/react.js +1 -0
  16. package/dist/layout-primitives/gutters/react.js +1 -0
  17. package/dist/layout-primitives/index.js +1 -0
  18. package/dist/layout-primitives/layers/react.js +1 -0
  19. package/dist/layout-primitives/marquee/behavior.js +1 -0
  20. package/dist/layout-primitives/marquee/react.js +1 -0
  21. package/dist/layout-primitives/masonry/react.js +1 -0
  22. package/dist/layout-primitives/reel/react.js +1 -0
  23. package/dist/layout-primitives/responsive-grid/react.js +1 -0
  24. package/dist/layout-primitives/stack/react.js +1 -0
  25. package/dist/layout-primitives/switcher/react.js +1 -0
  26. package/dist/layout-primitives/text/react.js +1 -0
  27. package/dist/layout-primitives/texture/react.js +1 -0
  28. package/dist/layout-primitives/vertical-writing/behavior.js +1 -0
  29. package/dist/layout-primitives/vertical-writing/react.js +1 -0
  30. package/dist/layout-primitives/with-sidebar/react.js +1 -0
  31. package/dist/library.js +1 -1
  32. package/package.json +24 -19
  33. package/src/app.js +3 -110
  34. package/src/app.scss +4 -4
  35. package/src/behaviors/_index.scss +43 -0
  36. package/src/{helper → behaviors}/_typography.scss +1 -1
  37. package/src/behaviors/dividers.js +8 -0
  38. package/src/behaviors/index.js +2 -0
  39. package/src/behaviors/stairs.js +8 -0
  40. package/src/compatibility/fluid-typography.js +18 -0
  41. package/src/compatibility/index.js +1 -0
  42. package/src/foundation/_foundation-core.scss +107 -0
  43. package/src/foundation/_foundation.scss +2 -106
  44. package/src/foundation/_index.scss +1 -0
  45. package/src/helper/_helper.scss +2 -42
  46. package/src/layout-primitives/_index.scss +1 -0
  47. package/src/layout-primitives/_layout-primitives-core.scss +41 -0
  48. package/src/layout-primitives/_layout-primitives.scss +2 -42
  49. package/src/layout-primitives/both-sides/_both-sides-core.scss +31 -0
  50. package/src/layout-primitives/both-sides/_both-sides.scss +2 -30
  51. package/src/layout-primitives/both-sides/_index.scss +1 -0
  52. package/src/layout-primitives/both-sides/react.jsx +1 -0
  53. package/src/layout-primitives/center/_center-core.scss +22 -0
  54. package/src/layout-primitives/center/_center.scss +2 -21
  55. package/src/layout-primitives/center/_index.scss +1 -0
  56. package/src/layout-primitives/center/react.jsx +1 -0
  57. package/src/layout-primitives/cluster/_cluster-core.scss +126 -0
  58. package/src/layout-primitives/cluster/_cluster.scss +2 -125
  59. package/src/layout-primitives/cluster/_index.scss +1 -0
  60. package/src/layout-primitives/cluster/react.jsx +3 -0
  61. package/src/layout-primitives/container/_container-core.scss +18 -0
  62. package/src/layout-primitives/container/_container.scss +2 -17
  63. package/src/layout-primitives/container/_index.scss +1 -0
  64. package/src/layout-primitives/container/react.jsx +1 -0
  65. package/src/layout-primitives/cover/_cover-core.scss +80 -0
  66. package/src/layout-primitives/cover/_cover.scss +2 -79
  67. package/src/layout-primitives/cover/_index.scss +1 -0
  68. package/src/layout-primitives/cover/react.jsx +1 -0
  69. package/src/layout-primitives/decorator/_decorator-core.scss +104 -0
  70. package/src/layout-primitives/decorator/_decorator.scss +2 -103
  71. package/src/layout-primitives/decorator/_index.scss +1 -0
  72. package/src/layout-primitives/decorator/react.jsx +1 -0
  73. package/src/layout-primitives/float/_float-core.scss +29 -0
  74. package/src/layout-primitives/float/_float.scss +2 -28
  75. package/src/layout-primitives/float/_index.scss +1 -0
  76. package/src/layout-primitives/float/react.jsx +1 -0
  77. package/src/layout-primitives/frame/_frame-core.scss +36 -0
  78. package/src/layout-primitives/frame/_frame.scss +2 -35
  79. package/src/layout-primitives/frame/_index.scss +1 -0
  80. package/src/layout-primitives/frame/react.jsx +1 -0
  81. package/src/layout-primitives/gutters/_gutters-core.scss +12 -0
  82. package/src/layout-primitives/gutters/_gutters.scss +2 -11
  83. package/src/layout-primitives/gutters/_index.scss +1 -0
  84. package/src/layout-primitives/gutters/react.jsx +1 -0
  85. package/src/layout-primitives/index.js +2 -20
  86. package/src/layout-primitives/layers/_index.scss +1 -0
  87. package/src/layout-primitives/layers/_layers-core.scss +139 -0
  88. package/src/layout-primitives/layers/_layers.scss +2 -138
  89. package/src/layout-primitives/layers/react.jsx +1 -0
  90. package/src/layout-primitives/marquee/_index.scss +1 -0
  91. package/src/layout-primitives/marquee/_marquee-core.scss +73 -0
  92. package/src/layout-primitives/marquee/_marquee.scss +2 -72
  93. package/src/layout-primitives/marquee/behavior.js +8 -0
  94. package/src/layout-primitives/marquee/react.jsx +3 -0
  95. package/src/layout-primitives/masonry/_index.scss +1 -0
  96. package/src/layout-primitives/masonry/_masonry-core.scss +26 -0
  97. package/src/layout-primitives/masonry/_masonry.scss +2 -25
  98. package/src/layout-primitives/masonry/react.jsx +1 -0
  99. package/src/layout-primitives/reel/_index.scss +1 -0
  100. package/src/layout-primitives/reel/_reel-core.scss +55 -0
  101. package/src/layout-primitives/reel/_reel.scss +2 -54
  102. package/src/layout-primitives/reel/react.jsx +1 -0
  103. package/src/layout-primitives/responsive-grid/_index.scss +1 -0
  104. package/src/layout-primitives/responsive-grid/_responsive-grid-core.scss +249 -0
  105. package/src/layout-primitives/responsive-grid/_responsive-grid.scss +2 -248
  106. package/src/layout-primitives/responsive-grid/react.jsx +4 -0
  107. package/src/layout-primitives/stack/_index.scss +1 -0
  108. package/src/layout-primitives/stack/_stack-core.scss +201 -0
  109. package/src/layout-primitives/stack/_stack.scss +2 -200
  110. package/src/layout-primitives/stack/react.jsx +3 -0
  111. package/src/layout-primitives/switcher/_index.scss +1 -0
  112. package/src/layout-primitives/switcher/_switcher-core.scss +70 -0
  113. package/src/layout-primitives/switcher/_switcher.scss +2 -69
  114. package/src/layout-primitives/switcher/react.jsx +3 -0
  115. package/src/layout-primitives/text/_index.scss +1 -0
  116. package/src/layout-primitives/text/_text-core.scss +169 -0
  117. package/src/layout-primitives/text/_text.scss +2 -168
  118. package/src/layout-primitives/text/react.jsx +1 -0
  119. package/src/layout-primitives/texture/_index.scss +1 -0
  120. package/src/layout-primitives/texture/_texture-core.scss +235 -0
  121. package/src/layout-primitives/texture/_texture.scss +2 -234
  122. package/src/layout-primitives/texture/react.jsx +1 -0
  123. package/src/layout-primitives/vertical-writing/_index.scss +1 -0
  124. package/src/layout-primitives/vertical-writing/_vertical-writing-core.scss +118 -0
  125. package/src/layout-primitives/vertical-writing/_vertical-writing.scss +2 -117
  126. package/src/layout-primitives/vertical-writing/behavior.js +8 -0
  127. package/src/layout-primitives/vertical-writing/react.jsx +3 -0
  128. package/src/layout-primitives/with-sidebar/_index.scss +1 -0
  129. package/src/layout-primitives/with-sidebar/_with-sidebar-core.scss +337 -0
  130. package/src/layout-primitives/with-sidebar/_with-sidebar.scss +2 -336
  131. package/src/layout-primitives/with-sidebar/react.jsx +3 -0
  132. package/src/library.js +653 -219
  133. package/src/register-layout-initializer.js +132 -0
  134. package/src/settings/_html.scss +1 -1
  135. package/src/settings/_index.scss +1 -0
  136. package/src/settings/_root.scss +1 -1
  137. package/src/settings/_settings-core.scss +3 -0
  138. package/src/settings/_settings.scss +3 -3
  139. package/src/variables/_index.scss +1 -0
  140. package/src/variables/_variables-core.scss +78 -0
  141. package/src/variables/_variables.scss +2 -77
  142. package/dist/index.js +0 -1
  143. package/src/index.js +0 -1
  144. /package/src/{helper → behaviors}/_align-content.scss +0 -0
  145. /package/src/{helper → behaviors}/_align-items.scss +0 -0
  146. /package/src/{helper → behaviors}/_align-self.scss +0 -0
  147. /package/src/{helper → behaviors}/_align.scss +0 -0
  148. /package/src/{helper → behaviors}/_auto-phrase.scss +0 -0
  149. /package/src/{helper → behaviors}/_auto-repeat.scss +0 -0
  150. /package/src/{helper → behaviors}/_background-clip.scss +0 -0
  151. /package/src/{helper → behaviors}/_gap.scss +0 -0
  152. /package/src/{helper → behaviors}/_gutters.scss +0 -0
  153. /package/src/{helper → behaviors}/_justify-content.scss +0 -0
  154. /package/src/{helper → behaviors}/_justify-items.scss +0 -0
  155. /package/src/{helper → behaviors}/_justify-self.scss +0 -0
  156. /package/src/{helper → behaviors}/_link-decoration.scss +0 -0
  157. /package/src/{helper → behaviors}/_mix-blend-mode.scss +0 -0
  158. /package/src/{helper → behaviors}/_negative-gap.scss +0 -0
  159. /package/src/{helper → behaviors}/_overflow.scss +0 -0
  160. /package/src/{helper → behaviors}/_padding.scss +0 -0
  161. /package/src/{helper → behaviors}/_position.scss +0 -0
  162. /package/src/{helper → behaviors}/_stairs.scss +0 -0
  163. /package/src/{helper → behaviors}/_text-orientation.scss +0 -0
@@ -1,107 +1,3 @@
1
- @use '../variables/variables' as variables;
1
+ @forward './foundation-core';
2
2
 
3
- :where(:not(a):not(b):not(bdi):not(bdo):not(cite):not(data):not(del):not(dfn):not(em):not(i):not(ins):not(mark):not(q):not(ruby):not(s):not(samp):not(small):not(span):not(strong):not(sub):not(sup):not(time):not(u):not(svg)) {
4
- @include variables.typography();
5
- }
6
-
7
- *,
8
- *::before,
9
- *::after {
10
- box-sizing: border-box;
11
- }
12
-
13
- a {
14
- text-underline-offset: 0.1em;
15
- text-decoration-thickness: 1px;
16
- }
17
-
18
- :where(
19
- address,
20
- article,
21
- aside,
22
- blockquote,
23
- details,
24
- dialog,
25
- dd,
26
- div,
27
- dl,
28
- dt,
29
- fieldset,
30
- figcaption,
31
- figure,
32
- footer,
33
- form,
34
- h1,
35
- h2,
36
- h3,
37
- h4,
38
- h5,
39
- h6,
40
- header,
41
- hgroup,
42
- hr,
43
- li,
44
- main,
45
- nav,
46
- ol,
47
- p,
48
- pre,
49
- section,
50
- table,
51
- ul
52
- ) {
53
- margin: 0;
54
- padding: 0;
55
- }
56
-
57
- :where(li) {
58
- margin-inline-start: 1.5em;
59
- }
60
-
61
- small {
62
- font-size: smaller;
63
- }
64
-
65
- sup {
66
- font-size: smaller;
67
-
68
- @supports (font-variant-position: super) {
69
- font-variant-position: super;
70
- vertical-align: baseline;
71
- font-size: inherit;
72
- }
73
- }
74
-
75
- sub {
76
- font-size: smaller;
77
-
78
- @supports (font-variant-position: sub) {
79
- font-variant-position: sub;
80
- vertical-align: baseline;
81
- font-size: inherit;
82
- }
83
- }
84
-
85
- img,
86
- video {
87
- height: auto;
88
- max-width: 100%;
89
- }
90
-
91
- figure {
92
- max-width: 100%;
93
- }
94
-
95
- figcaption {
96
- --unitone--font-size: -2;
97
-
98
- margin: var(--unitone--s-2) 0 0;
99
- display: block;
100
- width: 0;
101
- min-width: fit-content !important;
102
- text-align: start;
103
- }
104
-
105
- pre {
106
- text-spacing-trim: space-all;
107
- }
3
+ @warn "Deprecated Sass entry '@inc2734/unitone-css/src/foundation/foundation' will be removed in a future release. Use '@inc2734/unitone-css/src/foundation' instead.";
@@ -0,0 +1 @@
1
+ @forward './foundation-core';
@@ -1,43 +1,3 @@
1
- @use 'align-content';
2
- @use 'align-items';
3
- @use 'align-self';
4
- @use 'align';
5
- @use 'auto-repeat';
6
- @use 'auto-phrase';
7
- @use 'background-clip';
8
- @use 'gap';
9
- @use 'gutters';
10
- @use 'justify-content';
11
- @use 'justify-items';
12
- @use 'justify-self';
13
- @use 'link-decoration';
14
- @use 'mix-blend-mode';
15
- @use 'negative-gap';
16
- @use 'overflow';
17
- @use 'padding';
18
- @use 'position';
19
- @use 'stairs';
20
- @use 'text-orientation';
21
- @use 'typography';
1
+ @forward '../behaviors';
22
2
 
23
- @include align-content.align-content();
24
- @include align-items.align-items();
25
- @include align-self.align-self();
26
- @include align.align();
27
- @include auto-repeat.auto-repeat();
28
- @include auto-phrase.auto-phrase();
29
- @include background-clip.background-clip();
30
- @include gap.gap();
31
- @include gutters.gutters();
32
- @include justify-content.justify-content();
33
- @include justify-items.justify-items();
34
- @include justify-self.justify-self();
35
- @include link-decoration.link-decoration();
36
- @include mix-blend-mode.mix-blend-mode();
37
- @include negative-gap.negative-gap();
38
- @include overflow.overflow();
39
- @include padding.padding();
40
- @include stairs.stairs();
41
- @include position.position();
42
- @include text-orientation.text-orientation();
43
- @include typography.typography();
3
+ @warn "Deprecated Sass entry '@inc2734/unitone-css/src/helper/helper' will be removed in a future release. Use '@inc2734/unitone-css/src/behaviors' instead.";
@@ -0,0 +1 @@
1
+ @forward './layout-primitives-core';
@@ -0,0 +1,41 @@
1
+ @use 'both-sides';
2
+ @use 'center';
3
+ @use 'cluster';
4
+ @use 'container';
5
+ @use 'cover';
6
+ @use 'decorator';
7
+ @use 'float';
8
+ @use 'frame';
9
+ @use 'gutters';
10
+ @use 'layers';
11
+ @use 'marquee';
12
+ @use 'masonry';
13
+ @use 'reel';
14
+ @use 'responsive-grid';
15
+ @use 'stack';
16
+ @use 'switcher';
17
+ @use 'text';
18
+ @use 'texture';
19
+ @use 'vertical-writing';
20
+ @use 'with-sidebar';
21
+
22
+ @include both-sides.both-sides();
23
+ @include center.center();
24
+ @include cluster.cluster();
25
+ @include container.container();
26
+ @include cover.cover();
27
+ @include decorator.decorator();
28
+ @include float.float();
29
+ @include frame.frame();
30
+ @include gutters.gutters();
31
+ @include layers.layers();
32
+ @include marquee.marquee();
33
+ @include masonry.masonry();
34
+ @include reel.reel();
35
+ @include responsive-grid.responsive-grid();
36
+ @include stack.stack();
37
+ @include switcher.switcher();
38
+ @include text.text();
39
+ @include texture.texture();
40
+ @include vertical-writing.vertical-writing();
41
+ @include with-sidebar.with-sidebar();
@@ -1,43 +1,3 @@
1
- @use 'both-sides/both-sides';
2
- @use 'decorator/decorator';
3
- @use 'center/center';
4
- @use 'cluster/cluster';
5
- @use 'cover/cover';
6
- @use 'float/float';
7
- @use 'frame/frame';
8
- @use 'layers/layers';
9
- @use 'marquee/marquee';
10
- @use 'masonry/masonry';
11
- @use 'reel/reel';
12
- @use 'responsive-grid/responsive-grid';
13
- @use 'gutters/gutters';
14
- @use 'stack/stack';
15
- @use 'switcher/switcher';
16
- @use 'text/text';
17
- @use 'texture/texture';
18
- @use 'vertical-writing/vertical-writing';
19
- @use 'with-sidebar/with-sidebar';
1
+ @forward './layout-primitives-core';
20
2
 
21
- @use 'container/container';
22
-
23
- @include both-sides.both-sides();
24
- @include decorator.decorator();
25
- @include center.center();
26
- @include cluster.cluster();
27
- @include cover.cover();
28
- @include float.float();
29
- @include frame.frame();
30
- @include layers.layers();
31
- @include marquee.marquee();
32
- @include masonry.masonry();
33
- @include reel.reel();
34
- @include responsive-grid.responsive-grid();
35
- @include gutters.gutters();
36
- @include stack.stack();
37
- @include switcher.switcher();
38
- @include text.text();
39
- @include texture.texture();
40
- @include vertical-writing.vertical-writing();
41
- @include with-sidebar.with-sidebar();
42
-
43
- @include container.container();
3
+ @warn "Deprecated Sass entry '@inc2734/unitone-css/src/layout-primitives/layout-primitives' will be removed in a future release. Use '@inc2734/unitone-css/src/layout-primitives' instead.";
@@ -0,0 +1,31 @@
1
+ @mixin abstract-both-sides() {
2
+ --unitone--gap: var(--unitone--global--gap);
3
+ --unitone--column-gap: var(--unitone--gap);
4
+ --unitone--row-gap: var(--unitone--gap);
5
+ --unitone--align-items: start;
6
+ --unitone--content-width: fit-content;
7
+ --unitone--content-max-width: 100%;
8
+
9
+ display: flex;
10
+ column-gap: var(--unitone--column-gap);
11
+ row-gap: var(--unitone--row-gap);
12
+ flex-wrap: wrap;
13
+ align-items: var(--unitone--align-items);
14
+ justify-content: space-between;
15
+
16
+ > * {
17
+ --unitone--max-width: var(--unitone--content-max-width);
18
+ --unitone--flex-basis: var(--unitone--content-width);
19
+
20
+ flex-basis: var(--unitone--flex-basis);
21
+ flex-grow: 0;
22
+ max-width: min(100%, var(--unitone--max-width));
23
+ min-width: 0;
24
+ }
25
+ }
26
+
27
+ @mixin both-sides() {
28
+ [data-unitone-layout~="both-sides"] {
29
+ @include abstract-both-sides();
30
+ }
31
+ }
@@ -1,31 +1,3 @@
1
- @mixin abstract-both-sides() {
2
- --unitone--gap: var(--unitone--global--gap);
3
- --unitone--column-gap: var(--unitone--gap);
4
- --unitone--row-gap: var(--unitone--gap);
5
- --unitone--align-items: start;
6
- --unitone--content-width: fit-content;
7
- --unitone--content-max-width: 100%;
1
+ @forward './both-sides-core';
8
2
 
9
- display: flex;
10
- column-gap: var(--unitone--column-gap);
11
- row-gap: var(--unitone--row-gap);
12
- flex-wrap: wrap;
13
- align-items: var(--unitone--align-items);
14
- justify-content: space-between;
15
-
16
- > * {
17
- --unitone--max-width: var(--unitone--content-max-width);
18
- --unitone--flex-basis: var(--unitone--content-width);
19
-
20
- flex-basis: var(--unitone--flex-basis);
21
- flex-grow: 0;
22
- max-width: min(100%, var(--unitone--max-width));
23
- min-width: 0;
24
- }
25
- }
26
-
27
- @mixin both-sides() {
28
- [data-unitone-layout~="both-sides"] {
29
- @include abstract-both-sides();
30
- }
31
- }
3
+ @warn "Deprecated Sass entry '@inc2734/unitone-css/src/layout-primitives/both-sides/both-sides' will be removed in a future release. Use '@inc2734/unitone-css/src/layout-primitives/both-sides' instead.";
@@ -0,0 +1 @@
1
+ @forward './both-sides-core';
@@ -0,0 +1 @@
1
+ export { BothSides } from './index';
@@ -0,0 +1,22 @@
1
+ @mixin abstract-center() {
2
+ --unitone--gutters: 0px;
3
+ --unitone--max-width: var(--unitone--measure);
4
+
5
+ box-sizing: content-box;
6
+ margin-right: auto;
7
+ margin-left: auto;
8
+ max-width: var(--unitone--max-width);
9
+ padding-right: var(--unitone--gutters);
10
+ padding-left: var(--unitone--gutters);
11
+ width: fit-content;
12
+
13
+ &[data-unitone-layout~="-with-text"] {
14
+ text-align: center;
15
+ }
16
+ }
17
+
18
+ @mixin center() {
19
+ [data-unitone-layout~="center"] {
20
+ @include abstract-center();
21
+ }
22
+ }
@@ -1,22 +1,3 @@
1
- @mixin abstract-center() {
2
- --unitone--gutters: 0px;
3
- --unitone--max-width: var(--unitone--measure);
1
+ @forward './center-core';
4
2
 
5
- box-sizing: content-box;
6
- margin-right: auto;
7
- margin-left: auto;
8
- max-width: var(--unitone--max-width);
9
- padding-right: var(--unitone--gutters);
10
- padding-left: var(--unitone--gutters);
11
- width: fit-content;
12
-
13
- &[data-unitone-layout~="-with-text"] {
14
- text-align: center;
15
- }
16
- }
17
-
18
- @mixin center() {
19
- [data-unitone-layout~="center"] {
20
- @include abstract-center();
21
- }
22
- }
3
+ @warn "Deprecated Sass entry '@inc2734/unitone-css/src/layout-primitives/center/center' will be removed in a future release. Use '@inc2734/unitone-css/src/layout-primitives/center' instead.";
@@ -0,0 +1 @@
1
+ @forward './center-core';
@@ -0,0 +1 @@
1
+ export { Center } from './index';
@@ -0,0 +1,126 @@
1
+ @mixin abstract-cluster() {
2
+ --unitone--align-items: strech;
3
+ --unitone--gap: var(--unitone--global--text-gap);
4
+ --unitone--column-gap: var(--unitone--gap);
5
+ --unitone--row-gap: var(--unitone--gap);
6
+ --unitone--justify-content: start;
7
+
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ column-gap: var(--unitone--column-gap);
11
+ row-gap: var(--unitone--row-gap);
12
+ justify-content: var(--unitone--justify-content);
13
+ align-items: var(--unitone--align-items);
14
+ list-style: none;
15
+
16
+ > * {
17
+ margin: 0;
18
+ min-width: 0;
19
+ }
20
+
21
+ &:where([data-unitone-layout~="-nowrap"]) {
22
+ flex-wrap: nowrap;
23
+ width: max-content;
24
+
25
+ > * {
26
+ flex-shrink: 0;
27
+ }
28
+ }
29
+
30
+ &:where([data-unitone-layout*="-divider\:"]) {
31
+ --unitone--divider-width: 1px;
32
+ --unitone--divider-style: solid;
33
+ --unitone--divider-color: var(--unitone--color--gray);
34
+
35
+ visibility: hidden;
36
+
37
+ &[data-unitone-layout~="divider:initialized"] {
38
+ visibility: visible;
39
+ }
40
+
41
+ > * {
42
+ position: relative;
43
+ display: flex;
44
+ flex-direction: column;
45
+ justify-content: var(--unitone--align-items);
46
+ }
47
+
48
+ > ::before {
49
+ content: '';
50
+ position: absolute;
51
+ inset: 0;
52
+ user-select: none;
53
+ pointer-events: none;
54
+ border-width: 0;
55
+ border-style: var(--unitone--divider-style);
56
+ border-color: var(--unitone--divider-color);
57
+ }
58
+ }
59
+
60
+ &[data-unitone-layout~="-divider\:stripe"] {
61
+ column-gap: 0;
62
+ align-items: stretch;
63
+
64
+ > * {
65
+ padding: 0 calc(var(--unitone--column-gap) + var(--unitone--divider-width));
66
+
67
+ &::before {
68
+ border-width: 0 var(--unitone--divider-width);
69
+ }
70
+ }
71
+
72
+ > :not([data-unitone-layout~="-bol"]) {
73
+ padding-left: var(--unitone--column-gap);
74
+
75
+ &::before {
76
+ border-left: 0;
77
+ }
78
+ }
79
+ }
80
+
81
+ &[data-unitone-layout~="-divider\:slash"] {
82
+ column-gap: calc(var(--unitone--column-gap) * 2 + var(--unitone--divider-width));
83
+ align-items: stretch;
84
+
85
+ > * + :not([data-unitone-layout~="-bol"])::before {
86
+ right: auto;
87
+ left: calc(var(--unitone--column-gap) * -1 - var(--unitone--divider-width));
88
+ border-left-width: var(--unitone--divider-width);
89
+ border-color: color-mix(in oklab, var(--unitone--divider-color) 97%, #000);
90
+ transform: rotate(22.5deg) scale(.8);
91
+ }
92
+ }
93
+
94
+ &[data-unitone-layout~="-divider\:bordered"] {
95
+ gap: 0;
96
+ align-items: stretch;
97
+
98
+ > * {
99
+ padding:
100
+ calc(var(--unitone--row-gap) + var(--unitone--divider-width))
101
+ calc(var(--unitone--column-gap) + var(--unitone--divider-width));
102
+
103
+ &::before {
104
+ border-width: var(--unitone--divider-width);
105
+ }
106
+ }
107
+
108
+ > :not([data-unitone-layout~="-bol"]) {
109
+ padding-left: var(--unitone--column-gap);
110
+
111
+ &::before {
112
+ border-left-width: 0;
113
+ }
114
+ }
115
+
116
+ > [data-unitone-layout~="-linewrap"] {
117
+ margin-top: calc(var(--unitone--divider-width) * -1);
118
+ }
119
+ }
120
+ }
121
+
122
+ @mixin cluster() {
123
+ [data-unitone-layout~="cluster"] {
124
+ @include abstract-cluster();
125
+ }
126
+ }
@@ -1,126 +1,3 @@
1
- @mixin abstract-cluster() {
2
- --unitone--align-items: strech;
3
- --unitone--gap: var(--unitone--global--text-gap);
4
- --unitone--column-gap: var(--unitone--gap);
5
- --unitone--row-gap: var(--unitone--gap);
6
- --unitone--justify-content: start;
1
+ @forward './cluster-core';
7
2
 
8
- display: flex;
9
- flex-wrap: wrap;
10
- column-gap: var(--unitone--column-gap);
11
- row-gap: var(--unitone--row-gap);
12
- justify-content: var(--unitone--justify-content);
13
- align-items: var(--unitone--align-items);
14
- list-style: none;
15
-
16
- > * {
17
- margin: 0;
18
- min-width: 0;
19
- }
20
-
21
- &:where([data-unitone-layout~="-nowrap"]) {
22
- flex-wrap: nowrap;
23
- width: max-content;
24
-
25
- > * {
26
- flex-shrink: 0;
27
- }
28
- }
29
-
30
- &:where([data-unitone-layout*="-divider\:"]) {
31
- --unitone--divider-width: 1px;
32
- --unitone--divider-style: solid;
33
- --unitone--divider-color: var(--unitone--color--gray);
34
-
35
- visibility: hidden;
36
-
37
- &[data-unitone-layout~="divider:initialized"] {
38
- visibility: visible;
39
- }
40
-
41
- > * {
42
- position: relative;
43
- display: flex;
44
- flex-direction: column;
45
- justify-content: var(--unitone--align-items);
46
- }
47
-
48
- > ::before {
49
- content: '';
50
- position: absolute;
51
- inset: 0;
52
- user-select: none;
53
- pointer-events: none;
54
- border-width: 0;
55
- border-style: var(--unitone--divider-style);
56
- border-color: var(--unitone--divider-color);
57
- }
58
- }
59
-
60
- &[data-unitone-layout~="-divider\:stripe"] {
61
- column-gap: 0;
62
- align-items: stretch;
63
-
64
- > * {
65
- padding: 0 calc(var(--unitone--column-gap) + var(--unitone--divider-width));
66
-
67
- &::before {
68
- border-width: 0 var(--unitone--divider-width);
69
- }
70
- }
71
-
72
- > :not([data-unitone-layout~="-bol"]) {
73
- padding-left: var(--unitone--column-gap);
74
-
75
- &::before {
76
- border-left: 0;
77
- }
78
- }
79
- }
80
-
81
- &[data-unitone-layout~="-divider\:slash"] {
82
- column-gap: calc(var(--unitone--column-gap) * 2 + var(--unitone--divider-width));
83
- align-items: stretch;
84
-
85
- > * + :not([data-unitone-layout~="-bol"])::before {
86
- right: auto;
87
- left: calc(var(--unitone--column-gap) * -1 - var(--unitone--divider-width));
88
- border-left-width: var(--unitone--divider-width);
89
- border-color: color-mix(in oklab, var(--unitone--divider-color) 97%, #000);
90
- transform: rotate(22.5deg) scale(.8);
91
- }
92
- }
93
-
94
- &[data-unitone-layout~="-divider\:bordered"] {
95
- gap: 0;
96
- align-items: stretch;
97
-
98
- > * {
99
- padding:
100
- calc(var(--unitone--row-gap) + var(--unitone--divider-width))
101
- calc(var(--unitone--column-gap) + var(--unitone--divider-width));
102
-
103
- &::before {
104
- border-width: var(--unitone--divider-width);
105
- }
106
- }
107
-
108
- > :not([data-unitone-layout~="-bol"]) {
109
- padding-left: var(--unitone--column-gap);
110
-
111
- &::before {
112
- border-left-width: 0;
113
- }
114
- }
115
-
116
- > [data-unitone-layout~="-linewrap"] {
117
- margin-top: calc(var(--unitone--divider-width) * -1);
118
- }
119
- }
120
- }
121
-
122
- @mixin cluster() {
123
- [data-unitone-layout~="cluster"] {
124
- @include abstract-cluster();
125
- }
126
- }
3
+ @warn "Deprecated Sass entry '@inc2734/unitone-css/src/layout-primitives/cluster/cluster' will be removed in a future release. Use '@inc2734/unitone-css/src/layout-primitives/cluster' instead.";
@@ -0,0 +1 @@
1
+ @forward './cluster-core';
@@ -0,0 +1,3 @@
1
+ import '../../behaviors/dividers';
2
+
3
+ export { Cluster } from './index';
@@ -0,0 +1,18 @@
1
+ @mixin abstract-container() {
2
+ --unitone--gutters: var(--unitone--global--gutters);
3
+ --unitone--max-width: var(--unitone--container-max-width);
4
+
5
+ box-sizing: content-box;
6
+ margin-right: auto;
7
+ margin-left: auto;
8
+ padding-right: var(--unitone--gutters);
9
+ padding-left: var(--unitone--gutters);
10
+ max-width: 100%;
11
+ width: min(100% - var(--unitone--gutters) * 2, var(--unitone--max-width));
12
+ }
13
+
14
+ @mixin container() {
15
+ [data-unitone-layout~="container"] {
16
+ @include abstract-container();
17
+ }
18
+ }
@@ -1,18 +1,3 @@
1
- @mixin abstract-container() {
2
- --unitone--gutters: var(--unitone--global--gutters);
3
- --unitone--max-width: var(--unitone--container-max-width);
1
+ @forward './container-core';
4
2
 
5
- box-sizing: content-box;
6
- margin-right: auto;
7
- margin-left: auto;
8
- padding-right: var(--unitone--gutters);
9
- padding-left: var(--unitone--gutters);
10
- max-width: 100%;
11
- width: min(100% - var(--unitone--gutters) * 2, var(--unitone--max-width));
12
- }
13
-
14
- @mixin container() {
15
- [data-unitone-layout~="container"] {
16
- @include abstract-container();
17
- }
18
- }
3
+ @warn "Deprecated Sass entry '@inc2734/unitone-css/src/layout-primitives/container/container' will be removed in a future release. Use '@inc2734/unitone-css/src/layout-primitives/container' instead.";
@@ -0,0 +1 @@
1
+ @forward './container-core';
@@ -0,0 +1 @@
1
+ export { Container } from './index';