@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.
- package/README.md +857 -0
- package/content/sanity-content.html +131 -0
- package/content/wordpress-content.html +266 -0
- package/dist/arrow.svg +3 -0
- package/dist/assets/UncutSans-Bold-2fac4f16.woff +0 -0
- package/dist/assets/UncutSans-Bold-7b3ccca7.woff2 +0 -0
- package/dist/assets/UncutSans-BoldItalic-b019f8c2.woff +0 -0
- package/dist/assets/UncutSans-BoldItalic-d20eba8f.woff2 +0 -0
- package/dist/assets/UncutSans-Book-8173cf82.woff +0 -0
- package/dist/assets/UncutSans-Book-d8cebf5d.woff2 +0 -0
- package/dist/assets/UncutSans-BookItalic-7a28bfb1.woff2 +0 -0
- package/dist/assets/UncutSans-BookItalic-d712b826.woff +0 -0
- package/dist/assets/UncutSans-Light-57c0f45d.woff2 +0 -0
- package/dist/assets/UncutSans-Light-8f82ee8c.woff +0 -0
- package/dist/assets/UncutSans-LightItalic-5d6a8d36.woff2 +0 -0
- package/dist/assets/UncutSans-LightItalic-9289a22f.woff +0 -0
- package/dist/assets/UncutSans-Medium-98513c38.woff +0 -0
- package/dist/assets/UncutSans-Medium-ed4917e5.woff2 +0 -0
- package/dist/assets/UncutSans-MediumItalic-1bbdbf4b.woff +0 -0
- package/dist/assets/UncutSans-MediumItalic-ef65e4f3.woff2 +0 -0
- package/dist/assets/UncutSans-Regular-6113b781.woff2 +0 -0
- package/dist/assets/UncutSans-Regular-f43ac780.woff +0 -0
- package/dist/assets/UncutSans-RegularItalic-6c918c22.woff +0 -0
- package/dist/assets/UncutSans-RegularItalic-de14905d.woff2 +0 -0
- package/dist/assets/main-41a2c29c.js +1 -0
- package/dist/assets/main-fcc727c6.css +1 -0
- package/dist/content/sanity-content.html +133 -0
- package/dist/content/wordpress-content.html +262 -0
- package/dist/img/Boba-Orange.png +0 -0
- package/dist/img/Diana-Blue.png +0 -0
- package/dist/img/Ebb-Green.png +0 -0
- package/dist/img/Forma-Lime.png +0 -0
- package/dist/img/Gollum-Pink.png +0 -0
- package/dist/img/Infinito-Gray.png +0 -0
- package/dist/img/Melos-Red.png +0 -0
- package/dist/img/Mendia-Black.png +0 -0
- package/dist/img/Mistyk-White.png +0 -0
- package/dist/img/Prismo-Blue.png +0 -0
- package/dist/img/Punky-Green.png +0 -0
- package/dist/img/Stanley-Lime.png +0 -0
- package/dist/img/bg.jpeg +0 -0
- package/dist/img/card-23/img-card23.png +0 -0
- package/dist/img/card-23/img2-card23.png +0 -0
- package/dist/img/card-23/img3-card23.png +0 -0
- package/dist/img/card-23/img4-card23.png +0 -0
- package/dist/img/card-32/img-card32.png +0 -0
- package/dist/img/card-32/img2-card32.png +0 -0
- package/dist/img/card-32/img3-card32.png +0 -0
- package/dist/img/card-32/img4-card32.png +0 -0
- package/dist/img/card-32/img5-card32.png +0 -0
- package/dist/img/card-35/card35.png +0 -0
- package/dist/img/card-39/img-card39.png +0 -0
- package/dist/img/card-39/img2-card39.png +0 -0
- package/dist/img/card-39/img3-card39.png +0 -0
- package/dist/img/card-39/img4-card39.png +0 -0
- package/dist/img/cta/cta.png +0 -0
- package/dist/img/layout-04/img-layout04.png +0 -0
- package/dist/img/layout-04/img2-layout04.png +0 -0
- package/dist/img/layout-04/img3-layout04.png +0 -0
- package/dist/img/layout-04/img4-layout04.png +0 -0
- package/dist/img/terra-placeholder.jpg +0 -0
- package/dist/img/terraform-group-color.png +0 -0
- package/dist/index.html +36 -0
- package/dist/lottie/terraforms-all.json +1 -0
- package/dist/lottie/terraforms.json +1 -0
- package/dist/mountain.png +0 -0
- package/dist/terra.gif +0 -0
- package/dist/terra.png +0 -0
- package/dist/tree.png +0 -0
- package/dist/video/terra-video.mp4 +0 -0
- package/dist/vite.svg +1 -0
- package/index.html +34 -0
- package/package.json +23 -0
- package/public/arrow.svg +3 -0
- package/public/img/Boba-Orange.png +0 -0
- package/public/img/Diana-Blue.png +0 -0
- package/public/img/Ebb-Green.png +0 -0
- package/public/img/Forma-Lime.png +0 -0
- package/public/img/Gollum-Pink.png +0 -0
- package/public/img/Infinito-Gray.png +0 -0
- package/public/img/Melos-Red.png +0 -0
- package/public/img/Mendia-Black.png +0 -0
- package/public/img/Mistyk-White.png +0 -0
- package/public/img/Prismo-Blue.png +0 -0
- package/public/img/Punky-Green.png +0 -0
- package/public/img/Stanley-Lime.png +0 -0
- package/public/img/bg.jpeg +0 -0
- package/public/img/card-23/img-card23.png +0 -0
- package/public/img/card-23/img2-card23.png +0 -0
- package/public/img/card-23/img3-card23.png +0 -0
- package/public/img/card-23/img4-card23.png +0 -0
- package/public/img/card-32/img-card32.png +0 -0
- package/public/img/card-32/img2-card32.png +0 -0
- package/public/img/card-32/img3-card32.png +0 -0
- package/public/img/card-32/img4-card32.png +0 -0
- package/public/img/card-32/img5-card32.png +0 -0
- package/public/img/card-35/card35.png +0 -0
- package/public/img/card-39/img-card39.png +0 -0
- package/public/img/card-39/img2-card39.png +0 -0
- package/public/img/card-39/img3-card39.png +0 -0
- package/public/img/card-39/img4-card39.png +0 -0
- package/public/img/cta/cta.png +0 -0
- package/public/img/layout-04/img-layout04.png +0 -0
- package/public/img/layout-04/img2-layout04.png +0 -0
- package/public/img/layout-04/img3-layout04.png +0 -0
- package/public/img/layout-04/img4-layout04.png +0 -0
- package/public/img/terra-placeholder.jpg +0 -0
- package/public/img/terraform-group-color.png +0 -0
- package/public/lottie/terraforms-all.json +1 -0
- package/public/lottie/terraforms.json +1 -0
- package/public/mountain.png +0 -0
- package/public/terra.gif +0 -0
- package/public/terra.png +0 -0
- package/public/tree.png +0 -0
- package/public/video/terra-video.mp4 +0 -0
- package/public/vite.svg +1 -0
- package/readme/blocks/Button.md +31 -0
- package/readme/blocks/Columns.md +31 -0
- package/readme/blocks/Footnote.md +35 -0
- package/readme/blocks/Headings.md +132 -0
- package/readme/blocks/Highlighted.md +35 -0
- package/readme/blocks/Image.md +143 -0
- package/readme/blocks/Links.md +24 -0
- package/readme/blocks/Lists.md +327 -0
- package/readme/blocks/Paragraphs.md +35 -0
- package/readme/blocks/Quote.md +94 -0
- package/readme/blocks/Separator.md +52 -0
- package/readme/blocks/Table.md +199 -0
- package/readme/blocks/Utilities.md +24 -0
- package/readme/blocks/Video.md +24 -0
- package/readme/properties/Border.md +52 -0
- package/readme/properties/Custom.md +54 -0
- package/readme/properties/Font.md +151 -0
- package/readme/properties/Media.md +0 -0
- package/src/assets/cta/noise.png +0 -0
- package/src/assets/fonts/UncutSans-Bold.woff +0 -0
- package/src/assets/fonts/UncutSans-Bold.woff2 +0 -0
- package/src/assets/fonts/UncutSans-BoldItalic.woff +0 -0
- package/src/assets/fonts/UncutSans-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/UncutSans-Book.woff +0 -0
- package/src/assets/fonts/UncutSans-Book.woff2 +0 -0
- package/src/assets/fonts/UncutSans-BookItalic.woff +0 -0
- package/src/assets/fonts/UncutSans-BookItalic.woff2 +0 -0
- package/src/assets/fonts/UncutSans-Light.woff +0 -0
- package/src/assets/fonts/UncutSans-Light.woff2 +0 -0
- package/src/assets/fonts/UncutSans-LightItalic.woff +0 -0
- package/src/assets/fonts/UncutSans-LightItalic.woff2 +0 -0
- package/src/assets/fonts/UncutSans-Medium.woff +0 -0
- package/src/assets/fonts/UncutSans-Medium.woff2 +0 -0
- package/src/assets/fonts/UncutSans-MediumItalic.woff +0 -0
- package/src/assets/fonts/UncutSans-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/UncutSans-Regular.woff +0 -0
- package/src/assets/fonts/UncutSans-Regular.woff2 +0 -0
- package/src/assets/fonts/UncutSans-RegularItalic.woff +0 -0
- package/src/assets/fonts/UncutSans-RegularItalic.woff2 +0 -0
- package/src/assets/mountain.png +0 -0
- package/src/assets/vector-v.svg +5 -0
- package/src/js/main.ts +13 -0
- package/src/scss/_paths.scss +5 -0
- package/src/scss/framework/_var/_vars.scss +106 -0
- package/src/scss/framework/components/btn/_c--btn-a.scss +58 -0
- package/src/scss/framework/components/content/_c--content-a.scss +460 -0
- package/src/scss/framework/components/link/_c--link-a.scss +13 -0
- package/src/scss/framework/components/preloader/_c--preloader-a.scss +62 -0
- package/src/scss/framework/components/transition/_c--transition-a.scss +24 -0
- package/src/scss/framework/foundation/_foundation.scss +32 -0
- package/src/scss/framework/foundation/background/_background.scss +8 -0
- package/src/scss/framework/foundation/color/_color.scss +8 -0
- package/src/scss/framework/foundation/font/_font.scss +27 -0
- package/src/scss/framework/foundation/font/_make-font.scss +61 -0
- package/src/scss/framework/foundation/gap/_gap.scss +17 -0
- package/src/scss/framework/foundation/gap/_make-gap.scss +29 -0
- package/src/scss/framework/foundation/grid/_columns.scss +115 -0
- package/src/scss/framework/foundation/grid/_container.scss +17 -0
- package/src/scss/framework/foundation/grid/_grid.scss +3 -0
- package/src/scss/framework/foundation/grid/_make-columns.scss +28 -0
- package/src/scss/framework/foundation/grid/_make-container.scss +33 -0
- package/src/scss/framework/foundation/grid/_make-row.scss +20 -0
- package/src/scss/framework/foundation/grid/_row.scss +9 -0
- package/src/scss/framework/foundation/reset/_reset.scss +121 -0
- package/src/scss/framework/foundation/spaces/_make-spaces.scss +29 -0
- package/src/scss/framework/foundation/spaces/_spaces.scss +17 -0
- package/src/scss/framework/utilities/_align-items.scss +39 -0
- package/src/scss/framework/utilities/_aspect-ratio.scss +55 -0
- package/src/scss/framework/utilities/_display.scss +46 -0
- package/src/scss/framework/utilities/_flex-direction.scss +42 -0
- package/src/scss/framework/utilities/_font-style.scss +38 -0
- package/src/scss/framework/utilities/_font-weight.scss +45 -0
- package/src/scss/framework/utilities/_justify-content.scss +42 -0
- package/src/scss/framework/utilities/_order.scss +38 -0
- package/src/scss/framework/utilities/_overflow.scss +38 -0
- package/src/scss/framework/utilities/_position.scss +42 -0
- package/src/scss/framework/utilities/_spacing.scss +66 -0
- package/src/scss/framework/utilities/_text-align.scss +40 -0
- package/src/scss/framework/utilities/_utilities.scss +12 -0
- package/src/scss/global-content/_global-mixins/_global-mixins.scss +2 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-btn.scss +31 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-columns.scss +38 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-footnote.scss +8 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-highlighted.scss +8 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-image.scss +244 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-quote.scss +72 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-separator.scss +33 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-table.scss +116 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-block-video.scss +28 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-heading.scss +45 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-links.scss +21 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-list.scss +960 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-paragraph.scss +22 -0
- package/src/scss/global-content/_global-mixins/blocks/_content-utilities.scss +35 -0
- package/src/scss/global-content/_global-mixins/blocks/_content.scss +14 -0
- package/src/scss/global-content/_global-mixins/helpers/_class.scss +11 -0
- package/src/scss/global-content/_global-mixins/helpers/_helpers.scss +1 -0
- package/src/scss/global-content/_global-mixins/properties/_border.scss +18 -0
- package/src/scss/global-content/_global-mixins/properties/_custom.scss +51 -0
- package/src/scss/global-content/_global-mixins/properties/_font.scss +60 -0
- package/src/scss/global-content/_global-mixins/properties/_media.scss +188 -0
- package/src/scss/global-content/_global-mixins/properties/_properties.scss +3 -0
- package/src/scss/global-content/_library.scss +2 -0
- package/src/scss/global-content/_sanity.scss +157 -0
- package/src/scss/global-content/_wordpress.scss +233 -0
- package/src/scss/index.scss +7 -0
- package/src/scss/sanity/index.scss +1 -0
- package/src/scss/sanity.scss +138 -0
- package/src/scss/wordpress/index.scss +1 -0
- package/src/scss/wp.scss +267 -0
- package/src/vite-env.d.ts +2 -0
- package/terrahq-wysiwyg-0.0.19.tgz +0 -0
- package/tsconfig.json +27 -0
- package/vite.config.js +39 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Table
|
|
2
|
+
|
|
3
|
+
Here are the styling options for a table.
|
|
4
|
+
|
|
5
|
+
## Editable options
|
|
6
|
+
|
|
7
|
+
### header-font-styles
|
|
8
|
+
|
|
9
|
+
This property sets the font styles for the table header.
|
|
10
|
+
|
|
11
|
+
The header-font-styles property accepts the text-related styling options listed [here](../properties/Font.md).
|
|
12
|
+
|
|
13
|
+
### header-cells-padding
|
|
14
|
+
|
|
15
|
+
This property sets the padding for the table header.
|
|
16
|
+
|
|
17
|
+
The value must be a numerical value expressed in any unit.
|
|
18
|
+
|
|
19
|
+
### header-border
|
|
20
|
+
|
|
21
|
+
This property sets the border for the table header.
|
|
22
|
+
|
|
23
|
+
The border property accepts the border styling options listed [here](../properties/Border.md).
|
|
24
|
+
|
|
25
|
+
### header-background
|
|
26
|
+
|
|
27
|
+
This property sets the background for the table header.
|
|
28
|
+
|
|
29
|
+
The possible values include:
|
|
30
|
+
|
|
31
|
+
- Transparent (transparent)
|
|
32
|
+
- A color name (red)
|
|
33
|
+
- Hexadecimal color (#ffffff)
|
|
34
|
+
- RGB color (rgb(255, 255, 255))
|
|
35
|
+
- RGBA color (rgba(255, 255, 255, .5))
|
|
36
|
+
- A variable referencing any of the above options ($color-a)
|
|
37
|
+
- A color within a variable map (map.get($color-options, a))
|
|
38
|
+
- Gradient (linear-gradient(90deg, map.get($color-options, i) 0%, map.get($color-options, h) 100%))
|
|
39
|
+
|
|
40
|
+
### body-font-styles
|
|
41
|
+
|
|
42
|
+
This property sets the font styles for the table body.
|
|
43
|
+
|
|
44
|
+
The body-font-styles property accepts the text-related styling options listed [here](../properties/Font.md).
|
|
45
|
+
|
|
46
|
+
### body-cells-padding
|
|
47
|
+
|
|
48
|
+
This property sets the padding for the table body.
|
|
49
|
+
|
|
50
|
+
The value must be a numerical value expressed in any unit.
|
|
51
|
+
|
|
52
|
+
### body-border
|
|
53
|
+
|
|
54
|
+
This property sets the border for the table body.
|
|
55
|
+
|
|
56
|
+
The border property accepts the border styling options listed [here](../properties/Border.md).
|
|
57
|
+
|
|
58
|
+
### body-background
|
|
59
|
+
|
|
60
|
+
This property sets the background for the table body.
|
|
61
|
+
|
|
62
|
+
The possible values include:
|
|
63
|
+
|
|
64
|
+
- Transparent (transparent)
|
|
65
|
+
- A color name (red)
|
|
66
|
+
- Hexadecimal color (#ffffff)
|
|
67
|
+
- RGB color (rgb(255, 255, 255))
|
|
68
|
+
- RGBA color (rgba(255, 255, 255, .5))
|
|
69
|
+
- A variable referencing any of the above options ($color-a)
|
|
70
|
+
- A color within a variable map (map.get($color-options, a))
|
|
71
|
+
- Gradient (linear-gradient(90deg, map.get($color-options, i) 0%, map.get($color-options, h) 100%))
|
|
72
|
+
|
|
73
|
+
### odd-rows-background
|
|
74
|
+
|
|
75
|
+
This property sets the background of the odd rows in the table body.
|
|
76
|
+
|
|
77
|
+
The possible values include:
|
|
78
|
+
|
|
79
|
+
- Transparent (transparent)
|
|
80
|
+
- A color name (red)
|
|
81
|
+
- Hexadecimal color (#ffffff)
|
|
82
|
+
- RGB color (rgb(255, 255, 255))
|
|
83
|
+
- RGBA color (rgba(255, 255, 255, .5))
|
|
84
|
+
- A variable referencing any of the above options ($color-a)
|
|
85
|
+
- A color within a variable map (map.get($color-options, a))
|
|
86
|
+
- Gradient (linear-gradient(90deg, map.get($color-options, i) 0%, map.get($color-options, h) 100%))
|
|
87
|
+
|
|
88
|
+
### odd-rows-text-color
|
|
89
|
+
|
|
90
|
+
This property sets the color of the odd rows in the table body.
|
|
91
|
+
|
|
92
|
+
The possible values include:
|
|
93
|
+
|
|
94
|
+
- Transparent (transparent)
|
|
95
|
+
- A color name (red)
|
|
96
|
+
- Hexadecimal color (#ffffff)
|
|
97
|
+
- RGB color (rgb(255, 255, 255))
|
|
98
|
+
- RGBA color (rgba(255, 255, 255, .5))
|
|
99
|
+
- A variable referencing any of the above options ($color-a)
|
|
100
|
+
- A color within a variable map (map.get($color-options, a))
|
|
101
|
+
|
|
102
|
+
### caption
|
|
103
|
+
|
|
104
|
+
This property sets the font styles for the table caption.
|
|
105
|
+
|
|
106
|
+
The caption property accepts the text-related styling options listed [here](../properties/Font.md).
|
|
107
|
+
|
|
108
|
+
### margin-bottom
|
|
109
|
+
|
|
110
|
+
This property sets the margin-bottom of the table.
|
|
111
|
+
|
|
112
|
+
The value must be a numerical value expressed in any unit.
|
|
113
|
+
|
|
114
|
+
## SCSS
|
|
115
|
+
|
|
116
|
+
```scss
|
|
117
|
+
.c--content-X {
|
|
118
|
+
@include make-content-modifier(
|
|
119
|
+
$table-options: (
|
|
120
|
+
"header-font-styles": (
|
|
121
|
+
"color": #638c1d,
|
|
122
|
+
"font-family": arial,
|
|
123
|
+
"font-size": 2rem,
|
|
124
|
+
"font-style": italic,
|
|
125
|
+
"font-weight": 400,
|
|
126
|
+
"letter-spacing": 1px,
|
|
127
|
+
"line-height": 1.5,
|
|
128
|
+
"max-lines": 3,
|
|
129
|
+
"text-decoration": underline,
|
|
130
|
+
"text-decoration-color": #000000,
|
|
131
|
+
"text-underline-position": under,
|
|
132
|
+
"className": f--font-a,
|
|
133
|
+
"margin-bottom": 32px,
|
|
134
|
+
"margin-bottom-before-lists": 24px,
|
|
135
|
+
"padding-top": 8px,
|
|
136
|
+
"text-align": center,
|
|
137
|
+
"bold-font-weight": 800,
|
|
138
|
+
),
|
|
139
|
+
"body-font-styles": (
|
|
140
|
+
"color": #638c1d,
|
|
141
|
+
"font-family": arial,
|
|
142
|
+
"font-size": 2rem,
|
|
143
|
+
"font-style": italic,
|
|
144
|
+
"font-weight": 400,
|
|
145
|
+
"letter-spacing": 1px,
|
|
146
|
+
"line-height": 1.5,
|
|
147
|
+
"max-lines": 3,
|
|
148
|
+
"text-decoration": underline,
|
|
149
|
+
"text-decoration-color": #000000,
|
|
150
|
+
"text-underline-position": under,
|
|
151
|
+
"className": f--font-a,
|
|
152
|
+
"margin-bottom": 32px,
|
|
153
|
+
"margin-bottom-before-lists": 24px,
|
|
154
|
+
"padding-top": 8px,
|
|
155
|
+
"text-align": center,
|
|
156
|
+
"bold-font-weight": 800,
|
|
157
|
+
),
|
|
158
|
+
"caption": (
|
|
159
|
+
"color": #638c1d,
|
|
160
|
+
"font-family": arial,
|
|
161
|
+
"font-size": 2rem,
|
|
162
|
+
"font-style": italic,
|
|
163
|
+
"font-weight": 400,
|
|
164
|
+
"letter-spacing": 1px,
|
|
165
|
+
"line-height": 1.5,
|
|
166
|
+
"max-lines": 3,
|
|
167
|
+
"text-decoration": underline,
|
|
168
|
+
"text-decoration-color": #000000,
|
|
169
|
+
"text-underline-position": under,
|
|
170
|
+
"className": f--font-a,
|
|
171
|
+
"margin-bottom": 32px,
|
|
172
|
+
"margin-bottom-before-lists": 24px,
|
|
173
|
+
"padding-top": 8px,
|
|
174
|
+
"text-align": center,
|
|
175
|
+
"bold-font-weight": 800,
|
|
176
|
+
),
|
|
177
|
+
"margin-bottom": $measure * 4,
|
|
178
|
+
"header-cells-padding": $measure * 2,
|
|
179
|
+
"body-cells-padding": $measure $measure * 2,
|
|
180
|
+
"header-border": (
|
|
181
|
+
"border-radius": 1px,
|
|
182
|
+
"border-width": 1px,
|
|
183
|
+
"border-style": solid,
|
|
184
|
+
"border-color": map.get($color-options, a),
|
|
185
|
+
),
|
|
186
|
+
"header-background": map.get($color-options, a),
|
|
187
|
+
"body-border": (
|
|
188
|
+
"border-radius": 1px,
|
|
189
|
+
"border-width": 1px,
|
|
190
|
+
"border-style": solid,
|
|
191
|
+
"border-color": map.get($color-options, a),
|
|
192
|
+
),
|
|
193
|
+
"body-background": map.get($color-options, a),
|
|
194
|
+
"odd-rows-background": map.get($color-options, c),
|
|
195
|
+
"odd-rows-text-color": map.get($color-options, d),
|
|
196
|
+
)
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Utilities
|
|
2
|
+
|
|
3
|
+
Here are the styling options for utilities.
|
|
4
|
+
|
|
5
|
+
## Editable options
|
|
6
|
+
|
|
7
|
+
### media-text-aligned-margin-x
|
|
8
|
+
|
|
9
|
+
This property sets the margin on X (left or right) of the media that is aligned with text.
|
|
10
|
+
|
|
11
|
+
The value must be a numerical value expressed in any unit.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## SCSS
|
|
15
|
+
|
|
16
|
+
```scss
|
|
17
|
+
.c--content-X {
|
|
18
|
+
@include make-content-modifier (
|
|
19
|
+
$utilities-options: (
|
|
20
|
+
"media-text-aligned-margin-x": 24px
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Video
|
|
2
|
+
|
|
3
|
+
Here are the styling options for a video.
|
|
4
|
+
|
|
5
|
+
## Editable options
|
|
6
|
+
|
|
7
|
+
### margin-bottom
|
|
8
|
+
|
|
9
|
+
This property sets the margin-bottom of the video.
|
|
10
|
+
|
|
11
|
+
The value must be a numerical value expressed in any unit.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## SCSS
|
|
15
|
+
|
|
16
|
+
```scss
|
|
17
|
+
.c--content-X {
|
|
18
|
+
@include make-content-modifier (
|
|
19
|
+
$video-options: (
|
|
20
|
+
"margin-bottom": $measure*4,
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
```
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Border Options
|
|
2
|
+
|
|
3
|
+
These properties are used to style the border of the blocks. If you want different styles for each border, you can achieve that by adding multiple values separated by spaces.
|
|
4
|
+
|
|
5
|
+
## Editable Variables
|
|
6
|
+
|
|
7
|
+
### border-color
|
|
8
|
+
|
|
9
|
+
This property is used to set the border color.
|
|
10
|
+
|
|
11
|
+
Possible values include:
|
|
12
|
+
|
|
13
|
+
- Transparent (transparent)
|
|
14
|
+
- Color name (red)
|
|
15
|
+
- Hexadecimal color (#ffffff)
|
|
16
|
+
- RGB color (rgb(255, 255, 255))
|
|
17
|
+
- RGBA color (rgba(255, 255, 255, .5))
|
|
18
|
+
- A variable referencing any of the above options ($color-a)
|
|
19
|
+
- A color within a variable map (map.get($color-options, a))
|
|
20
|
+
|
|
21
|
+
### border-radius
|
|
22
|
+
|
|
23
|
+
Sets the border-radius for the component.
|
|
24
|
+
|
|
25
|
+
The value must be a numerical value expressed in any unit.
|
|
26
|
+
|
|
27
|
+
### border-style
|
|
28
|
+
|
|
29
|
+
Sets the style of the border for the component.
|
|
30
|
+
|
|
31
|
+
Values can include those accepted by the CSS 'border-style' property, such as 'solid,' 'dotted,' 'double,' and so on.
|
|
32
|
+
|
|
33
|
+
### border-width
|
|
34
|
+
|
|
35
|
+
Sets the border-width for the component.
|
|
36
|
+
|
|
37
|
+
The value must be a numerical value expressed in any unit.
|
|
38
|
+
|
|
39
|
+
## SCSS
|
|
40
|
+
|
|
41
|
+
```scss
|
|
42
|
+
.c--content-X {
|
|
43
|
+
@include make-content-modifier(
|
|
44
|
+
$border-options: (
|
|
45
|
+
"border-color": #f3f3f3,
|
|
46
|
+
"border-radius": $g-measure * 4,
|
|
47
|
+
"border-width": 2px,
|
|
48
|
+
"border-style": solid,
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Custom Options
|
|
2
|
+
This option is used when the content does not offer the specific functionality you are looking for. It serves as a way to add custom CSS code or set the same styles as another class existing in the project to the content or any of its elements.
|
|
3
|
+
|
|
4
|
+
## Full-Content Styles
|
|
5
|
+
If you wish to apply styles to the content, specify 'parent' as the target element and add the desired CSS property along with its value. To apply the same styles as an existing class in the project, use 'class' as the property.
|
|
6
|
+
|
|
7
|
+
Here's an example of styling the content:
|
|
8
|
+
|
|
9
|
+
```scss
|
|
10
|
+
.c--content-X {
|
|
11
|
+
@include make-content-modifier(
|
|
12
|
+
$custom-options: (
|
|
13
|
+
"parent": (
|
|
14
|
+
"class": f--background-b,
|
|
15
|
+
"width": 80%,
|
|
16
|
+
),
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Block Styles
|
|
23
|
+
If you wish to apply styles to a block inside the content, specify its class as the target element and add the desired CSS property along with its value. To apply the same styles as an existing class in the project, use 'class' as the property.
|
|
24
|
+
|
|
25
|
+
Here's an example of styling a block inside the content:
|
|
26
|
+
|
|
27
|
+
```scss
|
|
28
|
+
.c--content-X {
|
|
29
|
+
@include make-content-modifier(
|
|
30
|
+
$custom-options: (
|
|
31
|
+
"figure.wp-block-image": (
|
|
32
|
+
"class": f--background-a,
|
|
33
|
+
"max-width": 300px,
|
|
34
|
+
),
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## SCSS
|
|
41
|
+
```scss
|
|
42
|
+
.c--content-X {
|
|
43
|
+
@include make-content-modifier(
|
|
44
|
+
$custom-options: (
|
|
45
|
+
"parent": (
|
|
46
|
+
"border": 4px solid #000000,
|
|
47
|
+
),
|
|
48
|
+
"figure.wp-block-image": (
|
|
49
|
+
"class": f--color-b,
|
|
50
|
+
),
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
```
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Font Options
|
|
2
|
+
|
|
3
|
+
These properties are used to style the text across all blocks.
|
|
4
|
+
|
|
5
|
+
## Editable Variables
|
|
6
|
+
|
|
7
|
+
### color
|
|
8
|
+
|
|
9
|
+
This property set the text color.
|
|
10
|
+
|
|
11
|
+
Possible values include:
|
|
12
|
+
|
|
13
|
+
- Transparent (transparent)
|
|
14
|
+
- Color name (red)
|
|
15
|
+
- Hexadecimal color (#ffffff)
|
|
16
|
+
- RGB color (rgb(255, 255, 255))
|
|
17
|
+
- RGBA color (rgba(255, 255, 255, .5))
|
|
18
|
+
- A variable referencing any of the above options ($color-a)
|
|
19
|
+
- A color within a variable map (map.get($color-options, a))
|
|
20
|
+
|
|
21
|
+
### font-family
|
|
22
|
+
|
|
23
|
+
This property set the text font family.
|
|
24
|
+
|
|
25
|
+
The value can be a font-family or a list of them, for example: "font-family": "'Instrument Sans', Arial, sans-serif".
|
|
26
|
+
|
|
27
|
+
### font-size
|
|
28
|
+
|
|
29
|
+
This property set the size of the font.
|
|
30
|
+
|
|
31
|
+
The value must be a numerical value expressed in any unit.
|
|
32
|
+
|
|
33
|
+
### font-style
|
|
34
|
+
|
|
35
|
+
This property set the style of the font, if it's in italic, etc.
|
|
36
|
+
|
|
37
|
+
Values can include those accepted by the CSS 'font-style' property.
|
|
38
|
+
|
|
39
|
+
### font-weight
|
|
40
|
+
|
|
41
|
+
This property set the weight of the font.
|
|
42
|
+
|
|
43
|
+
Values can include those accepted by the CSS 'font-weight' property.
|
|
44
|
+
|
|
45
|
+
### letter-spacing
|
|
46
|
+
|
|
47
|
+
This property set the spacinc between each letters.
|
|
48
|
+
|
|
49
|
+
The value must be a numerical value expressed in any unit or those accepted by the CSS 'letter-spacing' property.
|
|
50
|
+
|
|
51
|
+
### line-height
|
|
52
|
+
|
|
53
|
+
This property set the height of the line.
|
|
54
|
+
|
|
55
|
+
The value must be a numerical value expressed in any unit or without unit.
|
|
56
|
+
|
|
57
|
+
### max-lines
|
|
58
|
+
|
|
59
|
+
This property set a maximum number of lines for the text. When we use it and the text exceed these lines, there'll be added "..." and the rest of text will not be shown.
|
|
60
|
+
|
|
61
|
+
The value must be a numerical value without unit.
|
|
62
|
+
|
|
63
|
+
### text-decoration
|
|
64
|
+
|
|
65
|
+
This property set if we want any decoration in the text.
|
|
66
|
+
|
|
67
|
+
Values can include those accepted by the CSS 'text-decoration' property.
|
|
68
|
+
|
|
69
|
+
### text-decoration-color
|
|
70
|
+
|
|
71
|
+
This property set the color of the text decoration. It'll only be notticeable if we set any text-decoration value.
|
|
72
|
+
|
|
73
|
+
Possible values include:
|
|
74
|
+
|
|
75
|
+
- Transparent (transparent)
|
|
76
|
+
- Color name (red)
|
|
77
|
+
- Hexadecimal color (#ffffff)
|
|
78
|
+
- RGB color (rgb(255, 255, 255))
|
|
79
|
+
- RGBA color (rgba(255, 255, 255, .5))
|
|
80
|
+
- A variable referencing any of the above options ($color-a)
|
|
81
|
+
- A color within a variable map (map.get($color-options, a))
|
|
82
|
+
|
|
83
|
+
### text-underline-position
|
|
84
|
+
|
|
85
|
+
This property set the position of the line if we set "text-decoration: undelrine".
|
|
86
|
+
|
|
87
|
+
Values can include those accepted by the CSS 'text-underline-position' property.
|
|
88
|
+
|
|
89
|
+
### className
|
|
90
|
+
|
|
91
|
+
This property is used to apply styles from another existing class in the project. That class may include the font-family, font-size, line-height, button styles, and more.
|
|
92
|
+
|
|
93
|
+
The value must be a class that exists and is imported in the stylesheet.
|
|
94
|
+
|
|
95
|
+
### margin-bottom
|
|
96
|
+
|
|
97
|
+
This property sets the margin-bottom of the styled text.
|
|
98
|
+
|
|
99
|
+
The value must be a numerical value expressed in any unit.
|
|
100
|
+
|
|
101
|
+
### margin-bottom-before-lists
|
|
102
|
+
|
|
103
|
+
This property sets the margin-bottom of the styled text if the next block is a list. It's normally used for paragraphs.
|
|
104
|
+
|
|
105
|
+
The value must be a numerical value expressed in any unit.
|
|
106
|
+
|
|
107
|
+
### padding-top
|
|
108
|
+
|
|
109
|
+
This property sets the padding-top of the styled text.
|
|
110
|
+
|
|
111
|
+
The value must be a numerical value expressed in any unit.
|
|
112
|
+
|
|
113
|
+
### text-align
|
|
114
|
+
|
|
115
|
+
Used to vertically align text.
|
|
116
|
+
|
|
117
|
+
The value for this property must be 'left,' 'center,' or 'right'.
|
|
118
|
+
|
|
119
|
+
### bold-font-weight
|
|
120
|
+
|
|
121
|
+
This property sets the weight of the font when we set it to bold in the backend.
|
|
122
|
+
|
|
123
|
+
Values can include those accepted by the CSS 'font-weight' property.
|
|
124
|
+
|
|
125
|
+
## SCSS
|
|
126
|
+
|
|
127
|
+
```scss
|
|
128
|
+
.c--content-X {
|
|
129
|
+
@include make-content-modifier(
|
|
130
|
+
$font-options: (
|
|
131
|
+
"color": #638c1d,
|
|
132
|
+
"font-family": arial,
|
|
133
|
+
"font-size": 2rem,
|
|
134
|
+
"font-style": italic,
|
|
135
|
+
"font-weight": 400,
|
|
136
|
+
"letter-spacing": 1px,
|
|
137
|
+
"line-height": 1.5,
|
|
138
|
+
"max-lines": 3,
|
|
139
|
+
"text-decoration": underline,
|
|
140
|
+
"text-decoration-color": #000000,
|
|
141
|
+
"text-underline-position": under,
|
|
142
|
+
"className": f--font-a,
|
|
143
|
+
"margin-bottom": 32px,
|
|
144
|
+
"margin-bottom-before-lists": 24px,
|
|
145
|
+
"padding-top": 8px,
|
|
146
|
+
"text-align": center,
|
|
147
|
+
"bold-font-weight": 800,
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
```
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="720" height="595" viewBox="0 0 720 595" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g style="mix-blend-mode:soft-light" opacity="0.59">
|
|
3
|
+
<path d="M0.125256 782.091C0.125256 758.797 0.548007 735.502 0.125254 712.208C-0.297499 690.748 7.03021 677.542 21.8265 667.821C104.263 613.896 186.277 559.053 268.432 504.394C355.801 446.434 443.029 388.29 530.398 330.33C541.389 322.993 550.408 314.556 550.267 296.581C550.126 278.973 541.107 270.168 530.257 263.015C380.039 163.419 229.962 63.6387 79.7436 -36.1412C60.0151 -49.3474 40.4276 -62.9204 20.2764 -75.3929C6.32559 -84.0136 0.125227 -97.2197 0.266144 -117.029C0.547977 -166.185 -0.0156946 -215.342 0.266139 -264.314C0.547973 -292.928 11.6804 -301.365 31.5498 -288.159C113.705 -233.683 195.86 -178.841 278.014 -124.366C424.709 -26.9702 571.404 70.6085 718.1 168.004C765.871 199.736 813.642 231.467 861.413 263.015C872.263 270.168 881 278.789 881 296.948C881 315.106 871.981 323.176 860.99 330.33C585.073 513.749 309.439 696.984 33.6636 880.403C10.4122 895.811 0.407095 887.924 0.125259 853.808C-0.156577 829.963 0.125257 805.935 0.125256 782.091Z" fill="#FCFCFC"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
package/src/js/main.ts
ADDED