@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,233 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ //* Global Mixins
4
+ @forward "./_global-mixins/blocks/content";
5
+ @use "./_global-mixins/blocks/content" as *;
6
+ @use "./_global-mixins/properties/custom" as *;
7
+
8
+ $wysiwyg-measure: .5rem;
9
+
10
+ @mixin make-content($btn-options: ()) {
11
+ //* btn
12
+
13
+ //* columns
14
+ @include block-columns-wp();
15
+
16
+ //* footnote
17
+
18
+ //* highlighted
19
+
20
+ //* image
21
+ @include block-image-wp();
22
+
23
+ //* quote
24
+ @include block-quote-wp();
25
+
26
+ //* separator
27
+ @include block-separator-wp();
28
+
29
+ //* headings
30
+
31
+ //* link
32
+
33
+ //* paragraphs
34
+ @include paragraphs-wysiwyg();
35
+
36
+ //* lists
37
+ @include lists-wysiwyg-wp();
38
+
39
+ //* video
40
+ @include block-video-wp();
41
+
42
+ //* table
43
+ @include block-table-wp();
44
+
45
+ //* utilities
46
+ @include utilities-wp();
47
+
48
+ & > h1:first-child,
49
+ & > h2:first-child,
50
+ & > h3:first-child,
51
+ & > h4:first-child,
52
+ & > h5:first-child,
53
+ & > h6:first-child,
54
+ & > p:first-child {
55
+ padding-top: 0 !important;
56
+ }
57
+ & > *:last-child {
58
+ margin-bottom: 0 !important;
59
+ }
60
+ }
61
+
62
+ @mixin make-content-modifier(
63
+ $btn-options: (),
64
+ $columns-options: (),
65
+ $footnote-options: (),
66
+ $highlighted-options: (),
67
+ $image-options: (),
68
+ $quote-options: (),
69
+ $separator-options: (),
70
+ $headings-options: (),
71
+ $link-options: (),
72
+ $paragraphs-options: (),
73
+ $lists-options: (),
74
+ $video-options: (),
75
+ $table-options: (),
76
+ $utilities-options: (),
77
+ $custom-options: ()
78
+ ) {
79
+ //* btn
80
+ @include block-btn-wp-modifier($options: $btn-options);
81
+ @if list.length(map.keys($btn-options)) > 0 {
82
+ @if map.get($btn-options, "margin-bottom") == null {
83
+ .wp-block-buttons,
84
+ .wp-block-button {
85
+ margin-bottom: $wysiwyg-measure * 4;
86
+ }
87
+ }
88
+ }
89
+
90
+ //* columns
91
+ @include block-columns-wp-modifier($options: $columns-options);
92
+ @if list.length(map.keys($columns-options)) > 0 {
93
+ @if map.get($columns-options, "margin-bottom") == null {
94
+ .wp-block-columns {
95
+ margin-bottom: $wysiwyg-measure * 4;
96
+ }
97
+ }
98
+ @if map.get($columns-options, "breakpoint") == null {
99
+ .wp-block-columns {
100
+ .wp-block-column {
101
+ @media all and ($viewport-type: $tablets) {
102
+ flex-basis: 100% !important;
103
+ flex-wrap: wrap !important;
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+
110
+ //* footnote
111
+ @include block-footnote-wp-modifier($options: $footnote-options);
112
+ @if list.length(map.keys($footnote-options)) > 0 {
113
+ @if map.get($footnote-options, "margin-bottom") == null {
114
+ .footnote {
115
+ margin-bottom: $wysiwyg-measure * 2;
116
+ }
117
+ }
118
+ }
119
+
120
+ //* highlighted
121
+ @include block-highlighted-wp-modifier($options: $highlighted-options);
122
+ @if list.length(map.keys($highlighted-options)) > 0 {
123
+ @if map.get($highlighted-options, "margin-bottom") == null {
124
+ .highlighted {
125
+ margin-bottom: $wysiwyg-measure * 4;
126
+ }
127
+ }
128
+ }
129
+
130
+ //* image
131
+ @include block-image-wp-modifier($options: $image-options);
132
+ @if list.length(map.keys($image-options)) > 0 {
133
+ @if map.get($image-options, "margin-bottom") == null {
134
+ figure.wp-block-image {
135
+ margin-bottom: $wysiwyg-measure * 5;
136
+ }
137
+ div.wp-block-image {
138
+ figure {
139
+ margin-bottom: $wysiwyg-measure * 5;
140
+ }
141
+ }
142
+ *[class^="wp-block"] {
143
+ img {
144
+ margin-bottom: $wysiwyg-measure * 5;
145
+ }
146
+ }
147
+ > p {
148
+ > img {
149
+ margin-bottom: $wysiwyg-measure * 5;
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ //* quote
156
+ @include block-quote-wp-modifier($options: $quote-options);
157
+ @if list.length(map.keys($quote-options)) > 0 {
158
+ @if map.get($quote-options, "padding") == null {
159
+ .wp-block-quote,
160
+ blockquote {
161
+ padding: $wysiwyg-measure * 3 0;
162
+ }
163
+ }
164
+ @if map.get($quote-options, "margin-top") == null {
165
+ .wp-block-quote,
166
+ blockquote {
167
+ margin-top: $wysiwyg-measure * 5;
168
+ }
169
+ }
170
+ @if map.get($quote-options, "margin-bottom") == null {
171
+ .wp-block-quote,
172
+ blockquote {
173
+ margin-top: $wysiwyg-measure * 6;
174
+ }
175
+ }
176
+ @if map.get($quote-options, "cite") == null {
177
+ cite {
178
+ margin-top: $wysiwyg-measure * 3;
179
+ }
180
+ }
181
+ }
182
+
183
+ //* separator
184
+ @include block-separator-wp-modifier($options: $separator-options);
185
+ @if list.length(map.keys($separator-options)) > 0 {
186
+ @if map.get($separator-options, "margin") == null {
187
+ .wp-block-separator {
188
+ margin: $wysiwyg-measure * 6 0;
189
+ }
190
+ }
191
+ }
192
+
193
+ //* headings
194
+ @include headings-wp-modifier($options: $headings-options);
195
+
196
+ //* link
197
+ @include block-link-wysiwyg-modifier($options: $link-options);
198
+
199
+ //* paragraphs
200
+ @include paragraphs-wysiwyg-wp-modifier($options: $paragraphs-options);
201
+
202
+ //* lists
203
+ @include lists-wysiwyg-wp-modifier($options: $lists-options);
204
+
205
+ //* video
206
+ @include block-video-wp-modifier($options: $video-options);
207
+ @if list.length(map.keys($video-options)) > 0 {
208
+ @if map.get($video-options, "margin-bottom") == null {
209
+ .wp-block-embed {
210
+ margin-bottom: $wysiwyg-measure * 5;
211
+ }
212
+ }
213
+ }
214
+
215
+ //* table
216
+ @include block-table-wp-modifier($options: $table-options);
217
+
218
+ //* utilities
219
+ @include utilities-wp-modifier($options: $utilities-options);
220
+ @if list.length(map.keys($utilities-options)) > 0 {
221
+ @if map.get($utilities-options, "media-text-aligned-margin-x") == null {
222
+ *.alignleft {
223
+ margin-right: $wysiwyg-measure * 5;
224
+ }
225
+ *.alignright {
226
+ margin-left: $wysiwyg-measure * 5;
227
+ }
228
+ }
229
+ }
230
+
231
+ //* custom
232
+ @include make-custom-wysiwyg-options($options: $custom-options);
233
+ }
@@ -0,0 +1,7 @@
1
+ @use "@scss/framework/utilities/utilities.scss" as *;
2
+ @use "@scss/framework/foundation/foundation.scss" as *;
3
+
4
+
5
+ // * global content
6
+ @use "./sanity";
7
+ @use "./wp";
@@ -0,0 +1 @@
1
+ @forward "../global-content/sanity";
@@ -0,0 +1,138 @@
1
+ @use "sass:map";
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+ @use "./framework/components/btn/c--btn-a.scss";
4
+ @use "./framework/components/link/c--link-a.scss";
5
+
6
+ // * global content
7
+ @use "./global-content/library";
8
+
9
+ @use "./sanity/index.scss" as *;
10
+
11
+ .c--content-a {
12
+ &--sanity {
13
+ @include make-content();
14
+ @include make-content-modifier(
15
+ // $highlighted-options: (
16
+ // "class": edf
17
+ // ),
18
+ $image-options: (
19
+ // "border-color": red,
20
+ "border-radius": 20px,
21
+ // "border-style": solid,
22
+ // "border-width": 2px,
23
+ "object-fit": cover,
24
+ "max-height": 700px,
25
+ "min-height": 0,
26
+ "object-position": center,
27
+ "max-width": 100%,
28
+ "min-width": 30px,
29
+ "margin-bottom": $measure * 7,
30
+ "caption": (
31
+ "color": red,
32
+ "font-family": arial,
33
+ // "font-size": 2rem,
34
+ "font-style": italic,
35
+ "font-weight": 400,
36
+ "letter-spacing": 1px,
37
+ "line-height": 1.5,
38
+ "max-lines": 3,
39
+ "text-decoration": none,
40
+ "text-decoration-color": #000000,
41
+ "text-underline-position": under,
42
+ "className": f--font-f,
43
+ "margin-bottom": $measure * 3,
44
+ "padding-top": $measure,
45
+ "text-align": right
46
+ ),
47
+ ),
48
+ $quote-options: (
49
+ "padding": $measure * 5 $measure * 2,
50
+ "margin-top": $measure,
51
+ "margin-bottom": $measure * 5,
52
+ "border": (
53
+ "border-color": red,
54
+ "border-radius": 0,
55
+ "border-style": solid,
56
+ "border-width": 2px 0,
57
+ ),
58
+ "paragraph": (
59
+ // "color": red,
60
+ "font-family": arial,
61
+ // "font-size": 2rem,
62
+ "font-style": italic,
63
+ "font-weight": 400,
64
+ "letter-spacing": 1px,
65
+ "line-height": 1.5,
66
+ // "max-lines": 3,
67
+ "text-decoration": none,
68
+ "text-decoration-color": #000000,
69
+ "text-underline-position": under,
70
+ "className": f--font-d,
71
+ // "margin-bottom": $measure*3,
72
+ // "padding-top": $measure,
73
+ // "text-align": right,,,,,
74
+ ),
75
+ ),
76
+ $headings-options: (
77
+ "h2": (
78
+ "color": orange,
79
+ "className": f--font-b,
80
+ ),
81
+ "h3": (
82
+ "color": orange,
83
+ "className": f--font-c,
84
+ ),
85
+ "h4": (
86
+ "color": purple,
87
+ "className": f--font-d,
88
+ ),
89
+ "h5": (
90
+ "color": orange,
91
+ "className": f--font-e,
92
+ ),
93
+ "h6": (
94
+ "color": orange,
95
+ "className": f--font-f,
96
+ ),
97
+ ),
98
+ $link-options: (
99
+ "className": c--link-a,
100
+ ),
101
+ $paragraphs-options: (
102
+ "className": f--font-e f--color-f,
103
+ "margin-bottom": $measure * 4,
104
+ ),
105
+ $lists-options: (
106
+ "first-number-width": 14px,
107
+ "first-level-number-color": map.get($color-options, g),
108
+ "first-level-artwork-width": 12px,
109
+ "first-level-artwork-top": 6px,
110
+ "first-level-artwork-image": "(/img/Diana-Blue.png)",
111
+ // "first-level-artwork-background": map.get($color-options, d),
112
+ // "first-level-artwork-border-radius": 50%,
113
+ "first-level-artwork-border-width": null,
114
+ "first-level-artwork-border-color": null,
115
+ "second-level-number-color": map.get($color-options, i),
116
+ "second-level-artwork-width": null,
117
+ "second-level-artwork-top": null,
118
+ "second-level-artwork-image": null,
119
+ "second-level-artwork-background": null,
120
+ "second-level-artwork-border-radius": null,
121
+ "second-level-artwork-border-width": null,
122
+ "second-level-artwork-border-color": null,
123
+ "third-level-number-color": map.get($color-options, h),
124
+ "third-level-artwork-width": null,
125
+ "third-level-artwork-top": null,
126
+ "third-level-artwork-image": null,
127
+ "third-level-artwork-background": null,
128
+ "third-level-artwork-border-radius": null,
129
+ "third-level-artwork-border-width": null,
130
+ "third-level-artwork-border-color": null,
131
+ "margin-bottom": $measure * 4,
132
+ "font-styles": (
133
+ "className": f--font-e f--color-e,
134
+ ),
135
+ )
136
+ );
137
+ }
138
+ }
@@ -0,0 +1 @@
1
+ @forward "../global-content/wordpress";
@@ -0,0 +1,267 @@
1
+ @use "sass:map";
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+ @use "./framework/components/btn/c--btn-a.scss";
4
+ @use "./framework/components/link/c--link-a.scss";
5
+
6
+ // * global content
7
+ @use "./global-content/library";
8
+
9
+ @use "./wordpress/index.scss" as *;
10
+
11
+ .c--content-a {
12
+ &--wp {
13
+ @include make-content();
14
+ @include make-content-modifier(
15
+ $btn-options: (
16
+ "className": c--btn-a c--btn-a--second,
17
+ "margin-bottom": $measure * 3,
18
+ ),
19
+ $columns-options: (
20
+ "breakpoint": $tablets,
21
+ "margin-bottom": $measure * 3,
22
+ ),
23
+ $footnote-options: (
24
+ "color": #638c1d,
25
+ "font-family": arial,
26
+ "font-size": 1rem,
27
+ "font-style": italic,
28
+ "font-weight": 400,
29
+ "letter-spacing": 1px,
30
+ "line-height": 1.5,
31
+ "max-lines": 3,
32
+ "text-decoration": none,
33
+ "text-decoration-color": #000000,
34
+ "text-underline-position": under,
35
+ "className": f--font-e,
36
+ "margin-bottom": $measure * 3,
37
+ "padding-top": $measure,
38
+ "text-align": left,
39
+ ),
40
+ $highlighted-options: (
41
+ "color": red,
42
+ "font-family": arial,
43
+ "font-size": 2rem,
44
+ "font-style": italic,
45
+ "font-weight": 400,
46
+ "letter-spacing": 1px,
47
+ "line-height": 1.5,
48
+ "max-lines": 3,
49
+ "text-decoration": none,
50
+ "text-decoration-color": #000000,
51
+ "text-underline-position": under,
52
+ "className": f--font-e,
53
+ "margin-bottom": $measure * 3,
54
+ "padding-top": $measure,
55
+ "text-align": center,
56
+ ),
57
+ $image-options: (
58
+ // "border-color": red,
59
+ "border-radius": 20px,
60
+ // "border-style": solid,
61
+ // "border-width": 2px,
62
+ "object-fit": cover,
63
+ "max-height": 700px,
64
+ "min-height": 0,
65
+ "object-position": center,
66
+ "max-width": 100%,
67
+ "min-width": 30px,
68
+ "margin-bottom": $measure * 7,
69
+ "caption": (
70
+ // "color": red,
71
+ "font-family": arial,
72
+ // "font-size": 2rem,
73
+ "font-style": italic,
74
+ "font-weight": 400,
75
+ "letter-spacing": 1px,
76
+ "line-height": 1.5,
77
+ "max-lines": 3,
78
+ "text-decoration": none,
79
+ "text-decoration-color": #000000,
80
+ "text-underline-position": under,
81
+ "className": f--font-f,
82
+ "margin-bottom": $measure * 3,
83
+ "padding-top": $measure,
84
+ "text-align": right
85
+ ),
86
+ ),
87
+ $quote-options: (
88
+ "padding": $measure * 5 0,
89
+ "margin-top": $measure,
90
+ "margin-bottom": $measure * 5,
91
+ "border": (
92
+ "border-color": red,
93
+ "border-radius": 0,
94
+ "border-style": solid,
95
+ "border-width": 2px 0,
96
+ ),
97
+ "paragraph": (
98
+ // "color": red,
99
+ "font-family": arial,
100
+ // "font-size": 2rem,
101
+ "font-style": italic,
102
+ "font-weight": 400,
103
+ "letter-spacing": 1px,
104
+ "line-height": 1.5,
105
+ // "max-lines": 3,
106
+ "text-decoration": none,
107
+ "text-decoration-color": #000000,
108
+ "text-underline-position": under,
109
+ "className": f--font-d,
110
+ // "margin-bottom": $measure*3,
111
+ // "padding-top": $measure,
112
+ // "text-align": right,,,,
113
+ ),
114
+ "cite": (
115
+ // "color": red,
116
+ "font-family": arial,
117
+ // "font-size": 2rem,
118
+ "font-style": italic,
119
+ "font-weight": 400,
120
+ "letter-spacing": 1px,
121
+ "line-height": 1.5,
122
+ "max-lines": 3,
123
+ "text-decoration": none,
124
+ "text-decoration-color": #000000,
125
+ "text-underline-position": under,
126
+ "className": f--font-f,
127
+ "margin-bottom": $measure * 3,
128
+ "padding-top": $measure * 2,
129
+ "text-align": right,
130
+ ),
131
+ ),
132
+ $separator-options: (
133
+ "margin": $measure * 5 auto,
134
+ "width": 60%,
135
+ "color": orange,
136
+ "height": 2px,
137
+ ),
138
+ $headings-options: (
139
+ "h2": (
140
+ "color": orange,
141
+ "padding-top": $measure * 2,
142
+ ),
143
+ "h3": (
144
+ "color": blue,
145
+ ),
146
+ ),
147
+ $link-options: (
148
+ "className": c--link-a,
149
+ ),
150
+ $paragraphs-options: (
151
+ "className": f--font-e f--color-f,
152
+ "margin-bottom": $measure * 4,
153
+ "margin-bottom-before-lists": $measure * 2,
154
+ "bold-font-weight": 600,
155
+ ),
156
+ $lists-options: (
157
+ "number-font": (
158
+ "font-weight": 600,
159
+ ),
160
+ "first-number-width": 14px,
161
+ "first-level-number-color": map.get($color-options, d),
162
+ "first-level-artwork-width": 8px,
163
+ "first-level-artwork-top": 8px,
164
+ "first-level-artwork-image": null,
165
+ "first-level-artwork-background": map.get($color-options, d),
166
+ "first-level-artwork-border-radius": 50%,
167
+ "first-level-artwork-border-width": null,
168
+ "first-level-artwork-border-color": null,
169
+ "second-level-number-color": map.get($color-options, g),
170
+ "second-level-artwork-width": null,
171
+ "second-level-artwork-top": null,
172
+ "second-level-artwork-image": null,
173
+ "second-level-artwork-background": null,
174
+ "second-level-artwork-border-radius": null,
175
+ "second-level-artwork-border-width": null,
176
+ "second-level-artwork-border-color": null,
177
+ "third-level-number-color": map.get($color-options, f),
178
+ "third-level-artwork-width": null,
179
+ "third-level-artwork-top": null,
180
+ "third-level-artwork-image": null,
181
+ "third-level-artwork-background": null,
182
+ "third-level-artwork-border-radius": null,
183
+ "third-level-artwork-border-width": null,
184
+ "third-level-artwork-border-color": null,
185
+ "margin-bottom": $measure * 4,
186
+ "nested-list-spacing": $measure,
187
+ "font-styles": (
188
+ "className": f--font-e f--color-e,
189
+ "margin-bottom": $measure,
190
+ ),
191
+ ),
192
+ $table-options: (
193
+ "header-font-styles": (
194
+ // "color": red,
195
+ // "font-family": arial,
196
+ // "font-size": 2rem,
197
+ // "font-style": italic,
198
+ "font-weight": 600,
199
+ // "letter-spacing": 1px,
200
+ // "line-height": 1.5,
201
+ // "max-lines": 3,
202
+ // "text-decoration": none,
203
+ // "text-decoration-color": #000000,
204
+ // "text-underline-position": under,
205
+ "className": f--font-e,
206
+ // "margin-bottom": $measure*3,
207
+ // "padding-top": $measure,
208
+ // "text-align": right,,,,
209
+ ),
210
+ "body-font-styles": (
211
+ // "color": red,
212
+ // "font-family": arial,
213
+ // "font-size": 2rem,
214
+ // "font-style": italic,
215
+ // "font-weight": 600,
216
+ // "letter-spacing": 1px,
217
+ // "line-height": 1.5,
218
+ // "max-lines": 3,
219
+ // "text-decoration": none,
220
+ // "text-decoration-color": #000000,
221
+ // "text-underline-position": under,
222
+ "className": f--font-e,
223
+ // "margin-bottom": $measure*3,
224
+ // "padding-top": $measure,
225
+ // "text-align": right,,,,
226
+ ),
227
+ "caption": (
228
+ // "color": red,
229
+ // "font-family": arial,
230
+ // "font-size": 2rem,
231
+ // "font-style": italic,
232
+ // "font-weight": 600,
233
+ // "letter-spacing": 1px,
234
+ // "line-height": 1.5,
235
+ // "max-lines": 3,
236
+ // "text-decoration": none,
237
+ // "text-decoration-color": #000000,
238
+ // "text-underline-position": under,
239
+ "className": f--font-f f--color-e,
240
+ // "margin-bottom": $measure*3,
241
+ // "padding-top": $measure,
242
+ "text-align": right,
243
+ ),
244
+ "margin-bottom": $measure * 4,
245
+ "header-cells-padding": $measure * 2,
246
+ "body-cells-padding": $measure $measure * 2,
247
+ "header-border": (
248
+ "border-width": 1px,
249
+ "border-style": solid,
250
+ "border-color": map.get($color-options, a),
251
+ ),
252
+ "header-background": rgba(map.get($color-options, a), 0.3),
253
+ "body-border": (
254
+ "border-width": 1px,
255
+ "border-style": solid,
256
+ "border-color": map.get($color-options, a),
257
+ ),
258
+ "body-background": rgba(map.get($color-options, e), 0.3),
259
+ "odd-rows-background": rgba(map.get($color-options, e), 0.5),
260
+ "odd-rows-text-color": null,
261
+ ),
262
+ $utilities-options: (
263
+ "media-text-aligned-margin-x": 32px,
264
+ )
265
+ );
266
+ }
267
+ }
@@ -0,0 +1,2 @@
1
+ // This line allows TypeScript to understand and provide auto-completion and type checking specific to Vite in your code, making development in a Vite project environment easier.
2
+ /// <reference types="vite/client" />
Binary file
package/tsconfig.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "noEmit": true,
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "baseUrl": ".",
22
+ "paths": {
23
+ "@/*": ["src/*"],
24
+ },
25
+ },
26
+ "include": ["src"]
27
+ }