@lingxiteam/assets 0.11.30-alpha.9 → 1.0.10-alpha.2

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
- ## 主题
2
-
1
+ ## 主题
2
+
3
3
  通过 `document.documentElement.setAttribute('data-prefers-color', 'dark');` 开启暗黑风格
@@ -1,201 +1,201 @@
1
- @import url('../../animation.less');
2
- @import url('../../variables.less');
3
-
4
- .lxm-drawer {
5
- &-wraper {
6
- position: absolute;
7
- left: 0;
8
- right: 0;
9
- bottom: 0;
10
- top: 0;
11
- z-index: 9999;
12
- overflow: hidden;
13
- }
14
-
15
- &-close-move &-container {
16
- animation: lxmDrawerClose 0.3s;
17
- animation-fill-mode: forwards;
18
- }
19
-
20
- &-container {
21
- position: relative;
22
- height: 100%;
23
- overflow: hidden;
24
- display: flex;
25
- flex-direction: column;
26
- background-color: #fff;
27
- animation: lxmDrawerOpen 0.3s;
28
- }
29
-
30
- &-header {
31
- display: flex;
32
- align-items: center;
33
- height: 44 * @hd;
34
- background-color: #f6f8fa;
35
-
36
- &-close {
37
- width: 24 * @hd;
38
- height: 24 * @hd;
39
- display: inline-block;
40
- vertical-align: middle;
41
- cursor: pointer;
42
- }
43
-
44
- &-extend {
45
- width: 80 * @hd;
46
- padding: 0 20* @hd;
47
- }
48
-
49
- &-title {
50
- flex: 1;
51
- text-align: center;
52
- font-size: 18* @hd;
53
- font-weight: 500;
54
- color: #1c242e;
55
- white-space: nowrap;
56
- text-overflow: ellipsis;
57
- overflow: hidden;
58
- }
59
- }
60
-
61
- &-tabs {
62
- padding: 8* @hd 20* @hd;
63
- background-color: #f6f8fa;
64
-
65
- &-row {
66
- background: #f0f0f0;
67
- border-radius: 8* @hd;
68
- padding: 4* @hd;
69
- display: flex;
70
- align-items: center;
71
- }
72
-
73
- &-row &-btn {
74
- color: #1c242e;
75
- text-align: center;
76
- padding: 4* @hd;
77
- font-size: 14* @hd;
78
- flex: 1;
79
- border-radius: 8* @hd;
80
- cursor: pointer;
81
- }
82
-
83
- &-row &-btn.active {
84
- background-color: #fff;
85
- font-weight: 500;
86
- box-shadow: 0 1* @hd 6* @hd -4* @hd rgba(28, 36, 46, 0.15);
87
- }
88
- }
89
-
90
- &-main {
91
- border-top: 1px solid #f0f0f0;
92
- flex: 1;
93
- background-color: #fff;
94
- overflow-y: auto;
95
- }
96
-
97
- &-content {
98
- padding: 20* @hd;
99
-
100
- &-head {
101
- margin-bottom: 20* @hd;
102
-
103
- &-title {
104
- font-size: 21* @hd;
105
- font-weight: 500;
106
- color: #1c242e;
107
- }
108
-
109
- &-author {
110
- font-size: 13* @hd;
111
- color: rgba(28, 36, 46, 0.45);;
112
- }
113
- }
114
-
115
- &-body {
116
- font-size: 15* @hd;
117
- color: rgba(28, 36, 46, 0.75);
118
-
119
- // 内置文章样式
120
- dt {
121
- font-size: 17* @hd;
122
- font-weight: 500;
123
- margin-top: 30* @hd;
124
- }
125
- dd {
126
- padding: 8* @hd 0;
127
- margin: 0;
128
- font-size: 15* @hd;
129
- }
130
- ol, ul {
131
- padding: 0;
132
- margin: 0;
133
- }
134
- ol, ul {
135
- list-style: inside inside;
136
- }
137
- li, p {
138
- line-height: 24* @hd;
139
- letter-spacing: 1px;
140
- margin: 4* @hd 0;
141
- }
142
- }
143
- }
144
-
145
- &-list {
146
- padding: 0 20* @hd;
147
-
148
- &-item {
149
- padding: 8* @hd 0;
150
- border-bottom: 1px solid #f0f0f0;
151
-
152
- &.purple &-dt {
153
- &-title {
154
- color: #9747ff;
155
- }
156
- }
157
-
158
- &.blue &-dt {
159
- &-title {
160
- color: #47e;
161
- }
162
- }
163
-
164
- &.red &-dt {
165
- &-title {
166
- color: #fa7570;
167
- }
168
- }
169
-
170
- &-dt {
171
- display: flex;
172
-
173
- &-title {
174
- flex: 1;
175
- font-size: 14* @hd;
176
- font-weight: 500;
177
- }
178
-
179
- &-extra {
180
- font-size: 12* @hd;
181
- color: rgba(28, 36, 46, 0.45);
182
- }
183
-
184
- &-title + &-extra {
185
- margin-left: 8* @hd;
186
- }
187
- }
188
-
189
- &-dd {
190
- font-size: 12* @hd;
191
- color: rgba(28, 36, 46, 0.75);
192
- }
193
- }
194
- }
195
-
196
- &-empty {
197
- padding: 20* @hd;
198
- text-align: center;
199
- color: rgba(28, 36, 46, 0.45);
200
- }
201
- }
1
+ @import url('../../animation.less');
2
+ @import url('../../variables.less');
3
+
4
+ .lxm-drawer {
5
+ &-wraper {
6
+ position: absolute;
7
+ left: 0;
8
+ right: 0;
9
+ bottom: 0;
10
+ top: 0;
11
+ z-index: 9999;
12
+ overflow: hidden;
13
+ }
14
+
15
+ &-close-move &-container {
16
+ animation: lxmDrawerClose 0.3s;
17
+ animation-fill-mode: forwards;
18
+ }
19
+
20
+ &-container {
21
+ position: relative;
22
+ height: 100%;
23
+ overflow: hidden;
24
+ display: flex;
25
+ flex-direction: column;
26
+ background-color: #fff;
27
+ animation: lxmDrawerOpen 0.3s;
28
+ }
29
+
30
+ &-header {
31
+ display: flex;
32
+ align-items: center;
33
+ height: 44 * @hd;
34
+ background-color: #f6f8fa;
35
+
36
+ &-close {
37
+ width: 24 * @hd;
38
+ height: 24 * @hd;
39
+ display: inline-block;
40
+ vertical-align: middle;
41
+ cursor: pointer;
42
+ }
43
+
44
+ &-extend {
45
+ width: 80 * @hd;
46
+ padding: 0 20* @hd;
47
+ }
48
+
49
+ &-title {
50
+ flex: 1;
51
+ text-align: center;
52
+ font-size: 18* @hd;
53
+ font-weight: 500;
54
+ color: #1c242e;
55
+ white-space: nowrap;
56
+ text-overflow: ellipsis;
57
+ overflow: hidden;
58
+ }
59
+ }
60
+
61
+ &-tabs {
62
+ padding: 8* @hd 20* @hd;
63
+ background-color: #f6f8fa;
64
+
65
+ &-row {
66
+ background: #f0f0f0;
67
+ border-radius: 8* @hd;
68
+ padding: 4* @hd;
69
+ display: flex;
70
+ align-items: center;
71
+ }
72
+
73
+ &-row &-btn {
74
+ color: #1c242e;
75
+ text-align: center;
76
+ padding: 4* @hd;
77
+ font-size: 14* @hd;
78
+ flex: 1;
79
+ border-radius: 8* @hd;
80
+ cursor: pointer;
81
+ }
82
+
83
+ &-row &-btn.active {
84
+ background-color: #fff;
85
+ font-weight: 500;
86
+ box-shadow: 0 1* @hd 6* @hd -4* @hd rgba(28, 36, 46, 0.15);
87
+ }
88
+ }
89
+
90
+ &-main {
91
+ border-top: 1px solid #f0f0f0;
92
+ flex: 1;
93
+ background-color: #fff;
94
+ overflow-y: auto;
95
+ }
96
+
97
+ &-content {
98
+ padding: 20* @hd;
99
+
100
+ &-head {
101
+ margin-bottom: 20* @hd;
102
+
103
+ &-title {
104
+ font-size: 21* @hd;
105
+ font-weight: 500;
106
+ color: #1c242e;
107
+ }
108
+
109
+ &-author {
110
+ font-size: 13* @hd;
111
+ color: rgba(28, 36, 46, 0.45);;
112
+ }
113
+ }
114
+
115
+ &-body {
116
+ font-size: 15* @hd;
117
+ color: rgba(28, 36, 46, 0.75);
118
+
119
+ // 内置文章样式
120
+ dt {
121
+ font-size: 17* @hd;
122
+ font-weight: 500;
123
+ margin-top: 30* @hd;
124
+ }
125
+ dd {
126
+ padding: 8* @hd 0;
127
+ margin: 0;
128
+ font-size: 15* @hd;
129
+ }
130
+ ol, ul {
131
+ padding: 0;
132
+ margin: 0;
133
+ }
134
+ ol, ul {
135
+ list-style: inside inside;
136
+ }
137
+ li, p {
138
+ line-height: 24* @hd;
139
+ letter-spacing: 1px;
140
+ margin: 4* @hd 0;
141
+ }
142
+ }
143
+ }
144
+
145
+ &-list {
146
+ padding: 0 20* @hd;
147
+
148
+ &-item {
149
+ padding: 8* @hd 0;
150
+ border-bottom: 1px solid #f0f0f0;
151
+
152
+ &.purple &-dt {
153
+ &-title {
154
+ color: #9747ff;
155
+ }
156
+ }
157
+
158
+ &.blue &-dt {
159
+ &-title {
160
+ color: #47e;
161
+ }
162
+ }
163
+
164
+ &.red &-dt {
165
+ &-title {
166
+ color: #fa7570;
167
+ }
168
+ }
169
+
170
+ &-dt {
171
+ display: flex;
172
+
173
+ &-title {
174
+ flex: 1;
175
+ font-size: 14* @hd;
176
+ font-weight: 500;
177
+ }
178
+
179
+ &-extra {
180
+ font-size: 12* @hd;
181
+ color: rgba(28, 36, 46, 0.45);
182
+ }
183
+
184
+ &-title + &-extra {
185
+ margin-left: 8* @hd;
186
+ }
187
+ }
188
+
189
+ &-dd {
190
+ font-size: 12* @hd;
191
+ color: rgba(28, 36, 46, 0.75);
192
+ }
193
+ }
194
+ }
195
+
196
+ &-empty {
197
+ padding: 20* @hd;
198
+ text-align: center;
199
+ color: rgba(28, 36, 46, 0.45);
200
+ }
201
+ }
@@ -1,146 +1,146 @@
1
- @import url('../../animation.less');
2
- @import url('../../variables.less');
3
-
4
- .lxm-modal {
5
- &-wraper,
6
- &-mask {
7
- position: absolute;
8
- left: 0;
9
- top: 0;
10
- bottom: 0;
11
- right: 0;
12
- }
13
-
14
- &-wraper {
15
- z-index: 9999;
16
- }
17
-
18
- &-close-move &-main {
19
- animation: lxmModalClose 0.3s;
20
- animation-fill-mode: forwards;
21
- }
22
-
23
- &-close-move &-mask {
24
- animation: lxmModalMaskClose 0.3s;
25
- animation-fill-mode: forwards;
26
- }
27
-
28
- &-mask {
29
- background-color: rgba(0, 0, 0, 0.75);
30
- }
31
-
32
- &-container {
33
- position: absolute;
34
- display: flex;
35
- left: 0;
36
- top: 0;
37
- bottom: 0;
38
- right: 0;
39
- padding: 40* @hd;
40
- overflow-y: auto;
41
- }
42
-
43
- &-main {
44
- position: relative;
45
- margin: auto;
46
- padding: 20* @hd;
47
- padding-top: 0;
48
- max-width: 570* @hd;
49
- min-width: 285* @hd;
50
- background-color: #fff;
51
- border-radius: 10* @hd;
52
- overflow: hidden;
53
- animation: lxmModalOpen 0.3s;
54
-
55
- &::before {
56
- content: '';
57
- position: absolute;
58
- top: 0;
59
- left: 0;
60
- right: 0;
61
- z-index: 1;
62
- height: 160* @hd;
63
- background: linear-gradient(180deg, #c8d9ff 0%, rgba(220, 231, 250, 0) 100%);
64
- }
65
- }
66
-
67
- &-ico,
68
- &-title,
69
- &-subtitle,
70
- &-content,
71
- &-footer {
72
- position: relative;
73
- z-index: 2;
74
- }
75
-
76
- &-ico {
77
- margin: 0 auto 8* @hd auto;
78
-
79
- &,
80
- img {
81
- display: block;
82
- width: 100 * @hd;
83
- height: 100 * @hd;
84
- }
85
- }
86
-
87
- &-title,
88
- &-subtitle {
89
- text-align: center;
90
- line-height: 24* @hd;
91
- }
92
-
93
- &-title {
94
- font-size: 18 * @hd;
95
- font-weight: 500;
96
- color: #1c242e;
97
- }
98
-
99
- &-subtitle {
100
- font-size: 12* @hd;
101
- color: rgba(28, 36, 46, 0.25);
102
- }
103
-
104
- &-content {
105
- position: relative;
106
- margin-top: 16 * @hd;
107
- max-height: 200 * @hd;
108
- color: rgba(28, 36, 46, 0.75);
109
- overflow-y: auto;
110
- line-height: 23 * @hd;
111
- }
112
-
113
- &-footer {
114
- margin-top: 16 * @hd;
115
- display: flex;
116
- align-items: center;
117
- justify-content: center;
118
- }
119
-
120
- &-footer &-btn {
121
- flex: 1;
122
- }
123
-
124
- &-btn {
125
- cursor: pointer;
126
- height: 36 * @hd;
127
- line-height: 36 * @hd;
128
- text-align: center;
129
- color: #1c242e;
130
- border-radius: 10 * @hd;
131
- }
132
-
133
- &-btn + &-btn {
134
- margin-left: 20 * @hd;
135
- }
136
-
137
- &-def-btn {
138
- color: #1c242e;
139
- background: #f7f7f7;
140
- }
141
-
142
- &-prm-btn {
143
- color: #fff;
144
- background: linear-gradient(307deg, #47e 0%, #80d1ff 100%);
145
- }
146
- }
1
+ @import url('../../animation.less');
2
+ @import url('../../variables.less');
3
+
4
+ .lxm-modal {
5
+ &-wraper,
6
+ &-mask {
7
+ position: absolute;
8
+ left: 0;
9
+ top: 0;
10
+ bottom: 0;
11
+ right: 0;
12
+ }
13
+
14
+ &-wraper {
15
+ z-index: 9999;
16
+ }
17
+
18
+ &-close-move &-main {
19
+ animation: lxmModalClose 0.3s;
20
+ animation-fill-mode: forwards;
21
+ }
22
+
23
+ &-close-move &-mask {
24
+ animation: lxmModalMaskClose 0.3s;
25
+ animation-fill-mode: forwards;
26
+ }
27
+
28
+ &-mask {
29
+ background-color: rgba(0, 0, 0, 0.75);
30
+ }
31
+
32
+ &-container {
33
+ position: absolute;
34
+ display: flex;
35
+ left: 0;
36
+ top: 0;
37
+ bottom: 0;
38
+ right: 0;
39
+ padding: 40* @hd;
40
+ overflow-y: auto;
41
+ }
42
+
43
+ &-main {
44
+ position: relative;
45
+ margin: auto;
46
+ padding: 20* @hd;
47
+ padding-top: 0;
48
+ max-width: 570* @hd;
49
+ min-width: 285* @hd;
50
+ background-color: #fff;
51
+ border-radius: 10* @hd;
52
+ overflow: hidden;
53
+ animation: lxmModalOpen 0.3s;
54
+
55
+ &::before {
56
+ content: '';
57
+ position: absolute;
58
+ top: 0;
59
+ left: 0;
60
+ right: 0;
61
+ z-index: 1;
62
+ height: 160* @hd;
63
+ background: linear-gradient(180deg, #c8d9ff 0%, rgba(220, 231, 250, 0) 100%);
64
+ }
65
+ }
66
+
67
+ &-ico,
68
+ &-title,
69
+ &-subtitle,
70
+ &-content,
71
+ &-footer {
72
+ position: relative;
73
+ z-index: 2;
74
+ }
75
+
76
+ &-ico {
77
+ margin: 0 auto 8* @hd auto;
78
+
79
+ &,
80
+ img {
81
+ display: block;
82
+ width: 100 * @hd;
83
+ height: 100 * @hd;
84
+ }
85
+ }
86
+
87
+ &-title,
88
+ &-subtitle {
89
+ text-align: center;
90
+ line-height: 24* @hd;
91
+ }
92
+
93
+ &-title {
94
+ font-size: 18 * @hd;
95
+ font-weight: 500;
96
+ color: #1c242e;
97
+ }
98
+
99
+ &-subtitle {
100
+ font-size: 12* @hd;
101
+ color: rgba(28, 36, 46, 0.25);
102
+ }
103
+
104
+ &-content {
105
+ position: relative;
106
+ margin-top: 16 * @hd;
107
+ max-height: 200 * @hd;
108
+ color: rgba(28, 36, 46, 0.75);
109
+ overflow-y: auto;
110
+ line-height: 23 * @hd;
111
+ }
112
+
113
+ &-footer {
114
+ margin-top: 16 * @hd;
115
+ display: flex;
116
+ align-items: center;
117
+ justify-content: center;
118
+ }
119
+
120
+ &-footer &-btn {
121
+ flex: 1;
122
+ }
123
+
124
+ &-btn {
125
+ cursor: pointer;
126
+ height: 36 * @hd;
127
+ line-height: 36 * @hd;
128
+ text-align: center;
129
+ color: #1c242e;
130
+ border-radius: 10 * @hd;
131
+ }
132
+
133
+ &-btn + &-btn {
134
+ margin-left: 20 * @hd;
135
+ }
136
+
137
+ &-def-btn {
138
+ color: #1c242e;
139
+ background: #f7f7f7;
140
+ }
141
+
142
+ &-prm-btn {
143
+ color: #fff;
144
+ background: linear-gradient(307deg, #47e 0%, #80d1ff 100%);
145
+ }
146
+ }