@terrahq/wysiwyg 1.0.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 (230) hide show
  1. package/README.md +857 -0
  2. package/content/sanity-content.html +131 -0
  3. package/content/wordpress-content.html +266 -0
  4. package/dist/arrow.svg +3 -0
  5. package/dist/assets/UncutSans-Bold-2fac4f16.woff +0 -0
  6. package/dist/assets/UncutSans-Bold-7b3ccca7.woff2 +0 -0
  7. package/dist/assets/UncutSans-BoldItalic-b019f8c2.woff +0 -0
  8. package/dist/assets/UncutSans-BoldItalic-d20eba8f.woff2 +0 -0
  9. package/dist/assets/UncutSans-Book-8173cf82.woff +0 -0
  10. package/dist/assets/UncutSans-Book-d8cebf5d.woff2 +0 -0
  11. package/dist/assets/UncutSans-BookItalic-7a28bfb1.woff2 +0 -0
  12. package/dist/assets/UncutSans-BookItalic-d712b826.woff +0 -0
  13. package/dist/assets/UncutSans-Light-57c0f45d.woff2 +0 -0
  14. package/dist/assets/UncutSans-Light-8f82ee8c.woff +0 -0
  15. package/dist/assets/UncutSans-LightItalic-5d6a8d36.woff2 +0 -0
  16. package/dist/assets/UncutSans-LightItalic-9289a22f.woff +0 -0
  17. package/dist/assets/UncutSans-Medium-98513c38.woff +0 -0
  18. package/dist/assets/UncutSans-Medium-ed4917e5.woff2 +0 -0
  19. package/dist/assets/UncutSans-MediumItalic-1bbdbf4b.woff +0 -0
  20. package/dist/assets/UncutSans-MediumItalic-ef65e4f3.woff2 +0 -0
  21. package/dist/assets/UncutSans-Regular-6113b781.woff2 +0 -0
  22. package/dist/assets/UncutSans-Regular-f43ac780.woff +0 -0
  23. package/dist/assets/UncutSans-RegularItalic-6c918c22.woff +0 -0
  24. package/dist/assets/UncutSans-RegularItalic-de14905d.woff2 +0 -0
  25. package/dist/assets/main-41a2c29c.js +1 -0
  26. package/dist/assets/main-fcc727c6.css +1 -0
  27. package/dist/content/sanity-content.html +133 -0
  28. package/dist/content/wordpress-content.html +262 -0
  29. package/dist/img/Boba-Orange.png +0 -0
  30. package/dist/img/Diana-Blue.png +0 -0
  31. package/dist/img/Ebb-Green.png +0 -0
  32. package/dist/img/Forma-Lime.png +0 -0
  33. package/dist/img/Gollum-Pink.png +0 -0
  34. package/dist/img/Infinito-Gray.png +0 -0
  35. package/dist/img/Melos-Red.png +0 -0
  36. package/dist/img/Mendia-Black.png +0 -0
  37. package/dist/img/Mistyk-White.png +0 -0
  38. package/dist/img/Prismo-Blue.png +0 -0
  39. package/dist/img/Punky-Green.png +0 -0
  40. package/dist/img/Stanley-Lime.png +0 -0
  41. package/dist/img/bg.jpeg +0 -0
  42. package/dist/img/card-23/img-card23.png +0 -0
  43. package/dist/img/card-23/img2-card23.png +0 -0
  44. package/dist/img/card-23/img3-card23.png +0 -0
  45. package/dist/img/card-23/img4-card23.png +0 -0
  46. package/dist/img/card-32/img-card32.png +0 -0
  47. package/dist/img/card-32/img2-card32.png +0 -0
  48. package/dist/img/card-32/img3-card32.png +0 -0
  49. package/dist/img/card-32/img4-card32.png +0 -0
  50. package/dist/img/card-32/img5-card32.png +0 -0
  51. package/dist/img/card-35/card35.png +0 -0
  52. package/dist/img/card-39/img-card39.png +0 -0
  53. package/dist/img/card-39/img2-card39.png +0 -0
  54. package/dist/img/card-39/img3-card39.png +0 -0
  55. package/dist/img/card-39/img4-card39.png +0 -0
  56. package/dist/img/cta/cta.png +0 -0
  57. package/dist/img/layout-04/img-layout04.png +0 -0
  58. package/dist/img/layout-04/img2-layout04.png +0 -0
  59. package/dist/img/layout-04/img3-layout04.png +0 -0
  60. package/dist/img/layout-04/img4-layout04.png +0 -0
  61. package/dist/img/terra-placeholder.jpg +0 -0
  62. package/dist/img/terraform-group-color.png +0 -0
  63. package/dist/index.html +36 -0
  64. package/dist/lottie/terraforms-all.json +1 -0
  65. package/dist/lottie/terraforms.json +1 -0
  66. package/dist/mountain.png +0 -0
  67. package/dist/terra.gif +0 -0
  68. package/dist/terra.png +0 -0
  69. package/dist/tree.png +0 -0
  70. package/dist/video/terra-video.mp4 +0 -0
  71. package/dist/vite.svg +1 -0
  72. package/index.html +34 -0
  73. package/package.json +23 -0
  74. package/public/arrow.svg +3 -0
  75. package/public/img/Boba-Orange.png +0 -0
  76. package/public/img/Diana-Blue.png +0 -0
  77. package/public/img/Ebb-Green.png +0 -0
  78. package/public/img/Forma-Lime.png +0 -0
  79. package/public/img/Gollum-Pink.png +0 -0
  80. package/public/img/Infinito-Gray.png +0 -0
  81. package/public/img/Melos-Red.png +0 -0
  82. package/public/img/Mendia-Black.png +0 -0
  83. package/public/img/Mistyk-White.png +0 -0
  84. package/public/img/Prismo-Blue.png +0 -0
  85. package/public/img/Punky-Green.png +0 -0
  86. package/public/img/Stanley-Lime.png +0 -0
  87. package/public/img/bg.jpeg +0 -0
  88. package/public/img/card-23/img-card23.png +0 -0
  89. package/public/img/card-23/img2-card23.png +0 -0
  90. package/public/img/card-23/img3-card23.png +0 -0
  91. package/public/img/card-23/img4-card23.png +0 -0
  92. package/public/img/card-32/img-card32.png +0 -0
  93. package/public/img/card-32/img2-card32.png +0 -0
  94. package/public/img/card-32/img3-card32.png +0 -0
  95. package/public/img/card-32/img4-card32.png +0 -0
  96. package/public/img/card-32/img5-card32.png +0 -0
  97. package/public/img/card-35/card35.png +0 -0
  98. package/public/img/card-39/img-card39.png +0 -0
  99. package/public/img/card-39/img2-card39.png +0 -0
  100. package/public/img/card-39/img3-card39.png +0 -0
  101. package/public/img/card-39/img4-card39.png +0 -0
  102. package/public/img/cta/cta.png +0 -0
  103. package/public/img/layout-04/img-layout04.png +0 -0
  104. package/public/img/layout-04/img2-layout04.png +0 -0
  105. package/public/img/layout-04/img3-layout04.png +0 -0
  106. package/public/img/layout-04/img4-layout04.png +0 -0
  107. package/public/img/terra-placeholder.jpg +0 -0
  108. package/public/img/terraform-group-color.png +0 -0
  109. package/public/lottie/terraforms-all.json +1 -0
  110. package/public/lottie/terraforms.json +1 -0
  111. package/public/mountain.png +0 -0
  112. package/public/terra.gif +0 -0
  113. package/public/terra.png +0 -0
  114. package/public/tree.png +0 -0
  115. package/public/video/terra-video.mp4 +0 -0
  116. package/public/vite.svg +1 -0
  117. package/readme/blocks/Button.md +31 -0
  118. package/readme/blocks/Columns.md +31 -0
  119. package/readme/blocks/Footnote.md +35 -0
  120. package/readme/blocks/Headings.md +132 -0
  121. package/readme/blocks/Highlighted.md +35 -0
  122. package/readme/blocks/Image.md +143 -0
  123. package/readme/blocks/Links.md +24 -0
  124. package/readme/blocks/Lists.md +327 -0
  125. package/readme/blocks/Paragraphs.md +35 -0
  126. package/readme/blocks/Quote.md +94 -0
  127. package/readme/blocks/Separator.md +52 -0
  128. package/readme/blocks/Table.md +199 -0
  129. package/readme/blocks/Utilities.md +24 -0
  130. package/readme/blocks/Video.md +24 -0
  131. package/readme/properties/Border.md +52 -0
  132. package/readme/properties/Custom.md +54 -0
  133. package/readme/properties/Font.md +151 -0
  134. package/readme/properties/Media.md +0 -0
  135. package/src/assets/cta/noise.png +0 -0
  136. package/src/assets/fonts/UncutSans-Bold.woff +0 -0
  137. package/src/assets/fonts/UncutSans-Bold.woff2 +0 -0
  138. package/src/assets/fonts/UncutSans-BoldItalic.woff +0 -0
  139. package/src/assets/fonts/UncutSans-BoldItalic.woff2 +0 -0
  140. package/src/assets/fonts/UncutSans-Book.woff +0 -0
  141. package/src/assets/fonts/UncutSans-Book.woff2 +0 -0
  142. package/src/assets/fonts/UncutSans-BookItalic.woff +0 -0
  143. package/src/assets/fonts/UncutSans-BookItalic.woff2 +0 -0
  144. package/src/assets/fonts/UncutSans-Light.woff +0 -0
  145. package/src/assets/fonts/UncutSans-Light.woff2 +0 -0
  146. package/src/assets/fonts/UncutSans-LightItalic.woff +0 -0
  147. package/src/assets/fonts/UncutSans-LightItalic.woff2 +0 -0
  148. package/src/assets/fonts/UncutSans-Medium.woff +0 -0
  149. package/src/assets/fonts/UncutSans-Medium.woff2 +0 -0
  150. package/src/assets/fonts/UncutSans-MediumItalic.woff +0 -0
  151. package/src/assets/fonts/UncutSans-MediumItalic.woff2 +0 -0
  152. package/src/assets/fonts/UncutSans-Regular.woff +0 -0
  153. package/src/assets/fonts/UncutSans-Regular.woff2 +0 -0
  154. package/src/assets/fonts/UncutSans-RegularItalic.woff +0 -0
  155. package/src/assets/fonts/UncutSans-RegularItalic.woff2 +0 -0
  156. package/src/assets/mountain.png +0 -0
  157. package/src/assets/vector-v.svg +5 -0
  158. package/src/js/main.ts +13 -0
  159. package/src/scss/_paths.scss +5 -0
  160. package/src/scss/framework/_var/_vars.scss +106 -0
  161. package/src/scss/framework/components/btn/_c--btn-a.scss +58 -0
  162. package/src/scss/framework/components/content/_c--content-a.scss +460 -0
  163. package/src/scss/framework/components/link/_c--link-a.scss +13 -0
  164. package/src/scss/framework/components/preloader/_c--preloader-a.scss +62 -0
  165. package/src/scss/framework/components/transition/_c--transition-a.scss +24 -0
  166. package/src/scss/framework/foundation/_foundation.scss +32 -0
  167. package/src/scss/framework/foundation/background/_background.scss +8 -0
  168. package/src/scss/framework/foundation/color/_color.scss +8 -0
  169. package/src/scss/framework/foundation/font/_font.scss +27 -0
  170. package/src/scss/framework/foundation/font/_make-font.scss +61 -0
  171. package/src/scss/framework/foundation/gap/_gap.scss +17 -0
  172. package/src/scss/framework/foundation/gap/_make-gap.scss +29 -0
  173. package/src/scss/framework/foundation/grid/_columns.scss +115 -0
  174. package/src/scss/framework/foundation/grid/_container.scss +17 -0
  175. package/src/scss/framework/foundation/grid/_grid.scss +3 -0
  176. package/src/scss/framework/foundation/grid/_make-columns.scss +28 -0
  177. package/src/scss/framework/foundation/grid/_make-container.scss +33 -0
  178. package/src/scss/framework/foundation/grid/_make-row.scss +20 -0
  179. package/src/scss/framework/foundation/grid/_row.scss +9 -0
  180. package/src/scss/framework/foundation/reset/_reset.scss +121 -0
  181. package/src/scss/framework/foundation/spaces/_make-spaces.scss +29 -0
  182. package/src/scss/framework/foundation/spaces/_spaces.scss +17 -0
  183. package/src/scss/framework/utilities/_align-items.scss +39 -0
  184. package/src/scss/framework/utilities/_aspect-ratio.scss +55 -0
  185. package/src/scss/framework/utilities/_display.scss +46 -0
  186. package/src/scss/framework/utilities/_flex-direction.scss +42 -0
  187. package/src/scss/framework/utilities/_font-style.scss +38 -0
  188. package/src/scss/framework/utilities/_font-weight.scss +45 -0
  189. package/src/scss/framework/utilities/_justify-content.scss +42 -0
  190. package/src/scss/framework/utilities/_order.scss +38 -0
  191. package/src/scss/framework/utilities/_overflow.scss +38 -0
  192. package/src/scss/framework/utilities/_position.scss +42 -0
  193. package/src/scss/framework/utilities/_spacing.scss +66 -0
  194. package/src/scss/framework/utilities/_text-align.scss +40 -0
  195. package/src/scss/framework/utilities/_utilities.scss +12 -0
  196. package/src/scss/global-content/_global-mixins/_global-mixins.scss +2 -0
  197. package/src/scss/global-content/_global-mixins/blocks/_content-block-btn.scss +31 -0
  198. package/src/scss/global-content/_global-mixins/blocks/_content-block-columns.scss +38 -0
  199. package/src/scss/global-content/_global-mixins/blocks/_content-block-footnote.scss +8 -0
  200. package/src/scss/global-content/_global-mixins/blocks/_content-block-highlighted.scss +8 -0
  201. package/src/scss/global-content/_global-mixins/blocks/_content-block-image.scss +244 -0
  202. package/src/scss/global-content/_global-mixins/blocks/_content-block-quote.scss +72 -0
  203. package/src/scss/global-content/_global-mixins/blocks/_content-block-separator.scss +33 -0
  204. package/src/scss/global-content/_global-mixins/blocks/_content-block-table.scss +116 -0
  205. package/src/scss/global-content/_global-mixins/blocks/_content-block-video.scss +28 -0
  206. package/src/scss/global-content/_global-mixins/blocks/_content-heading.scss +45 -0
  207. package/src/scss/global-content/_global-mixins/blocks/_content-links.scss +21 -0
  208. package/src/scss/global-content/_global-mixins/blocks/_content-list.scss +960 -0
  209. package/src/scss/global-content/_global-mixins/blocks/_content-paragraph.scss +22 -0
  210. package/src/scss/global-content/_global-mixins/blocks/_content-utilities.scss +35 -0
  211. package/src/scss/global-content/_global-mixins/blocks/_content.scss +14 -0
  212. package/src/scss/global-content/_global-mixins/helpers/_class.scss +11 -0
  213. package/src/scss/global-content/_global-mixins/helpers/_helpers.scss +1 -0
  214. package/src/scss/global-content/_global-mixins/properties/_border.scss +18 -0
  215. package/src/scss/global-content/_global-mixins/properties/_custom.scss +51 -0
  216. package/src/scss/global-content/_global-mixins/properties/_font.scss +60 -0
  217. package/src/scss/global-content/_global-mixins/properties/_media.scss +188 -0
  218. package/src/scss/global-content/_global-mixins/properties/_properties.scss +3 -0
  219. package/src/scss/global-content/_library.scss +2 -0
  220. package/src/scss/global-content/_sanity.scss +157 -0
  221. package/src/scss/global-content/_wordpress.scss +233 -0
  222. package/src/scss/index.scss +7 -0
  223. package/src/scss/sanity/index.scss +1 -0
  224. package/src/scss/sanity.scss +138 -0
  225. package/src/scss/wordpress/index.scss +1 -0
  226. package/src/scss/wp.scss +267 -0
  227. package/src/vite-env.d.ts +2 -0
  228. package/terrahq-wysiwyg-0.0.19.tgz +0 -0
  229. package/tsconfig.json +27 -0
  230. package/vite.config.js +39 -0
