ywana-core8 0.1.63 → 0.1.65

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": "ywana-core8",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -10,6 +10,17 @@
10
10
  justify-content: center;
11
11
  background: rgba(77, 77, 77, 0.7);
12
12
  z-index: 100;
13
+
14
+ animation: overlay-fade-in 0.3s ease;
15
+ }
16
+
17
+ @keyframes overlay-fade-in {
18
+ from {
19
+ opacity: 0;
20
+ }
21
+ to {
22
+ opacity: 0.5;
23
+ }
13
24
  }
14
25
 
15
26
  .overlay.prompt {
@@ -36,6 +47,19 @@
36
47
  box-shadow: var(--shadow1);
37
48
  overflow: auto;
38
49
  border: solid 1px var(--divider-color);
50
+
51
+ animation: dialogFadeIn 0.3s ease;
52
+ }
53
+
54
+ @keyframes dialogFadeIn {
55
+ from {
56
+ opacity: 0;
57
+ transform: scale(0.95);
58
+ }
59
+ to {
60
+ opacity: 1;
61
+ transform: scale(1);
62
+ }
39
63
  }
40
64
 
41
65
  .dialog-panel > header {
package/src/site/site.css CHANGED
@@ -120,19 +120,22 @@
120
120
 
121
121
  .site-page-container {
122
122
  position: relative;
123
- transition: all 0.3s ease;
123
+ transition: all 0.3s ease-in-out;
124
124
  opacity: 1;
125
- transform: translateX(0);
125
+ }
126
+
127
+ .site-page-container.fullscreen {
128
+ position: static;
129
+ width: 100vw;
130
+ height: 100vh;
126
131
  }
127
132
 
128
133
  .site-page-container.page-out {
129
134
  opacity: 0;
130
- transform: translateX(-30px);
131
135
  }
132
136
 
133
137
  .site-page-container.page-in {
134
138
  opacity: 1;
135
- transform: translateX(0);
136
139
  }
137
140
 
138
141
  .site6>main {
package/src/site/site.js CHANGED
@@ -283,9 +283,10 @@ const SitePage = ({ children, init }) => {
283
283
 
284
284
  const allChildren = React.Children.toArray(children)
285
285
  const current = allChildren.find(child => child.props?.id === displayedPage)
286
+ const fullscreen = current?.props?.fullscreen
286
287
 
287
288
  return (
288
- <main className={`site-page-container ${isExiting ? 'page-out' : 'page-in'}`}>
289
+ <main className={`site-page-container ${isExiting ? 'page-out' : 'page-in'} ${fullscreen ? 'fullscreen' : ''}`}>
289
290
  {current}
290
291
  </main>
291
292
  )