@gem-sdk/styles 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 +1 -0
- package/dist/base.css +90 -0
- package/dist/base.min.css +1 -0
- package/dist/builder.css +102 -0
- package/dist/builder.min.css +1 -0
- package/dist/utility.css +6034 -0
- package/dist/utility.min.css +1 -0
- package/package.json +47 -0
- package/src/css/all.css +98 -0
- package/src/css/builds/base.css +93 -0
- package/src/css/builds/builder.css +96 -0
- package/src/css/builds/utility.css +6 -0
- package/src/css/helpers/_background.css +15 -0
- package/src/css/helpers/_layout.css +23 -0
- package/src/css/helpers/_position.css +40 -0
- package/src/css/helpers/_shadows.css +61 -0
- package/src/css/helpers/_spacing.css +21 -0
- package/src/css/helpers/_transform.css +36 -0
- package/src/css/helpers/_typography.css +54 -0
- package/src/css/medias.css +2 -0
- package/src/css/mixins.css +133 -0
- package/src/css/utilities/_background.css +22 -0
- package/src/css/utilities/_border.css +21 -0
- package/src/css/utilities/_flex.css +12 -0
- package/src/css/utilities/_grid.css +15 -0
- package/src/css/utilities/_interact.css +8 -0
- package/src/css/utilities/_layout.css +12 -0
- package/src/css/utilities/_misc.css +12 -0
- package/src/css/utilities/_overflow.css +3 -0
- package/src/css/utilities/_sizing.css +7 -0
- package/src/css/utilities/_spacing.css +13 -0
- package/src/css/utilities/_transform.css +4 -0
- package/src/css/utilities/_transition.css +6 -0
- package/src/css/utilities/_typography.css +33 -0
- package/src/css/utilities/all.css +113 -0
- package/src/css/variables.css +1 -0
- package/src/index.js +5 -0
- package/src/plugins/animation.js +109 -0
- package/src/plugins/components.js +59 -0
- package/src/plugins/contain-intrinsic-size.js +34 -0
- package/src/plugins/custom-variants.js +12 -0
- package/src/plugins/heading.js +32 -0
- package/src/plugins/size.js +20 -0
- package/src/plugins/typography.js +97 -0
- package/src/preset.js +130 -0
- package/src/properties.js +730 -0
- package/types/common.d.ts +11 -0
- package/types/globals.d.ts +2671 -0
- package/types/index.d.ts +9 -0
- package/types/types.d.ts +100 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# CSS Utility
|
package/dist/base.css
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
@layer base {
|
|
5
|
+
html {
|
|
6
|
+
-webkit-tap-highlight-color: transparent;
|
|
7
|
+
}
|
|
8
|
+
a {
|
|
9
|
+
@apply text-g-brand underline;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
@layer components {
|
|
13
|
+
#__next {
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.wrapper {
|
|
18
|
+
width: 100%;
|
|
19
|
+
padding-left: var(--g-ct-p);
|
|
20
|
+
padding-right: var(--g-ct-p);
|
|
21
|
+
margin-left: auto;
|
|
22
|
+
margin-right: auto;
|
|
23
|
+
max-width: var(--g-ct-w, 1200px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.gem-slider:not([data-keen-slider-disabled]) {
|
|
27
|
+
align-content: flex-start;
|
|
28
|
+
display: flex;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
position: relative;
|
|
31
|
+
-webkit-user-select: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
-webkit-touch-callout: none;
|
|
34
|
+
-khtml-user-select: none;
|
|
35
|
+
touch-action: pan-y;
|
|
36
|
+
-webkit-tap-highlight-color: transparent;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.gem-slider:not([data-keen-slider-disabled]) .gem-slider-item {
|
|
41
|
+
position: relative;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
width: 100%;
|
|
44
|
+
min-height: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.gem-slider:not([data-keen-slider-disabled])[data-keen-slider-reverse] {
|
|
48
|
+
flex-direction: row-reverse;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.gem-slider:not([data-keen-slider-disabled])[data-keen-slider-v] {
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-keen-slider-moves] * {
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@layer utilities {
|
|
60
|
+
.pb-safe {
|
|
61
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
62
|
+
}
|
|
63
|
+
.pt-safe {
|
|
64
|
+
padding-top: env(safe-area-inset-top);
|
|
65
|
+
}
|
|
66
|
+
.pl-safe {
|
|
67
|
+
padding-left: env(safe-area-inset-left);
|
|
68
|
+
}
|
|
69
|
+
.pr-safe {
|
|
70
|
+
padding-right: env(safe-area-inset-right);
|
|
71
|
+
}
|
|
72
|
+
.p-safe {
|
|
73
|
+
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
|
|
74
|
+
env(safe-area-inset-left);
|
|
75
|
+
}
|
|
76
|
+
.px-safe {
|
|
77
|
+
padding-left: env(safe-area-inset-left);
|
|
78
|
+
padding-right: env(safe-area-inset-right);
|
|
79
|
+
}
|
|
80
|
+
.py-safe {
|
|
81
|
+
padding-top: env(safe-area-inset-top);
|
|
82
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
83
|
+
}
|
|
84
|
+
.h-safe {
|
|
85
|
+
height: calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)));
|
|
86
|
+
}
|
|
87
|
+
.min-h-safe {
|
|
88
|
+
min-height: calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@tailwind base;@tailwind components;@tailwind utilities;@layer base{html{-webkit-tap-highlight-color:transparent}a{@apply text-g-brand underline}}@layer components{#__next{height:100%}.wrapper{margin-left:auto;margin-right:auto;max-width:var(--g-ct-w,1200px);padding-left:var(--g-ct-p);padding-right:var(--g-ct-p);width:100%}.gem-slider:not([data-keen-slider-disabled]){-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;align-content:flex-start;display:flex;overflow:hidden;position:relative;touch-action:pan-y;-webkit-user-select:none;user-select:none;-khtml-user-select:none;width:100%}.gem-slider:not([data-keen-slider-disabled]) .gem-slider-item{min-height:100%;overflow:hidden;position:relative;width:100%}.gem-slider:not([data-keen-slider-disabled])[data-keen-slider-reverse]{flex-direction:row-reverse}.gem-slider:not([data-keen-slider-disabled])[data-keen-slider-v]{flex-wrap:wrap}[data-keen-slider-moves] *{pointer-events:none}}@layer utilities{.pb-safe{padding-bottom:env(safe-area-inset-bottom)}.pt-safe{padding-top:env(safe-area-inset-top)}.pl-safe{padding-left:env(safe-area-inset-left)}.pr-safe{padding-right:env(safe-area-inset-right)}.p-safe{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.px-safe{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.py-safe{padding-bottom:env(safe-area-inset-bottom);padding-top:env(safe-area-inset-top)}.h-safe{height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.min-h-safe{min-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
|
package/dist/builder.css
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
[data-slot='children'] {
|
|
2
|
+
display: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.builder [data-slot='children'] {
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
display: block;
|
|
9
|
+
height: 50px;
|
|
10
|
+
background: #f2f3f4;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.builder [data-slot='children']:hover {
|
|
14
|
+
background: #e5e6e8;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.builder [data-slot='children']:after {
|
|
18
|
+
content: 'Drop element here';
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
-webkit-transform: translate(-50%, -50%);
|
|
23
|
+
transform: translate(-50%, -50%);
|
|
24
|
+
text-align: center;
|
|
25
|
+
color: #aaa;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
display: -webkit-box;
|
|
31
|
+
-webkit-line-clamp: 2;
|
|
32
|
+
line-clamp: 2;
|
|
33
|
+
-webkit-box-orient: vertical;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.builder [data-slot='children'] .drag-placeholder {
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.drag-placeholder {
|
|
41
|
+
display: none;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#storefront {
|
|
46
|
+
position: relative;
|
|
47
|
+
z-index: 20;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#visual-content {
|
|
51
|
+
display: none;
|
|
52
|
+
position: absolute;
|
|
53
|
+
z-index: 50;
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#visual-content .fake-placeholder {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0px;
|
|
63
|
+
left: 0px;
|
|
64
|
+
z-index: 10;
|
|
65
|
+
background: transparent;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#visual-content .fake-placeholder.fake-placeholder-slot {
|
|
69
|
+
background: transparent;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#visual-content .fake-placeholder.has-section {
|
|
73
|
+
background-color: transparent !important;
|
|
74
|
+
border: none !important;
|
|
75
|
+
|
|
76
|
+
background-image: url('//d1um8515vdn9kb.cloudfront.net/images/background-pattern.png'),
|
|
77
|
+
linear-gradient(0deg, #fdb913, #fdb913);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
#visual-content .fake-placeholder.visual-placeholder {
|
|
81
|
+
z-index: 20;
|
|
82
|
+
border: 1px dashed #3c67ff;
|
|
83
|
+
border-radius: 3px;
|
|
84
|
+
background-color: #d8e1ff;
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
color: #3c67ff;
|
|
89
|
+
font-weight: 500;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
line-height: 150%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#visual-content .fake-placeholder.visual-placeholder.visual-placeholder-error {
|
|
95
|
+
background-image: url('//d1um8515vdn9kb.cloudfront.net/images/background-pattern.png'),
|
|
96
|
+
linear-gradient(0deg, #f44336, #f44336);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#visual-content .fake-placeholder.visual-placeholder-between-sections {
|
|
100
|
+
background-color: #3c67ff;
|
|
101
|
+
border: none;
|
|
102
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-slot=children]{display:none}.builder [data-slot=children]{background:#f2f3f4;display:block;height:50px;position:relative;width:100%}.builder [data-slot=children]:hover{background:#e5e6e8}.builder [data-slot=children]:after{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;color:#aaa;content:"Drop element here";display:-webkit-box;font-size:14px;font-weight:700;left:50%;overflow:hidden;position:absolute;text-align:center;text-overflow:ellipsis;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.builder [data-slot=children] .drag-placeholder{height:100%}.drag-placeholder{display:none;width:100%}#storefront{position:relative;z-index:20}#visual-content{display:none;height:100%;left:0;position:absolute;top:0;width:100%;z-index:50}#visual-content .fake-placeholder{background:transparent;left:0;position:absolute;top:0;z-index:10}#visual-content .fake-placeholder.fake-placeholder-slot{background:transparent}#visual-content .fake-placeholder.has-section{background-color:transparent!important;background-image:url(//d1um8515vdn9kb.cloudfront.net/images/background-pattern.png),linear-gradient(0deg,#fdb913,#fdb913);border:none!important}#visual-content .fake-placeholder.visual-placeholder{align-items:center;background-color:#d8e1ff;border:1px dashed #3c67ff;border-radius:3px;color:#3c67ff;display:flex;font-size:14px;font-weight:500;justify-content:center;line-height:150%;z-index:20}#visual-content .fake-placeholder.visual-placeholder.visual-placeholder-error{background-image:url(//d1um8515vdn9kb.cloudfront.net/images/background-pattern.png),linear-gradient(0deg,#f44336,#f44336)}#visual-content .fake-placeholder.visual-placeholder-between-sections{background-color:#3c67ff;border:none}
|