@@ -0,0 +1,39 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $align-items-values:(
4
+ // baseline: baseline,
5
+ // stretch:stretch,
6
+ // flex-start:flex-start,
7
+ flex-end:flex-end,
8
+ center:center
9
+ );
10
+
11
+ $align-items-breakpoints: (
12
+ all: $all,
13
+ // desktop: $desktop,
14
+ // laptop: $laptop,
15
+ // tabletl: $tabletl,
16
+ // tabletm: $tabletm,
17
+ // tablets: $tablets,
18
+ // mobile: $mobile,
19
+ );
20
+
21
+ @mixin align-items-utility($align-prop,$breakpoints){
22
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
23
+ @each $name, $property in $align-prop {
24
+ $class-name: if($breakpoint-name == all, "", "-#{$breakpoint-name}");
25
+ .u--align-items#{$class-name}-#{$name}{
26
+ @if($breakpoint-value == 0) {
27
+ align-items: $property;
28
+ } @else {
29
+ @media screen and ($viewport-type: $breakpoint-value) {
30
+ align-items: $property;
31
+ }
32
+ }
33
+
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ @include align-items-utility($align-items-values,$align-items-breakpoints)
@@ -0,0 +1,55 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ @mixin make-ar($size: default) {
4
+ display: block;
5
+ width: 100%;
6
+ height: auto;
7
+ object-fit: cover;
8
+ @if $size == "default" {
9
+ } @else {
10
+ aspect-ratio: $size;
11
+ }
12
+ }
13
+
14
+ $ar-sizes: (
15
+ // a: 1.77777777, //* 16/9
16
+ // b: 1.33333333, //* 4/3
17
+ // c: 1.5, //* 3/2
18
+ d: 1, //* 1/1
19
+ // e: 0.75, //* 3/4
20
+ // f: 0.33333333, //* 1/3
21
+ );
22
+ $ar-breakpoints: (
23
+ all: $all,
24
+ // desktop: $desktop,
25
+ // laptop: $laptop,
26
+ // tabletl: $tabletl,
27
+ // tabletm: $tabletm,
28
+ // tablets: $tablets,
29
+ // mobile: $mobile,
30
+ );
31
+
32
+ @mixin ar-sizes($ar, $breakpoints) {
33
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
34
+ @if ($breakpoint-value == 0) {
35
+ .u--ar {
36
+ @include make-ar();
37
+ }
38
+ @each $name, $size in $ar {
39
+ .u--ar-#{$name} {
40
+ @include make-ar($size);
41
+ }
42
+ }
43
+ } @else {
44
+ @media screen and ($viewport-type: $breakpoint-value) {
45
+ @each $name, $size in $ar {
46
+ .u--ar-#{$breakpoint-name}-#{$name} {
47
+ @include make-ar($size);
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ @include ar-sizes($ar-sizes, $ar-breakpoints);
@@ -0,0 +1,46 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $display-values: (
4
+ block: block,
5
+ // hidden:hidden,
6
+ none: none,
7
+ // inline-block:inline-block,
8
+ // inline:inline,
9
+ // table:table,
10
+ // table-cell:table-cell,
11
+ // table-row:table-row,
12
+ flex: flex,
13
+ // inline-flex:inline-flex
14
+ );
15
+
16
+ $display-breakpoints: (
17
+ all: $all,
18
+ // desktop: $desktop,
19
+ // laptop: $laptop,
20
+ tabletl: $tabletl,
21
+ tabletm: $tabletm,
22
+ // tablets: $tablets,
23
+ // mobile: $mobile,
24
+ );
25
+
26
+ @mixin display-utility($display-prop, $breakpoints) {
27
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
28
+ @if ($breakpoint-value == 0) {
29
+ @each $name, $property in $display-prop {
30
+ .u--display-#{$name} {
31
+ display: $property;
32
+ }
33
+ }
34
+ } @else {
35
+ @media screen and ($viewport-type: $breakpoint-value) {
36
+ @each $name, $property in $display-prop {
37
+ .u--display-#{$breakpoint-name}-#{$name} {
38
+ display: $property;
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ @include display-utility($display-values, $display-breakpoints);
@@ -0,0 +1,42 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $flex-direction-values:(
4
+ // baseline: baseline,
5
+ // stretch:stretch,
6
+ // flex-start:flex-start,
7
+ // flex-end:flex-end,
8
+ //row:row
9
+ column: column
10
+ );
11
+
12
+ $flex-direction-breakpoints: (
13
+ all: $all,
14
+ // desktop: $desktop,
15
+ // laptop: $laptop,
16
+ // tabletl: $tabletl,
17
+ // tabletm: $tabletm,
18
+ // tablets: $tablets,
19
+ // mobile: $mobile,
20
+ );
21
+
22
+ @mixin flex-direction-utility($align-prop,$breakpoints){
23
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
24
+ @if($breakpoint-value == 0) {
25
+ @each $name, $property in $align-prop {
26
+ .u--flex-direction-#{$name}{
27
+ flex-direction:$property;
28
+ }
29
+ }
30
+ }@else{
31
+ @media screen and ($viewport-type: $breakpoint-value) {
32
+ @each $name, $property in $align-prop {
33
+ .u--flex-direction-#{$breakpoint-name}-#{$name}{
34
+ flex-direction:$property;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ @include flex-direction-utility($flex-direction-values,$flex-direction-breakpoints)
@@ -0,0 +1,38 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $font-style-values: (
4
+ italic: italic,
5
+ // normal: normal,
6
+ );
7
+
8
+ $font-style-breakpoints: (
9
+ all: $all,
10
+ // desktop: $desktop,
11
+ // laptop: $laptop,
12
+ // tabletl: $tabletl,
13
+ // tabletm: $tabletm,
14
+ // tablets: $tablets,
15
+ // mobile: $mobile,
16
+ );
17
+
18
+ @mixin font-style-utility($font-style-prop, $breakpoints) {
19
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
20
+ @if ($breakpoint-value == 0) {
21
+ @each $name, $property in $font-style-prop {
22
+ .u--font-style-#{$name} {
23
+ font-style: $property;
24
+ }
25
+ }
26
+ } @else {
27
+ @media screen and ($viewport-type: $breakpoint-value) {
28
+ @each $name, $property in $font-style-prop {
29
+ .u--font-style-#{$breakpoint-name}-#{$name} {
30
+ font-style: $property;
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ @include font-style-utility($font-style-values, $font-style-breakpoints);
@@ -0,0 +1,45 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $font-weight-values: (
4
+ // thin: 100,
5
+ // extralight: 200,
6
+ // light: 300,
7
+ // regular: 400,
8
+ // medium: 500,
9
+ // semibold: 600,
10
+ bold: 700,
11
+ // extrabold: 800,
12
+ // black: 900,
13
+ );
14
+
15
+ $font-weight-breakpoints: (
16
+ all: $all,
17
+ // desktop: $desktop,
18
+ // laptop: $laptop,
19
+ // tabletl: $tabletl,
20
+ // tabletm: $tabletm,
21
+ // tablets: $tablets,
22
+ // mobile: $mobile,
23
+ );
24
+
25
+ @mixin font-weight-utility($font-weight-prop, $breakpoints) {
26
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
27
+ @if ($breakpoint-value == 0) {
28
+ @each $name, $property in $font-weight-prop {
29
+ .u--font-#{$name} {
30
+ font-weight: $property;
31
+ }
32
+ }
33
+ } @else {
34
+ @media screen and ($viewport-type: $breakpoint-value) {
35
+ @each $name, $property in $font-weight-prop {
36
+ .u--font-#{$breakpoint-name}-#{$name} {
37
+ font-weight: $property;
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ @include font-weight-utility($font-weight-values, $font-weight-breakpoints);
@@ -0,0 +1,42 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $justify-content-properties:(
4
+ space-between: space-between,
5
+ // space-around:space-around,
6
+ // space-evenly:space-evenly,
7
+ // flex-start:flex-start,
8
+ flex-end:flex-end,
9
+ center:center
10
+ );
11
+
12
+ $justify-content-breakpoints: (
13
+ all: $all,
14
+ // desktop: $desktop,
15
+ // laptop: $laptop,
16
+ // tabletl: $tabletl,
17
+ // tabletm: $tabletm,
18
+ tablets: $tablets,
19
+ // mobile: $mobile,
20
+ );
21
+
22
+ @mixin justify-content-utility($justify-prop,$breakpoints){
23
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
24
+ @if($breakpoint-value == 0) {
25
+ @each $name, $property in $justify-prop {
26
+ .u--justify-content-#{$name}{
27
+ justify-content:$property;
28
+ }
29
+ }
30
+ }@else{
31
+ @media screen and ($viewport-type: $breakpoint-value) {
32
+ @each $name, $property in $justify-prop {
33
+ .u--justify-content-#{$breakpoint-name}-#{$name}{
34
+ justify-content:$property;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ @include justify-content-utility($justify-content-properties,$justify-content-breakpoints)
@@ -0,0 +1,38 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $order-values: (
4
+ first,
5
+ 1,
6
+ );
7
+
8
+ $order-breakpoints: (
9
+ all: $all,
10
+ // desktop: $desktop,
11
+ // laptop: $laptop,
12
+ // tabletl: $tabletl,
13
+ tabletm: $tabletm,
14
+ // tablets: $tablets,
15
+ // mobile: $mobile,,
16
+ );
17
+
18
+ @mixin order-utility($order-values, $breakpoints) {
19
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
20
+ @each $value in $order-values {
21
+ $order: if($value == first, -1, $value);
22
+
23
+ $class-name: if($breakpoint-name == all, "", "-#{$breakpoint-name}");
24
+
25
+ .u--order#{$class-name}-#{$value} {
26
+ @if ($breakpoint-name == all) {
27
+ order: #{$order};
28
+ } @else {
29
+ @media screen and ($viewport-type: #{$breakpoint-value}) {
30
+ order: #{$order};
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ @include order-utility($order-values, $order-breakpoints);
@@ -0,0 +1,38 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $overflow-values:(
4
+ hidden: hidden,
5
+ // auto: auto,
6
+ );
7
+
8
+ $overflow-breakpoints: (
9
+ all: $all,
10
+ // desktop: $desktop,
11
+ // laptop: $laptop,
12
+ // tabletl: $tabletl,
13
+ // tabletm: $tabletm,
14
+ // tablets: $tablets,
15
+ // mobile: $mobile,
16
+ );
17
+
18
+ @mixin overflow-utility($overflow-prop,$breakpoints){
19
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
20
+ @if($breakpoint-value == 0) {
21
+ @each $name, $property in $overflow-prop {
22
+ .u--overflow-#{$name}{
23
+ overflow:$property;
24
+ }
25
+ }
26
+ }@else{
27
+ @media screen and ($viewport-type: $breakpoint-value) {
28
+ @each $name, $property in $overflow-prop {
29
+ .u--overflow-#{$breakpoint-name}-#{$name}{
30
+ overflow:$property;
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ @include overflow-utility($overflow-values,$overflow-breakpoints)
@@ -0,0 +1,42 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $position-values:(
4
+ relative:relative,
5
+ absolute:absolute,
6
+ fixed:fixed,
7
+ sticky:sticky,
8
+ // inherit:inherit,
9
+ // unset:unset
10
+ );
11
+
12
+ $position-breakpoints: (
13
+ all: $all,
14
+ // desktop: $desktop,
15
+ // laptop: $laptop,
16
+ // tabletl: $tabletl,
17
+ // tabletm: $tabletm,
18
+ // tablets: $tablets,
19
+ // mobile: $mobile,
20
+ );
21
+
22
+ @mixin position-utility($position-prop,$breakpoints){
23
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
24
+ @if($breakpoint-value == 0) {
25
+ @each $name, $property in $position-prop {
26
+ .u--position-#{$name}{
27
+ position:$property;
28
+ }
29
+ }
30
+ }@else{
31
+ @media screen and ($viewport-type: $breakpoint-value) {
32
+ @each $name, $property in $position-prop {
33
+ .u--position-#{$breakpoint-name}-#{$name}{
34
+ position:$property;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ @include position-utility($position-values,$position-breakpoints)
@@ -0,0 +1,66 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $space-values : (
4
+ // 0,
5
+ // 2,
6
+ // 3,
7
+ // 4,
8
+ // 5,
9
+ // 7,
10
+ // 8,
11
+ // 10,
12
+ 15,
13
+ ) !default;
14
+
15
+ $space-prefixes : (
16
+ // p : padding,
17
+ pt : padding-top,
18
+ // pr : padding-right,
19
+ pb : padding-bottom,
20
+ // pl : padding-left,
21
+ // m : margin,
22
+ // mt : margin-top,
23
+ // mr : margin-right,
24
+ // mb : margin-bottom,
25
+ // ml : margin-left,
26
+ ) !default;
27
+
28
+ $space-breakpoints: (
29
+ all: $all,
30
+ // desktop: $desktop,
31
+ // laptop: $laptop,
32
+ // tabletl: $tabletl,
33
+ // tabletm: $tabletm,
34
+ // tablets: $tablets,
35
+ // mobile: $mobile,
36
+ );
37
+
38
+ @mixin make-spaces($values, $prefixes, $breakpoints) {
39
+
40
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
41
+ // if xs value = 0, set it global without media queries
42
+ @if($breakpoint-value == 0) {
43
+ @each $attr-short, $attr-long in $prefixes {
44
+ @each $value in $values {
45
+ .u--#{$attr-short}-#{$value} {
46
+ #{$attr-long}: calc(#{$measure} * #{$value});
47
+ }
48
+ }
49
+ }
50
+ }
51
+ // breakpoint values that not equal to 0
52
+ @else {
53
+ @media screen and ($viewport-type: $breakpoint-value) {
54
+ @each $attr-short, $attr-long in $prefixes {
55
+ @each $value in $values {
56
+ .u--#{$attr-short}-#{$breakpoint-name}-#{$value} {
57
+ #{$attr-long}: calc(#{$measure} * #{$value});
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ @include make-spaces($space-values, $space-prefixes,$space-breakpoints);
@@ -0,0 +1,40 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $text-align-values: (
4
+ // left: left,
5
+ center: center,
6
+ // right:right,
7
+ // justify:justify,
8
+ );
9
+
10
+ $text-align-breakpoints: (
11
+ all: $all,
12
+ // desktop: $desktop,
13
+ // laptop: $laptop,
14
+ // tabletl: $tabletl,
15
+ // tabletm: $tabletm,
16
+ // tablets: $tablets,
17
+ // mobile: $mobile,
18
+ );
19
+
20
+ @mixin text-align-utility($text-prop, $breakpoints) {
21
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
22
+ @if ($breakpoint-value == 0) {
23
+ @each $name, $property in $text-prop {
24
+ .u--text-align-#{$name} {
25
+ text-align: $property;
26
+ }
27
+ }
28
+ } @else {
29
+ @media screen and ($viewport-type: $breakpoint-value) {
30
+ @each $name, $property in $text-prop {
31
+ .u--text-align-#{$breakpoint-name}-#{$name} {
32
+ text-align: $property;
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ @include text-align-utility($text-align-values, $text-align-breakpoints);
@@ -0,0 +1,12 @@
1
+ @forward './align-items.scss';
2
+ @forward './aspect-ratio.scss';
3
+ @forward './display.scss';
4
+ @forward './flex-direction.scss';
5
+ @forward './font-style.scss';
6
+ @forward './font-weight.scss';
7
+ @forward './justify-content.scss';
8
+ @forward './order.scss';
9
+ @forward './overflow.scss';
10
+ @forward './position.scss';
11
+ @forward './spacing.scss';
12
+ @forward './text-align.scss';
@@ -0,0 +1,2 @@
1
+ @forward "./helpers/helpers";
2
+ @forward "./properties/properties";
@@ -0,0 +1,31 @@
1
+ @use "sass:map";
2
+
3
+ @use "../_global-mixins" as *;
4
+
5
+ $btn-wysiwyg-options: (
6
+ "className": null,
7
+ "margin-bottom": null,
8
+ );
9
+
10
+ @mixin block-btn-wp-modifier ($options) {
11
+ @each $property, $value in $options {
12
+ @if map.has-key($btn-wysiwyg-options, $property) {
13
+ @if $value {
14
+ @if $property == "className" {
15
+ .wp-block-buttons,
16
+ .wp-block-button{
17
+ .wp-block-button__link{
18
+ @include make-class-options($value);
19
+ }
20
+ }
21
+ }
22
+ @else {
23
+ .wp-block-buttons,
24
+ .wp-block-button{
25
+ #{$property}: $value;
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,38 @@
1
+ @use "sass:map";
2
+
3
+ $columns-wysiwyg-options: (
4
+ "margin-bottom": null,
5
+ "breakpoint": null,
6
+ );
7
+
8
+ @mixin block-columns-wp() {
9
+ .wp-block-columns{
10
+ display: flex;
11
+ }
12
+ }
13
+
14
+ @mixin block-columns-wp-modifier($options) {
15
+ @each $property, $value in $options {
16
+ @if map.has-key($columns-wysiwyg-options, $property) {
17
+ @if $value {
18
+ @if $property == "breakpoint" {
19
+ .wp-block-columns {
20
+ @media all and (max-width: $value) {
21
+ flex-wrap: wrap !important;
22
+ }
23
+ .wp-block-column {
24
+ @media all and (max-width: $value) {
25
+ flex-basis: 100% !important;
26
+ }
27
+ }
28
+ }
29
+ }
30
+ @else {
31
+ .wp-block-columns {
32
+ #{$property}: $value;
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,8 @@
1
+ @use "../_global-mixins" as *;
2
+
3
+ @mixin block-footnote-wp-modifier($options: $options) {
4
+ .footnote,
5
+ .wp-block-column > .footnote {
6
+ @include make-font-wysiwyg-options($options)
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ @use "../_global-mixins" as *;
2
+
3
+ @mixin block-highlighted-wp-modifier($options: $options) {
4
+ .highlighted,
5
+ .wp-block-column > .highlighted {
6
+ @include make-font-wysiwyg-options($options)
7
+ }
8
+ }