@lemon-fe/components 0.1.126 → 0.1.128

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,6 +1,6 @@
1
1
  .@{prefixCls}-filter {
2
2
  &-tab-bar {
3
- margin-bottom: 12px;
3
+ margin-bottom: @space-v;
4
4
 
5
5
  .@{prefixCls}-tab-bar-item {
6
6
  padding: 8px 12px;
@@ -52,13 +52,13 @@
52
52
  .popover(220px);
53
53
 
54
54
  .@{ant-prefix}-popover-inner {
55
- padding: 16px 0;
55
+ padding: @space-v 0;
56
56
  }
57
57
  }
58
58
 
59
59
  &-items-search {
60
60
  width: auto;
61
- margin: 0 16px 8px;
61
+ margin: 0 @space-h 8px;
62
62
  }
63
63
 
64
64
  &-items {
@@ -74,5 +74,5 @@
74
74
  }
75
75
 
76
76
  .@{prefixCls}-section-body > .@{prefixCls}-filter:not(.@{prefixCls}-filter-simple):first-child {
77
- margin-top: -12px;
77
+ margin-top: -@space-v;
78
78
  }
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  height: 100%;
6
- padding: 0 @space;
6
+ padding: 0 @space-h;
7
7
  background: #f2f2f2;
8
8
 
9
9
  &-header {
@@ -67,7 +67,7 @@
67
67
 
68
68
  &-collapse {
69
69
  position: absolute;
70
- top: 16px;
70
+ top: @space-v;
71
71
  right: 0;
72
72
  z-index: 100;
73
73
  box-sizing: border-box;
@@ -115,10 +115,10 @@
115
115
  align-items: center;
116
116
  justify-content: center;
117
117
  box-sizing: border-box;
118
- height: 65px;
119
- padding: @space;
118
+ height: 60px;
119
+ padding: @space-v @space-h;
120
120
  background: #fff;
121
- border-top: 1px solid #dfdfdf;
121
+ box-shadow: inset 0 1px 0 0 #dfdfdf;
122
122
  }
123
123
 
124
124
  &-spin {
@@ -1,7 +1,7 @@
1
1
  .@{prefixCls}-section {
2
2
  position: relative;
3
3
  width: 100%;
4
- padding: 12px 16px;
4
+ padding: @space-v @space-h;
5
5
  color: #333;
6
6
 
7
7
  & + & {
@@ -77,7 +77,7 @@
77
77
  &-tab {
78
78
  display: inline-flex;
79
79
  align-self: flex-start;
80
- margin-bottom: 12px;
80
+ margin-bottom: @space-v;
81
81
  padding: 2px;
82
82
  background-color: #f2f2f2;
83
83
  border-radius: 4px;
@@ -85,7 +85,7 @@
85
85
  &-item {
86
86
  position: relative;
87
87
  min-width: 88px;
88
- padding: 6px 8px;
88
+ padding: (@space-v / 2) (@space-h / 2);
89
89
  color: rgba(51, 51, 51, 0.65);
90
90
  font-size: 14px;
91
91
  line-height: 22px;
@@ -7,7 +7,7 @@
7
7
  flex-direction: column;
8
8
  box-sizing: border-box;
9
9
  height: 100%;
10
- padding: @space 0;
10
+ padding: @space-v 0;
11
11
  }
12
12
 
13
13
  &-menu-popover {
@@ -47,18 +47,20 @@
47
47
  .fullTabs();
48
48
 
49
49
  & > .@{ant-prefix}-tabs-nav {
50
- margin: 0 @space;
50
+ margin: 0 @space-h;
51
51
  }
52
52
  }
53
53
 
54
54
  &-header {
55
- padding: 0 @space;
55
+ padding: 0 @space-h;
56
56
  }
57
57
 
58
58
  &-body {
59
59
  min-height: 0;
60
- padding: 0 @space;
60
+ padding: 0 @space-h;
61
61
  overflow: auto;
62
+
63
+ .scrollBar(8px);
62
64
  }
63
65
 
64
66
  &-header + &-body {
@@ -207,5 +209,5 @@
207
209
  }
208
210
 
209
211
  .@{prefixCls}-layout-left .@{prefixCls}-tree-wrapper:first-child .@{prefixCls}-tree-header {
210
- padding-right: 12px + @space;
212
+ padding-right: 12px + @space-h;
211
213
  }
package/es/theme.less CHANGED
@@ -1,6 +1,9 @@
1
1
  @prefixCls: lemon;
2
2
  @space: 16px;
3
3
 
4
+ @space-h: 16px;
5
+ @space-v: 12px;
6
+
4
7
  html {
5
8
  --lemon-primary-color: 35, 87, 223;
6
9
  }
package/es/utils.less CHANGED
@@ -40,7 +40,7 @@
40
40
  position: relative;
41
41
  width: 100%;
42
42
  height: 36px;
43
- padding: 0 16px;
43
+ padding: 0 @space-h;
44
44
  overflow-x: hidden;
45
45
  color: #333;
46
46
  font-size: 14px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.126",
3
+ "version": "0.1.128",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -39,5 +39,5 @@
39
39
  "react": "^17.0.2",
40
40
  "react-dom": "^17.0.2"
41
41
  },
42
- "gitHead": "40af92a9b3630892c493b52346896abfe0f18cef"
42
+ "gitHead": "7315b7769bb67f06bff296eed5dbe4be3003e001"
43
43
  }