@lambo-design/shared 1.0.0-beta.216 → 1.0.0-beta.217

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.
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: #333333;
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: #333333;
@@ -155,7 +155,7 @@ export default {
155
155
  --grid-columns: 24;
156
156
  --grid-gutter-width: 0;
157
157
  --layout-body-background: #f5f7f9;
158
- --layout-header-background: #333333;
158
+ --layout-header-background: #258b73;
159
159
  --layout-header-height: 64px;
160
160
  --layout-header-padding: 0 50px;
161
161
  --layout-footer-padding: 24px 50px;
@@ -171,12 +171,13 @@ export default {
171
171
  --layout-header-color: rgba(255, 255, 255, 0.7);
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
- --layout-header-nav-active-color: #fff;
175
- --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
- --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
174
+ --layout-header-nav-active-color: #258b73;
175
+ --layout-header-nav-active-font-weight: bold;
176
+ --layout-header-nav-active-background-begin: #ffffff;
177
+ --layout-header-nav-active-background-end: #c2ddd7;
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
178
179
  --layout-header-drop-active-color: #fff;
179
- --layout-header-drop-background: #333333;
180
+ --layout-header-drop-background: #258b73;
180
181
  --layout-header-drop-active-background: rgba(255, 255, 255, 0.2);
181
182
  --layout-sider-submenu-color: rgba(255, 255, 255, 0.7);
182
183
  --layout-sider-submenu-active-color: #fff;
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
@@ -172,6 +172,7 @@ export default {
172
172
  --layout-header-active-color: #fff;
173
173
  --layout-header-nav-color: rgba(255, 255, 255, 0.7);
174
174
  --layout-header-nav-active-color: #fff;
175
+ --layout-header-nav-active-font-weight: normal;
175
176
  --layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
176
177
  --layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
177
178
  --layout-header-drop-color: rgba(255, 255, 255, 0.7);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/shared",
3
- "version": "1.0.0-beta.216",
3
+ "version": "1.0.0-beta.217",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
package/utils/style.js CHANGED
@@ -1,24 +1,24 @@
1
- const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g
2
- const MOZ_HACK_REGEXP = /^moz([A-Z])/
3
-
4
- function camelCase(name) {
5
- return name
6
- .replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
7
- return offset ? letter.toUpperCase() : letter
8
- })
9
- .replace(MOZ_HACK_REGEXP, 'Moz$1')
10
- }
11
- // getStyle
12
- export function getStyle(element, styleName) {
13
- if (!element || !styleName) return null
14
- styleName = camelCase(styleName)
15
- if (styleName === 'float') {
16
- styleName = 'cssFloat'
17
- }
18
- try {
19
- const computed = document.defaultView.getComputedStyle(element, '')
20
- return element.style[styleName] || computed ? computed[styleName] : null
21
- } catch (e) {
22
- return element.style[styleName]
23
- }
24
- }
1
+ const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g
2
+ const MOZ_HACK_REGEXP = /^moz([A-Z])/
3
+
4
+ function camelCase(name) {
5
+ return name
6
+ .replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
7
+ return offset ? letter.toUpperCase() : letter
8
+ })
9
+ .replace(MOZ_HACK_REGEXP, 'Moz$1')
10
+ }
11
+ // getStyle
12
+ export function getStyle(element, styleName) {
13
+ if (!element || !styleName) return null
14
+ styleName = camelCase(styleName)
15
+ if (styleName === 'float') {
16
+ styleName = 'cssFloat'
17
+ }
18
+ try {
19
+ const computed = document.defaultView.getComputedStyle(element, '')
20
+ return element.style[styleName] || computed ? computed[styleName] : null
21
+ } catch (e) {
22
+ return element.style[styleName]
23
+ }
24
+ }
@@ -1,7 +1,7 @@
1
- let transferIndex = 1000
2
-
3
- function transferIncrease() {
4
- transferIndex++
5
- }
6
-
7
- export { transferIndex, transferIncrease }
1
+ let transferIndex = 1000
2
+
3
+ function transferIncrease() {
4
+ transferIndex++
5
+ }
6
+
7
+ export { transferIndex, transferIncrease }