ywana-core8 0.0.290 → 0.0.293
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/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +14 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/site.css +14 -1
- package/src/site/site.js +6 -5
package/package.json
CHANGED
package/src/site/site.css
CHANGED
@@ -52,13 +52,26 @@
|
|
52
52
|
padding: .1rem;
|
53
53
|
}
|
54
54
|
|
55
|
+
.site6>menu>main>.section-title {
|
56
|
+
width: 100%;
|
57
|
+
font-size: .7rem;
|
58
|
+
font-weight: 400;
|
59
|
+
padding: .5rem .7rem;
|
60
|
+
}
|
61
|
+
|
62
|
+
.site6>menu>main>.section-title.min {
|
63
|
+
border-bottom: solid 1px var(--divider-color);
|
64
|
+
max-height: 1px
|
65
|
+
}
|
66
|
+
|
55
67
|
.site6>menu>main>.site-menu-item {
|
56
68
|
width: 100%;
|
57
69
|
display: flex;
|
58
70
|
align-items: center;
|
59
71
|
}
|
60
72
|
|
61
|
-
.site6>menu.max>main>.site-menu-item:hover {
|
73
|
+
.site6>menu.max>main>.site-menu-item:not(.selected):hover {
|
74
|
+
color: var(--text-color);
|
62
75
|
background-color: rgba(200,200,200,.2);
|
63
76
|
cursor: pointer;
|
64
77
|
}
|
package/src/site/site.js
CHANGED
@@ -82,10 +82,10 @@ export const SiteProvider = ({ children, siteLang, siteDictionary, showConsole }
|
|
82
82
|
animationIn: ["animate__animated", "animate__fadeIn"],
|
83
83
|
animationOut: ["animate__animated", "animate__fadeOut"],
|
84
84
|
dismiss: {
|
85
|
-
|
86
|
-
|
85
|
+
duration: 3000,
|
86
|
+
onScreen: true
|
87
87
|
}
|
88
|
-
|
88
|
+
});
|
89
89
|
}
|
90
90
|
}
|
91
91
|
|
@@ -103,7 +103,7 @@ export const Site = ({ icon, logo, title, toolbar, children, init, min, lang, di
|
|
103
103
|
return (
|
104
104
|
<SiteProvider siteLang={lang} siteDictionary={dictionary}>
|
105
105
|
<div className="site6">
|
106
|
-
<SiteHeader icon={icon} title={title}/>
|
106
|
+
<SiteHeader icon={icon} title={title} />
|
107
107
|
<SiteToolBar >{toolbar}</SiteToolBar>
|
108
108
|
<SiteMenu logo={logo} title={title} min={min} >{children}</SiteMenu>
|
109
109
|
<SitePage init={init}>
|
@@ -198,12 +198,13 @@ const SiteMenu = ({ logo, title, children, min }) => {
|
|
198
198
|
<main >
|
199
199
|
{Object.keys(sections).map(title => (
|
200
200
|
<Fragment key={title}>
|
201
|
+
<div className={`section-title ${style}`}>{sideNav === "max" ? title : ''}</div>
|
201
202
|
{sections[title].map(({ id, icon = 'info', title }) => {
|
202
203
|
const styleItem = id === page ? 'selected' : ''
|
203
204
|
return (
|
204
205
|
<div className={`site-menu-item ${styleItem}`} key={id} onClick={() => goto(id)}>
|
205
206
|
<Icon key={id} icon={icon} clickable action={() => goto(id)} />
|
206
|
-
{
|
207
|
+
{sideNav === 'max' ? <label>{title}</label> : null}
|
207
208
|
</div>
|
208
209
|
)
|
209
210
|
})}
|