@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,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,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
|
+
}
|