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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.290",
3
+ "version": "0.0.293",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
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
- duration: 3000,
86
- onScreen: true
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
- { sideNav === 'max' ? <label>{title}</label> : null }
207
+ {sideNav === 'max' ? <label>{title}</label> : null}
207
208
  </div>
208
209
  )
209
210
  })}