@wix/thunderbolt-common-css 1.2.0 → 1.4.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/thunderbolt-common-css",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"main": "dist/index.css",
|
|
6
6
|
"files": [
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"falconPackageHash": "
|
|
39
|
+
"falconPackageHash": "fb921dfb7d01d8705ea80e15adb78f1c5f15ae53a606adf60268f863"
|
|
40
40
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@keyframes slide-horizontal-new {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateX(100%);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@keyframes slide-horizontal-old {
|
|
8
|
+
80% {
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
to {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
transform: translateX(-100%);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@keyframes slide-vertical-new {
|
|
18
|
+
from {
|
|
19
|
+
transform: translateY(-100%);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes slide-vertical-old {
|
|
24
|
+
80% {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
}
|
|
27
|
+
to {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
transform: translateY(100%);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes out-in-new {
|
|
34
|
+
from {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes out-in-old {
|
|
40
|
+
to {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
$easeQuintIn: cubic-bezier(0.64, 0, 0.78, 0);
|
|
46
|
+
$easeQuintOut: cubic-bezier(0.22, 1, 0.36, 1);
|
|
47
|
+
$easeQuintInOut: cubic-bezier(0.83, 0, 0.17, 1);
|
|
48
|
+
|
|
49
|
+
// disable the default cross fade view transition
|
|
50
|
+
:root:active-view-transition {
|
|
51
|
+
view-transition-name: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// disable default stylesheet rule, allow clicks on the non transitioning elements (i.e. menu) during transition
|
|
55
|
+
::view-transition {
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:root:active-view-transition::view-transition-old(page-group),
|
|
60
|
+
:root:active-view-transition::view-transition-new(page-group) {
|
|
61
|
+
pointer-events: all;
|
|
62
|
+
cursor: wait;
|
|
63
|
+
animation-duration: 600ms; // Change from the default CrossFade view-transition
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:root:active-view-transition-type(SlideHorizontal)::view-transition-old(page-group) {
|
|
67
|
+
mix-blend-mode: normal;
|
|
68
|
+
animation: slide-horizontal-old 600ms $easeQuintInOut forwards;
|
|
69
|
+
}
|
|
70
|
+
:root:active-view-transition-type(SlideHorizontal)::view-transition-new(page-group) {
|
|
71
|
+
mix-blend-mode: normal;
|
|
72
|
+
animation: slide-horizontal-new 600ms $easeQuintInOut backwards;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:root:active-view-transition-type(SlideVertical)::view-transition-old(page-group) {
|
|
76
|
+
mix-blend-mode: normal;
|
|
77
|
+
animation: slide-vertical-old 600ms $easeQuintInOut forwards;
|
|
78
|
+
}
|
|
79
|
+
:root:active-view-transition-type(SlideVertical)::view-transition-new(page-group) {
|
|
80
|
+
mix-blend-mode: normal;
|
|
81
|
+
animation: slide-vertical-new 600ms $easeQuintInOut backwards;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:root:active-view-transition-type(OutIn)::view-transition-old(page-group) {
|
|
85
|
+
animation: out-in-old 350ms $easeQuintOut forwards;
|
|
86
|
+
}
|
|
87
|
+
:root:active-view-transition-type(OutIn)::view-transition-new(page-group) {
|
|
88
|
+
animation: out-in-new 350ms 350ms $easeQuintIn backwards;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (prefers-reduced-motion: reduce) {
|
|
92
|
+
::view-transition-group(*),
|
|
93
|
+
::view-transition-old(*),
|
|
94
|
+
::view-transition-new(*) {
|
|
95
|
+
animation: none !important;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@import "./assets/scss/view-transitions.scss";
|
|
2
|
+
|
|
3
|
+
/* Global reset rules: */
|
|
4
|
+
|
|
5
|
+
html,
|
|
6
|
+
body {
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: 0;
|
|
10
|
+
outline: 0;
|
|
11
|
+
vertical-align: baseline;
|
|
12
|
+
background: transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body {
|
|
16
|
+
font-size: 10px;
|
|
17
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
18
|
+
--scrollbar-width: 0px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// *
|
|
22
|
+
// * Set body and site structure to a minimum height of 100%
|
|
23
|
+
// * this causes the body to be smaller than it's content, which means that when scrolling it looks like the content is out of body.
|
|
24
|
+
// *
|
|
25
|
+
html,
|
|
26
|
+
body {
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// *************************************
|
|
31
|
+
// * Body overflow settings, BE CAREFUL WHEN CHANGING THIS
|
|
32
|
+
// *
|
|
33
|
+
|
|
34
|
+
// When in Public Viewer Mode
|
|
35
|
+
body {
|
|
36
|
+
overflow-x: auto;
|
|
37
|
+
overflow-y: scroll;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Global root rules: */
|
|
41
|
+
|
|
42
|
+
body:not(.responsive) {
|
|
43
|
+
#site-root {
|
|
44
|
+
width: 100%;
|
|
45
|
+
min-width: var(--site-width);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
body:not([data-js-loaded]) [data-hide-prejs] {
|
|
50
|
+
visibility: hidden;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interact-element {
|
|
54
|
+
display: contents;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#SITE_CONTAINER {
|
|
58
|
+
position: relative;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:root {
|
|
62
|
+
--one-unit: 1vw;
|
|
63
|
+
--section-max-width: 9999px;
|
|
64
|
+
--spx-stopper-max: 9999px;
|
|
65
|
+
--spx-stopper-min: 0px;
|
|
66
|
+
--browser-zoom: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// We want to apply this only to Safari, using this hack which is supposed to work for at least Safari 13:
|
|
70
|
+
// https://caniuse.com/?search=stroke-color
|
|
71
|
+
// Was tested on Dec 2023 for Safari 17, iOS Safari 17, Chrome 120, firefox 120
|
|
72
|
+
// (@see same usage in editor elements TextMask)
|
|
73
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
|
|
74
|
+
:root {
|
|
75
|
+
--safari-sticky-fix: opacity;
|
|
76
|
+
--experimental-safari-sticky-fix: translateZ(0);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@supports (container-type:inline-size) {
|
|
81
|
+
:root {
|
|
82
|
+
--one-unit: 1cqw;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Global styles for old Hoverbox migration
|
|
87
|
+
[id^="oldHoverBox-"] {
|
|
88
|
+
transition: opacity 0.5s ease, visibility 0.5s ease;
|
|
89
|
+
mix-blend-mode: plus-lighter;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-mesh-id$="inlineContent-gridContainer"]:has(> [id^="oldHoverBox-"]) {
|
|
93
|
+
isolation: isolate;
|
|
94
|
+
}
|