@wix/thunderbolt-common-css 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/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@wix/thunderbolt-common-css",
3
+ "version": "1.0.0",
4
+ "license": "UNLICENSED",
5
+ "main": "dist/index.css",
6
+ "files": [
7
+ "dist",
8
+ "src"
9
+ ],
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org/",
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "lint": "echo 'No linting configured'",
16
+ "build": "echo 'No build configured'",
17
+ "test": "echo 'No tests configured'"
18
+ },
19
+ "devDependencies": {
20
+ "@wix/thunderbolt-app-reset-css": "^1.0.0",
21
+ "sass": "^1.84.0"
22
+ },
23
+ "publishUnscoped": false,
24
+ "wix": {
25
+ "artifact": {
26
+ "groupId": "com.wixpress.npm",
27
+ "artifactId": "thunderbolt-common-css",
28
+ "targets": {
29
+ "static": false,
30
+ "docker": false
31
+ }
32
+ },
33
+ "validations": {
34
+ "sourceOnly": [
35
+ "lint"
36
+ ]
37
+ }
38
+ },
39
+ "falconPackageHash": "2bdd3c6c540eefb149e67249c11d2001677aed632b967a1ecbb46ae0"
40
+ }
@@ -0,0 +1,95 @@
1
+ [data-mesh-id$="inlineContent"], [data-mesh-id$="centeredContent"], [data-mesh-id$="form"] {
2
+ position: relative;
3
+ pointer-events: none;
4
+ }
5
+ // To make sure overlaps and soap container does not block clicks on components underneath
6
+ [data-mesh-id$="-gridWrapper"], [data-mesh-id$="-rotated-wrapper"] {
7
+ pointer-events: none;
8
+ }
9
+ [data-mesh-id$="-gridContainer"] > *, [data-mesh-id$="-rotated-wrapper"] > *, [data-mesh-id$="inlineContent"] > :not([data-mesh-id$="-gridContainer"]) {
10
+ pointer-events: auto;
11
+ }
12
+
13
+ .device-mobile-optimized {
14
+ #masterPage.mesh-layout {
15
+ #SOSP_CONTAINER_CUSTOM_ID {
16
+ -ms-grid-row: 2;
17
+ grid-area: 2/1/3/2;
18
+ position: relative;
19
+ }
20
+ }
21
+ }
22
+
23
+ #masterPage.mesh-layout {
24
+ display: -ms-grid; // IE11 support
25
+ display: grid;
26
+ -ms-grid-rows: max-content max-content min-content max-content; // IE11 support
27
+ grid-template-rows: max-content max-content min-content max-content;
28
+ -ms-grid-columns: 100%; // IE11 support
29
+ grid-template-columns: 100%;
30
+ align-items: start;
31
+ justify-content: stretch;
32
+
33
+ #SITE_HEADER_WRAPPER, #SITE_HEADER-placeholder, #SOSP_CONTAINER_CUSTOM_ID[data-state~="mobileView"], #PAGES_CONTAINER,
34
+ #soapBeforePagesContainer, #soapAfterPagesContainer, #SITE_FOOTER_WRAPPER, #SITE_FOOTER-placeholder {
35
+ -ms-grid-column: 1;
36
+ -ms-grid-row-align: start;
37
+ -ms-grid-column-align: start;
38
+ }
39
+
40
+ #SITE_HEADER_WRAPPER, #SITE_HEADER-placeholder {
41
+ -ms-grid-row: 1;
42
+ grid-area: 1/1/2/2;
43
+ }
44
+
45
+ #PAGES_CONTAINER, #soapBeforePagesContainer, #soapAfterPagesContainer {
46
+ -ms-grid-row: 3;
47
+ grid-area: 3/1/4/2;
48
+ }
49
+ #soapBeforePagesContainer, #soapAfterPagesContainer {
50
+ width: 100%; // IE11 needs this
51
+ }
52
+ #PAGES_CONTAINER {
53
+ align-self: stretch;
54
+ }
55
+ main#PAGES_CONTAINER {
56
+ display: block; // IE11 - main element is not block
57
+ }
58
+ #SITE_FOOTER_WRAPPER, #SITE_FOOTER-placeholder {
59
+ -ms-grid-row: 4;
60
+ grid-area: 4/1/5/2;
61
+ }
62
+ [data-mesh-id=PAGES_CONTAINERcenteredContent], [data-mesh-id=PAGES_CONTAINERinlineContent] , #SITE_PAGES {
63
+ height: 100%;
64
+ }
65
+
66
+ &.desktop {
67
+ >* {
68
+ width: 100%;
69
+ }
70
+ }
71
+
72
+ #SITE_PAGES, #SITE_HEADER_WRAPPER, #SITE_FOOTER_WRAPPER , #PAGES_CONTAINER, #masterPageinlineContent {
73
+ position: relative;
74
+ }
75
+
76
+ // Controlled by the layout in one doc
77
+ &:not(.one-doc) {
78
+ #SITE_FOOTER, #SITE_HEADER {
79
+ position: relative;
80
+ }
81
+ }
82
+
83
+ #SITE_HEADER {
84
+ grid-area: 1/1/2/2;
85
+ }
86
+ #SITE_FOOTER {
87
+ grid-area: 4/1/5/2;
88
+ }
89
+
90
+ &.overflow-x-clip {
91
+ #SITE_HEADER, #SITE_FOOTER {
92
+ overflow-x: clip;
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,22 @@
1
+ .fullScreenOverlay {
2
+ z-index: 1005; // This value should be in correlation with the value of $zindex-full-screen-overlay in EE: https://github.com/wix-private/editor-elements/blob/900b1a7344e69b95e99e166c5abac9d901c53b32/packages/thunderbolt-elements/src/core/style/z-index.scss#L114
3
+ position: fixed;
4
+ left: 0;
5
+ top: -60px;
6
+ right: 0;
7
+ bottom: 0;
8
+ display: flex;
9
+ justify-content: center;
10
+ overflow-y: hidden;
11
+
12
+ > .fullScreenOverlayContent {
13
+ margin: 0 auto;
14
+ position: absolute;
15
+ right: 0;
16
+ top: 60px;
17
+ left: 0;
18
+ bottom: 0;
19
+ overflow: hidden;
20
+ transform: translateZ(0);
21
+ }
22
+ }
@@ -0,0 +1,32 @@
1
+ #site-root {
2
+ top: var(--wix-ads-height);
3
+ min-height: 100%;
4
+ position: relative;
5
+ margin: 0 auto;
6
+
7
+ img:not([src]) {
8
+ visibility: hidden;
9
+ }
10
+
11
+ // IE and Edge don't understand the difference between img and image in css selectors
12
+ // we render <image /> inside SVGs and they are hidden by the rule above and never shown
13
+ svg img:not([src]) {
14
+ visibility: visible;
15
+ }
16
+ }
17
+
18
+ .auto-generated-link {
19
+ color: inherit;
20
+ }
21
+
22
+ #SCROLL_TO_TOP {
23
+ height: 0;
24
+ }
25
+
26
+ #SCROLL_TO_BOTTOM {
27
+ height: 0;
28
+ }
29
+
30
+ .has-click-trigger {
31
+ cursor: pointer;
32
+ }
@@ -0,0 +1,67 @@
1
+ :root {
2
+ --wst-button-color-fill-primary: rgb(var(--color_48));
3
+ --wst-button-color-border-primary: rgb(var(--color_49));
4
+ --wst-button-color-text-primary: rgb(var(--color_50));
5
+ --wst-button-color-fill-primary-hover: rgb(var(--color_51));
6
+ --wst-button-color-border-primary-hover: rgb(var(--color_52));
7
+ --wst-button-color-text-primary-hover: rgb(var(--color_53));
8
+ --wst-button-color-fill-primary-disabled: rgb(var(--color_54));
9
+ --wst-button-color-border-primary-disabled: rgb(var(--color_55));
10
+ --wst-button-color-text-primary-disabled: rgb(var(--color_56));
11
+ --wst-button-color-fill-secondary: rgb(var(--color_57));
12
+ --wst-button-color-border-secondary: rgb(var(--color_58));
13
+ --wst-button-color-text-secondary: rgb(var(--color_59));
14
+ --wst-button-color-fill-secondary-hover: rgb(var(--color_60));
15
+ --wst-button-color-border-secondary-hover: rgb(var(--color_61));
16
+ --wst-button-color-text-secondary-hover: rgb(var(--color_62));
17
+ --wst-button-color-fill-secondary-disabled: rgb(var(--color_63));
18
+ --wst-button-color-border-secondary-disabled: rgb(var(--color_64));
19
+ --wst-button-color-text-secondary-disabled: rgb(var(--color_65));
20
+ --wst-color-fill-base-1: rgb(var(--color_36));
21
+ --wst-color-fill-base-2: rgb(var(--color_37));
22
+ --wst-color-fill-base-shade-1: rgb(var(--color_38));
23
+ --wst-color-fill-base-shade-2: rgb(var(--color_39));
24
+ --wst-color-fill-base-shade-3: rgb(var(--color_40));
25
+ --wst-color-fill-accent-1: rgb(var(--color_41));
26
+ --wst-color-fill-accent-2: rgb(var(--color_42));
27
+ --wst-color-fill-accent-3: rgb(var(--color_43));
28
+ --wst-color-fill-accent-4: rgb(var(--color_44));
29
+ --wst-color-fill-background-primary: rgb(var(--color_11));
30
+ --wst-color-fill-background-secondary: rgb(var(--color_12));
31
+ --wst-color-text-primary: rgb(var(--color_15));
32
+ --wst-color-text-secondary: rgb(var(--color_14));
33
+ --wst-color-action: rgb(var(--color_18));
34
+ --wst-color-disabled: rgb(var(--color_39));
35
+ --wst-color-title: rgb(var(--color_45));
36
+ --wst-color-subtitle: rgb(var(--color_46));
37
+ --wst-color-line: rgb(var(--color_47));
38
+ --wst-font-style-h2: var(--font_2);
39
+ --wst-font-style-h3: var(--font_3);
40
+ --wst-font-style-h4: var(--font_4);
41
+ --wst-font-style-h5: var(--font_5);
42
+ --wst-font-style-h6: var(--font_6);
43
+ --wst-font-style-body-large: var(--font_7);
44
+ --wst-font-style-body-medium: var(--font_8);
45
+ --wst-font-style-body-small: var(--font_9);
46
+ --wst-font-style-body-x-small: var(--font_10);
47
+ --wst-color-custom-1: rgb(var(--color_13));
48
+ --wst-color-custom-2: rgb(var(--color_16));
49
+ --wst-color-custom-3: rgb(var(--color_17));
50
+ --wst-color-custom-4: rgb(var(--color_19));
51
+ --wst-color-custom-5: rgb(var(--color_20));
52
+ --wst-color-custom-6: rgb(var(--color_21));
53
+ --wst-color-custom-7: rgb(var(--color_22));
54
+ --wst-color-custom-8: rgb(var(--color_23));
55
+ --wst-color-custom-9: rgb(var(--color_24));
56
+ --wst-color-custom-10: rgb(var(--color_25));
57
+ --wst-color-custom-11: rgb(var(--color_26));
58
+ --wst-color-custom-12: rgb(var(--color_27));
59
+ --wst-color-custom-13: rgb(var(--color_28));
60
+ --wst-color-custom-14: rgb(var(--color_29));
61
+ --wst-color-custom-15: rgb(var(--color_30));
62
+ --wst-color-custom-16: rgb(var(--color_31));
63
+ --wst-color-custom-17: rgb(var(--color_32));
64
+ --wst-color-custom-18: rgb(var(--color_33));
65
+ --wst-color-custom-19: rgb(var(--color_34));
66
+ --wst-color-custom-20: rgb(var(--color_35));
67
+ }
@@ -0,0 +1,8 @@
1
+ // For 3D Transforms Safari Workaround
2
+ [data-z-counter] {
3
+ z-index: 0;
4
+ }
5
+
6
+ [data-z-counter="0"] {
7
+ z-index: auto;
8
+ }
@@ -0,0 +1,4 @@
1
+ .wixSiteProperties {
2
+ -webkit-font-smoothing: antialiased;
3
+ -moz-osx-font-smoothing: grayscale;
4
+ }
@@ -0,0 +1,7 @@
1
+ @import '@wix/thunderbolt-app-reset-css';
2
+ @import './assets/scss/root_renderer.scss';
3
+ @import './assets/scss/mobile_renderer.scss'; // TODO load mobile css only when needed˜
4
+ @import './assets/scss/mesh.scss';
5
+ @import './assets/scss/transforms.scss';
6
+ @import './assets/scss/wixSites.scss';
7
+ @import './assets/scss/themeWiringVars.scss';