@stackflow/plugin-basic-ui 1.1.0 → 1.2.1

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.
@@ -1,13 +1,7 @@
1
1
  import { style } from "@vanilla-extract/css";
2
2
  import { recipe } from "@vanilla-extract/recipes";
3
3
 
4
- import {
5
- android,
6
- cupertino,
7
- globalVars,
8
- rootAndroid,
9
- rootCupertino,
10
- } from "../basicUIPlugin.css";
4
+ import { android, cupertino, globalVars } from "../basicUIPlugin.css";
11
5
  import { f } from "../styles";
12
6
  import {
13
7
  background,
@@ -36,32 +30,21 @@ export const appBar = recipe({
36
30
  zIndex: vars.zIndexes.appBar,
37
31
  willChange: "transform, opacity",
38
32
  selectors: {
39
- [`
40
- ${cupertino} &,
41
- ${rootCupertino} &
42
- `]: {
33
+ [`${cupertino} &`]: {
43
34
  position: "absolute",
44
35
  },
45
- [`
46
- ${cupertino} ${exitActive} &,
47
- ${rootCupertino} ${exitActive} &
48
- `]: {
36
+ [`${cupertino} ${exitActive} &`]: {
49
37
  transform: "translate3d(100%, 0, 0)",
50
38
  transition: "0s",
51
39
  },
52
- [`
53
- ${android} &,
54
- ${rootAndroid} &
55
- `]: {
40
+ [`${android} &`]: {
56
41
  opacity: 0,
57
42
  transform: "translate3d(0, 10rem, 0)",
58
43
  transition: `transform ${vars.transitionDuration}, opacity ${vars.transitionDuration}`,
59
44
  },
60
45
  [`
61
46
  ${android} ${enterActive} &,
62
- ${rootAndroid} ${enterActive} &,
63
- ${android} ${enterDone} &,
64
- ${rootAndroid} ${enterDone} &
47
+ ${android} ${enterDone} &
65
48
  `]: {
66
49
  opacity: 1,
67
50
  transform: "translate3d(0, 0, 0)",
@@ -78,25 +61,17 @@ export const appBar = recipe({
78
61
  presentModalFullScreen: {
79
62
  true: {
80
63
  selectors: {
81
- [`
82
- ${cupertino} &,
83
- ${rootCupertino} &
84
- `]: {
64
+ [`${cupertino} &`]: {
85
65
  transform: "translate3d(0, 100vh, 0)",
86
66
  transition: `transform ${vars.transitionDuration}, opacity ${vars.transitionDuration}`,
87
67
  },
88
68
  [`
89
69
  ${cupertino} ${enterActive} &,
90
- ${rootCupertino} ${enterActive} &,
91
- ${cupertino} ${enterDone} &,
92
- ${rootCupertino} ${enterDone} &
70
+ ${cupertino} ${enterDone} &
93
71
  `]: {
94
72
  transform: "translate3d(0, 0, 0)",
95
73
  },
96
- [`
97
- ${cupertino} ${exitActive} &,
98
- ${rootCupertino} ${exitActive} &
99
- `]: {
74
+ [`${cupertino} ${exitActive} &`]: {
100
75
  transform: "translate3d(0, 100vh, 0)",
101
76
  transition: `transform ${vars.transitionDuration}, opacity ${vars.transitionDuration}`,
102
77
  },
@@ -158,10 +133,7 @@ export const centerMain = recipe({
158
133
  color: globalVars.appBar.textColor,
159
134
  transition: `height ${globalVars.appBar.heightTransitionDuration}`,
160
135
  selectors: {
161
- [`
162
- ${android} &,
163
- ${rootAndroid} &
164
- `]: {
136
+ [`${android} &`]: {
165
137
  width: "100%",
166
138
  justifyContent: "flex-start",
167
139
  paddingLeft: "1rem",
@@ -170,10 +142,7 @@ export const centerMain = recipe({
170
142
  fontWeight: "bold",
171
143
  boxSizing: "border-box",
172
144
  },
173
- [`
174
- ${cupertino} &,
175
- ${rootCupertino} &
176
- `]: {
145
+ [`${cupertino} &`]: {
177
146
  position: "absolute",
178
147
  display: "flex",
179
148
  alignItems: "center",
@@ -193,10 +162,7 @@ export const centerMain = recipe({
193
162
  hasLeft: {
194
163
  true: {
195
164
  selectors: {
196
- [`
197
- ${android} &,
198
- ${rootAndroid} &
199
- `]: {
165
+ [`${android} &`]: {
200
166
  paddingLeft: "0.375rem",
201
167
  },
202
168
  },
@@ -218,10 +184,7 @@ export const centerMainEdge = style([
218
184
  display: "none",
219
185
  width: vars.appBar.center.mainWidth,
220
186
  selectors: {
221
- [`
222
- ${cupertino} &,
223
- ${rootCupertino} &
224
- `]: {
187
+ [`${cupertino} &`]: {
225
188
  display: "block",
226
189
  },
227
190
  },
@@ -251,10 +214,7 @@ export const right = style([
251
214
  display: "none",
252
215
  },
253
216
  selectors: {
254
- [`
255
- ${android} &,
256
- ${rootAndroid} &
257
- `]: {
217
+ [`${android} &`]: {
258
218
  padding: "0 0.5rem 0 0",
259
219
  },
260
220
  },
@@ -1,13 +1,7 @@
1
1
  import { createThemeContract, style } from "@vanilla-extract/css";
2
2
  import { recipe } from "@vanilla-extract/recipes";
3
3
 
4
- import {
5
- android,
6
- cupertino,
7
- globalVars,
8
- rootAndroid,
9
- rootCupertino,
10
- } from "../basicUIPlugin.css";
4
+ import { android, cupertino, globalVars } from "../basicUIPlugin.css";
11
5
  import { f } from "../styles";
12
6
 
13
7
  export const vars = createThemeContract({
@@ -65,10 +59,7 @@ export const dim = style([
65
59
  zIndex: vars.zIndexes.dim,
66
60
  willChange: "opacity",
67
61
  selectors: {
68
- [`
69
- ${android} &,
70
- ${rootAndroid} &
71
- `]: {
62
+ [`${android} &`]: {
72
63
  height: "10rem",
73
64
  background: `linear-gradient(${globalVars.dimBackgroundColor}, rgba(0, 0, 0, 0))`,
74
65
  },
@@ -102,32 +93,22 @@ export const paper = recipe({
102
93
  zIndex: vars.zIndexes.paper,
103
94
  willChange: "transform",
104
95
  selectors: {
105
- [`
106
- ${cupertino} &,
107
- ${rootCupertino} &
108
- `]: {
96
+ [`${cupertino} &`]: {
109
97
  transform: "translate3d(100%, 0, 0)",
110
98
  },
111
99
  [`
112
100
  ${cupertino} ${enterActive} &,
113
- ${rootCupertino} ${enterActive} &,
114
- ${cupertino} ${enterDone} &,
115
- ${rootCupertino} ${enterDone} &
101
+ ${cupertino} ${enterDone} &
116
102
  `]: {
117
103
  transform: "translate3d(0, 0, 0)",
118
104
  },
119
- [`
120
- ${android} &,
121
- ${rootAndroid} &
122
- `]: {
105
+ [`${android} &`]: {
123
106
  opacity: 0,
124
107
  transform: "translate3d(0, 10rem, 0)",
125
108
  },
126
109
  [`
127
110
  ${android} ${enterActive} &,
128
- ${rootAndroid} ${enterActive} &,
129
- ${android} ${enterDone} &,
130
- ${rootAndroid} ${enterDone} &
111
+ ${android} ${enterDone} &
131
112
  `]: {
132
113
  opacity: 1,
133
114
  transform: "translate3d(0, 0, 0)",
@@ -151,10 +132,7 @@ export const paper = recipe({
151
132
  presentModalFullScreen: {
152
133
  true: {
153
134
  selectors: {
154
- [`
155
- ${cupertino} &,
156
- ${rootCupertino} &
157
- `]: {
135
+ [`${cupertino} &`]: {
158
136
  transform: "translate3d(0, 100%, 0)",
159
137
  },
160
138
  },