artalk 2.1.0 → 2.1.4

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.
Files changed (45) hide show
  1. package/dist/Artalk.css +1 -1
  2. package/dist/Artalk.es.js +3895 -3106
  3. package/dist/Artalk.iife.js +1 -266
  4. package/dist/Artalk.js +1 -266
  5. package/package.json +19 -21
  6. package/src/api/index.ts +6 -7
  7. package/src/artalk.ts +11 -4
  8. package/src/components/action-btn.ts +1 -1
  9. package/src/components/comment.ts +102 -27
  10. package/src/components/editor-plugs/_example-plug.ts.txt +2 -7
  11. package/src/components/editor-plugs/editor-plug.ts +3 -3
  12. package/src/components/editor-plugs/emoticons-plug.less +21 -11
  13. package/src/components/editor-plugs/emoticons-plug.ts +199 -79
  14. package/src/components/editor-plugs/preview-plug.less +1 -1
  15. package/src/components/editor-plugs/preview-plug.ts +2 -7
  16. package/src/components/editor.ts +75 -34
  17. package/src/components/html/comment.html +6 -13
  18. package/src/components/html/editor.html +9 -10
  19. package/src/components/html/list.html +1 -1
  20. package/src/components/layer.ts +33 -14
  21. package/src/components/list-lite.ts +218 -235
  22. package/src/components/list.ts +11 -9
  23. package/src/components/pagination.ts +2 -2
  24. package/src/components/read-more-btn.ts +27 -10
  25. package/src/components/sidebar-views/comments-view.ts +12 -5
  26. package/src/components/sidebar-views/sites-view.ts +0 -6
  27. package/src/components/sidebar.ts +7 -2
  28. package/src/{default-conf.ts → defaults.ts} +7 -7
  29. package/src/lib/utils.ts +41 -12
  30. package/src/style/_color.less +19 -23
  31. package/src/style/_extend.less +3 -3
  32. package/src/style/_variables.less +0 -24
  33. package/src/style/comment.less +191 -197
  34. package/src/style/editor.less +78 -103
  35. package/src/style/item-text-editor.less +2 -2
  36. package/src/style/list.less +14 -13
  37. package/src/style/main.less +35 -31
  38. package/src/style/page-list.less +4 -4
  39. package/src/style/pagination.less +6 -6
  40. package/src/style/sidebar.less +35 -35
  41. package/src/style/site-list.less +13 -13
  42. package/types/artalk-config.d.ts +13 -10
  43. package/types/artalk-data.d.ts +10 -5
  44. package/types/event.d.ts +10 -1
  45. package/src/assets/emoticons.json +0 -100
@@ -1,35 +1,32 @@
1
- .artalk > .atk-editor {
2
- border: 1px solid @color-border;
3
- border-radius: @block-radius;
4
- margin-bottom: @block-margin;
5
- overflow: hidden;
1
+ .atk-main-editor {
2
+ @editor-padding: 10px;
3
+ z-index: 5;
6
4
  position: relative;
7
- background: @color-bg;
5
+ overflow: hidden;
6
+ background: var(--at-color-bg);
7
+ border: 1px solid var(--at-color-border);
8
+ border-radius: @block-radius;
9
+ margin-bottom: 15px;
8
10
 
9
11
  @media only screen and (max-width: 768px) {
10
- & > {
11
- margin-bottom: @block-margin-mobile;
12
- }
12
+ margin-bottom: 7px;
13
13
  }
14
14
 
15
- & > .atk-editor-header {
15
+ & > .atk-header {
16
16
  display: flex;
17
17
  flex-direction: row;
18
- padding: 0 @block-padding;
19
- padding-top: calc(@block-padding / 2);
20
- padding-bottom: 0;
18
+ padding: calc(@editor-padding / 2) @editor-padding 0;
21
19
 
22
20
  input {
23
- font-size: 14px;
24
- border: 2px solid transparent;
25
- transition: color .3s ease;
26
21
  flex: 1;
22
+ width: 100%;
23
+ font-size: 14px;
27
24
  background: transparent;
25
+ border: 2px solid transparent;
28
26
  border-radius: calc(@block-radius / 2);
29
27
  padding: 6px 5px;
30
28
  resize: none;
31
29
  outline: none;
32
- width: 100%;
33
30
 
34
31
  &:not(:last-child) {
35
32
  margin-right: 2px;
@@ -37,64 +34,50 @@
37
34
  }
38
35
  }
39
36
 
40
- & > .atk-editor-textarea-wrap {
41
- .atk-editor-textarea {
42
- font-size: 15px;
43
- color: @color-font;
44
- background-color: @color-bg;
45
- margin-top: 2px;
46
- padding: @block-padding calc(10px + 5px);
37
+ & > .atk-textarea-wrap {
38
+ position: relative;
39
+
40
+ & > .atk-textarea {
47
41
  display: block;
42
+ overflow: hidden;
43
+ color: var(--at-color-font);
44
+ font-size: 15px;
45
+ background-color: var(--at-color-bg);
46
+ border: 2px solid transparent;
47
+ border-radius: calc(@block-radius / 2);
48
48
  width: 100%;
49
49
  min-height: 130px;
50
+ margin-top: 2px;
51
+ padding: @editor-padding calc(10px + 5px);
50
52
  resize: none;
51
53
  word-wrap: break-word;
52
- border: 2px solid transparent;
53
- border-radius: calc(@block-radius / 2);
54
54
  outline: none;
55
- overflow: hidden;
56
55
  }
57
56
 
58
- .atk-close-comment {
59
- display: flex;
60
- user-select: none;
61
- // background: repeating-linear-gradient(145deg, #f2f2f2, #f2f2f2 15px, #fff 0, #fff 30px);
62
- padding: 0;
63
- position: relative;
64
- text-align: center;
65
- min-height: 30px;
66
- border-top: 1px solid @color-border;
67
- margin-top: 4px;
68
- font-weight: 100;
57
+ & > .atk-comment-closed {
58
+ pointer-events: none;
59
+ color: var(--at-color-meta);
69
60
  font-size: 12px;
70
- place-items: center;
71
- justify-content: center;
72
- place-content: flex-end;
73
- flex-direction: row;
74
- background: @color-bg;
75
-
76
- & > span {
77
- color: @color-meta;
78
- border-radius: 2px;
79
- margin-right: 14px;
80
- }
81
- }
82
-
83
- .atk-send-reply-wrap {
84
- position: relative;
85
- padding: 0 10px;
61
+ background-color: var(--at-color-bg);
62
+ border-top: 1px solid var(--at-color-border);
63
+ padding: 5px 15px;
64
+ // background: repeating-linear-gradient(145deg, #f2f2f2, #f2f2f2 15px, #fff 0, #fff 30px);
86
65
  }
87
66
 
88
- .atk-send-reply {
89
- position: relative;
90
- display: inline-block;
91
- font-size: 14px;
67
+ & > .atk-send-reply {
68
+ z-index: 2;
69
+ position: absolute;
70
+ right: 10px;
71
+ bottom: 8px;
72
+ max-width: calc(100% - 20px);
92
73
  height: 30px;
93
74
  line-height: 30px;
94
- background: @color-bg-grey-transl;
75
+ font-size: 14px;
76
+ background: var(--at-color-bg-grey-transl);
95
77
  padding: 0 30px 0 10px;
96
- z-index: 2;
97
- user-select: none;
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ white-space: nowrap;
98
81
  cursor: pointer;
99
82
 
100
83
  .atk-text {
@@ -111,97 +94,89 @@
111
94
  font-weight: 700;
112
95
 
113
96
  &:hover {
114
- color: @color-deep;
97
+ color: var(--at-color-deep);
115
98
  }
116
99
  }
117
100
  }
118
101
  }
119
102
 
120
- & > .atk-editor-plug-wrap {
103
+ & > .atk-plug-wrap {
121
104
  position: relative;
122
105
  height: 180px;
123
106
  width: 100%;
124
107
  overflow: hidden;
125
- border-top: 1px solid @color-border;
126
- animation: .3s both atkFadeIn;
127
- transition: .2s height ease-in-out;
108
+ border-top: 1px solid var(--at-color-border);
109
+ animation: 0.3s both atkFadeIn;
110
+ transition: 0.2s height ease-in-out;
128
111
  }
129
112
 
130
- & > .atk-editor-bottom {
113
+ & > .atk-bottom {
131
114
  display: flex;
132
115
  flex-direction: row;
133
- border-top: 1px solid @color-border;
134
- padding: 0 0 0 calc(@block-padding - 5px);
116
+ justify-content: space-between;
117
+ border-top: 1px solid var(--at-color-border);
118
+ padding: 0 0 0 calc(@editor-padding - 5px);
135
119
 
136
- .atk-editor-bottom-part {
120
+ & > .atk-item {
137
121
  display: flex;
138
- flex: 1;
139
122
  flex-direction: row;
140
123
  align-items: center;
141
-
142
- &.atk-left {
143
- flex: inherit;
144
- }
145
-
146
- &.atk-right {
147
- justify-content: flex-end;
148
- }
149
124
  }
150
125
 
151
- .atk-editor-action {
126
+ .atk-plug-btn {
152
127
  padding: 0 8px;
153
128
  cursor: pointer;
154
- color: @color-grey;
129
+ color: var(--at-color-grey);
155
130
  font-size: @font-size;
156
131
  user-select: none;
157
132
 
158
- & > i {
159
- color: @color-grey;
160
- display: inline-flex;
161
- vertical-align: sub;
162
- margin-left: 4px;
163
- svg.markdown path {
164
- fill: @color-grey;
165
- }
133
+ &:not(:last-child) {
134
+ border-right: 1px solid var(--at-color-border);
166
135
  }
167
136
 
168
137
  &.active {
169
- color: @color-main;
138
+ color: var(--at-color-main);
170
139
 
171
- & > i > svg.markdown path {
172
- fill: @color-main;
140
+ svg.markdown path {
141
+ fill: var(--at-color-main);
173
142
  }
174
143
  }
175
144
 
176
- &:not(:last-child) {
177
- border-right: 1px solid @color-border;
145
+ i {
146
+ color: var(--at-color-grey);
147
+ display: inline-flex;
148
+ vertical-align: sub;
149
+ margin-left: 4px;
150
+ svg.markdown path {
151
+ fill: var(--at-color-grey);
152
+ }
178
153
  }
179
154
  }
180
155
 
181
156
  .atk-send-btn {
182
- background: @color-main;
183
- color: #FFF;
157
+ background: var(--at-color-main);
158
+ color: #fff;
159
+ font-size: @font-size;
184
160
  border: none;
185
161
  padding: 0 30px;
162
+ margin: 0;
186
163
  height: 30px;
187
164
  cursor: pointer;
188
- transition: opacity .3s ease-in-out;
165
+ transition: opacity 0.3s ease-in-out;
189
166
  outline: none;
190
- font-size: @font-size;
191
- margin: 0;
192
167
 
193
168
  &:active {
194
- opacity: .9;
169
+ opacity: 0.9;
195
170
  }
196
171
  }
197
172
  }
198
173
 
199
- & > .atk-editor-notify-wrap {
174
+ & > .atk-notify-wrap {
175
+ z-index: 9;
200
176
  position: absolute;
201
177
  right: -2px;
202
178
  bottom: 36px;
203
179
  width: 225px;
204
- z-index: 9;
205
- opacity: .83;
180
+ opacity: 0.83;
206
181
  }
207
182
  }
@@ -1,6 +1,6 @@
1
1
  .atk-item-text-editor-layer {
2
2
  z-index: 999;
3
- background: @color-bg;
3
+ background: var(--at-color-bg);
4
4
  position: absolute;
5
5
  left: 0;
6
6
  top: 0;
@@ -19,7 +19,7 @@
19
19
  width: 100%;
20
20
  padding: 3px 5px;
21
21
  border: 0;
22
- border-bottom: 1px solid @color-border;
22
+ border-bottom: 1px solid var(--at-color-border);
23
23
  outline: none;
24
24
  background: transparent;
25
25
 
@@ -5,7 +5,7 @@
5
5
  display: flex;
6
6
  flex-direction: row;
7
7
  padding: 10px 10px 5px 10px;
8
- border-bottom: 1px solid @color-border;
8
+ border-bottom: 1px solid var(--at-color-border);
9
9
 
10
10
  .atk-comment-count {
11
11
  font-size: 15px;
@@ -25,19 +25,19 @@
25
25
 
26
26
  & > span {
27
27
  font-size: 14px;
28
- color: @color-meta;
28
+ color: var(--at-color-meta);
29
29
  cursor: pointer;
30
30
  user-select: none;
31
31
  position: relative;
32
32
 
33
33
  &.atk-on, &.atk-on * {
34
- color: @color-main;
34
+ color: var(--at-color-main);
35
35
  }
36
36
 
37
37
  &:not(:last-child):not(.atk-hide) {
38
38
  margin-right: 10px;
39
39
  padding-right: 10px;
40
- border-right: 1px solid @color-border;
40
+ border-right: 1px solid var(--at-color-border);
41
41
  }
42
42
 
43
43
  .atk-unread-badge {
@@ -45,7 +45,7 @@
45
45
  top: -5px;
46
46
  left: -6px;
47
47
  color: #fff;
48
- background: @color-pink;
48
+ background: var(--at-color-pink);
49
49
  text-align: center;
50
50
  min-width: 16px;
51
51
  height: 16px;
@@ -66,6 +66,7 @@
66
66
  }
67
67
 
68
68
  & > .atk-list-footer {
69
+ z-index: 1;
69
70
  position: absolute;
70
71
  bottom: 5px;
71
72
  right: 0;
@@ -79,12 +80,12 @@
79
80
  .atk-copyright {
80
81
  display: block;
81
82
  font-size: 12px;
82
- color: @color-meta;
83
+ color: var(--at-color-meta);
83
84
  padding-right: 15px;
84
85
  margin-top: 5px;
85
86
 
86
87
  a {
87
- color: @color-main;
88
+ color: var(--at-color-main);
88
89
  text-decoration: none;
89
90
  }
90
91
  }
@@ -100,7 +101,7 @@
100
101
  }
101
102
 
102
103
  .atk-list-read-more {
103
- border-top: 1px dashed @color-border;
104
+ border-top: 1px dashed var(--at-color-border);
104
105
  margin-top: 20px;
105
106
  padding-bottom: 20px;
106
107
 
@@ -123,11 +124,11 @@
123
124
  width: 120px;
124
125
  margin: 0 auto;
125
126
  margin-top: -15px;
126
- background: @color-bg;
127
- border-color: @color-border;
127
+ background: var(--at-color-bg);
128
+ border-color: var(--at-color-border);
128
129
 
129
130
  &.atk-err > .atk-text {
130
- color: @color-red !important;
131
+ color: var(--at-color-red) !important;
131
132
  }
132
133
 
133
134
  & > .atk-loading-icon {
@@ -136,12 +137,12 @@
136
137
  }
137
138
 
138
139
  & > .atk-text {
139
- color: @color-meta;
140
+ color: var(--at-color-meta);
140
141
  }
141
142
 
142
143
  &:hover {
143
144
  & > .atk-text {
144
- color: @color-main;
145
+ color: var(--at-color-main);
145
146
  }
146
147
  }
147
148
  }
@@ -10,7 +10,7 @@
10
10
  * {
11
11
  box-sizing: border-box;
12
12
  line-height: @line-height;
13
- color: @color-font;
13
+ color: var(--at-color-font);
14
14
  font-family: @font-family;
15
15
  word-wrap: break-word;
16
16
  word-break: break-all;
@@ -19,16 +19,20 @@
19
19
  pre {
20
20
  padding: 10px;
21
21
  line-height: @line-height;
22
- background-color: @color-bg-grey;
23
- color: @color-font;
24
- padding: 5px 10px;
25
- border-radius: calc(@block-radius / 2);
22
+ background-color: var(--at-color-bg-grey);
23
+ color: var(--at-color-font);
24
+ padding: 10px 15px;
25
+ border-radius: @block-radius;
26
26
  margin: 0;
27
27
  font-family: Source Code Pro,courier new,Input Mono,PT Mono,SFMono-Regular,Consolas,Monaco,Menlo,PingFang SC,Liberation Mono,Microsoft YaHei,Courier,monospace;
28
+
29
+ code {
30
+ white-space: pre-wrap;
31
+ }
28
32
  }
29
33
 
30
34
  a {
31
- color: @color-main;
35
+ color: var(--at-color-main);
32
36
  text-decoration: none;
33
37
  }
34
38
 
@@ -36,8 +40,8 @@
36
40
  position: static;
37
41
  margin: 10px 0 10px 0;
38
42
  padding: 10px 20px 10px 20px;
39
- background: @color-bg-grey;
40
- border-left: 4px solid @color-quote;
43
+ background: var(--at-color-bg-grey);
44
+ border-left: 4px solid #687a86;
41
45
  }
42
46
 
43
47
  p:first-child {
@@ -48,10 +52,6 @@
48
52
  margin-bottom: 0;
49
53
  }
50
54
 
51
- * {
52
- box-sizing: border-box;
53
- }
54
-
55
55
  img {
56
56
  max-width: 100%;
57
57
  }
@@ -67,7 +67,7 @@
67
67
  position: absolute;
68
68
  top: 0;
69
69
  left: 0;
70
- background: @color-bg;
70
+ background: var(--at-color-bg);
71
71
  z-index: 10;
72
72
  align-items: center;
73
73
  justify-content: center;
@@ -170,7 +170,7 @@
170
170
  i.atk-icon {
171
171
  width: 20px;
172
172
  height: 20px;
173
- background-color: @color-deep;
173
+ background-color: var(--at-color-deep);
174
174
  background-size: contain;
175
175
  background-repeat: no-repeat;
176
176
  mask-repeat: no-repeat;
@@ -182,7 +182,7 @@ i.atk-icon {
182
182
  }
183
183
 
184
184
  .atk-icon-del {
185
- background-color: @color-red !important;
185
+ background-color: var(--at-color-red) !important;
186
186
  mask-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.29167 5.04166L4.81251 5.04166M4.81251 5.04166L4.81251 18.3333C4.81251 18.5865 5.01771 18.7917 5.27084 18.7917L16.7292 18.7917C16.9823 18.7917 17.1875 18.5865 17.1875 18.3333V5.04166M4.81251 5.04166L7.33334 5.04166M17.1875 5.04166L19.7083 5.04166M17.1875 5.04166L14.6667 5.04166M7.33334 5.04166V3.20833L14.6667 3.20833V5.04166M7.33334 5.04166L14.6667 5.04166' stroke='%23D06565' stroke-width='2'/%3E%3Cpath d='M9.16667 8.25V15.125M12.8333 8.25V15.125' stroke='%23D06565' stroke-width='2'/%3E%3C/svg%3E");
187
187
  }
188
188
 
@@ -205,14 +205,14 @@ i.atk-icon {
205
205
  /* Layer */
206
206
  .atk-error-layer {
207
207
  &:extend(.atk-full-layer);
208
- background-color: @color-bg-transl;
208
+ background-color: var(--at-color-bg-transl);
209
209
 
210
210
  .atk-error-title {
211
- color: @color-red;
211
+ color: var(--at-color-red);
212
212
  }
213
213
 
214
214
  .atk-warn-title {
215
- color: @color-yellow;
215
+ color: var(--at-color-yellow);
216
216
  }
217
217
 
218
218
  .atk-error-title, .atk-warn-title {
@@ -228,11 +228,11 @@ i.atk-icon {
228
228
  padding: 0 20px;
229
229
 
230
230
  * {
231
- color: @color-deep;
231
+ color: var(--at-color-deep);
232
232
  }
233
233
 
234
234
  a {
235
- color: @color-meta;
235
+ color: var(--at-color-meta);
236
236
  }
237
237
  }
238
238
  }
@@ -240,7 +240,7 @@ i.atk-icon {
240
240
  .atk-layer-dialog-wrap {
241
241
  @formInputHeight: 30px;
242
242
  &:extend(.atk-full-layer);
243
- background-color: @color-bg-transl;
243
+ background-color: var(--at-color-bg-transl);
244
244
 
245
245
  & > .atk-layer-dialog {
246
246
  width: 25%;
@@ -252,15 +252,15 @@ i.atk-icon {
252
252
  height: auto;
253
253
  margin-right: 10px;
254
254
  padding-right: 10px;
255
- border-right: 1px solid @color-border;
255
+ border-right: 1px solid var(--at-color-border);
256
256
  vertical-align: bottom;
257
257
  }
258
258
 
259
259
  input {
260
260
  width: 100%;
261
261
  line-height: calc(@formInputHeight + 4px);
262
- background-color: @color-bg;
263
- border: 1px solid @color-border;
262
+ background-color: var(--at-color-bg);
263
+ border: 1px solid var(--at-color-border);
264
264
  border-radius: calc(@block-radius / 2);
265
265
  outline: none;
266
266
  padding: 0 6px;
@@ -279,9 +279,9 @@ i.atk-icon {
279
279
  flex: 1;
280
280
  display: block;
281
281
  cursor: pointer;
282
- border: 1px solid @color-main;
282
+ border: 1px solid var(--at-color-main);
283
283
  background: transparent;
284
- color: @color-main;
284
+ color: var(--at-color-main);
285
285
  border-radius: calc(@block-radius / 2);
286
286
  padding: 0 15px;
287
287
  line-height: @formInputHeight;
@@ -289,7 +289,7 @@ i.atk-icon {
289
289
 
290
290
  &:active {
291
291
  color: #FFF;
292
- background: @color-main;
292
+ background: var(--at-color-main);
293
293
  }
294
294
 
295
295
  &:not(:last-child) {
@@ -355,18 +355,22 @@ i.atk-icon {
355
355
  /* Common Action Btn */
356
356
  .atk-common-action-btn {
357
357
  &.atk-btn-confirm {
358
- color: @color-yellow !important;
358
+ color: var(--at-color-yellow) !important;
359
359
  }
360
360
 
361
361
  &.atk-btn-warn {
362
- color: @color-yellow !important;
362
+ color: var(--at-color-yellow) !important;
363
363
  }
364
364
 
365
365
  &.atk-btn-error {
366
- color: @color-red !important;
366
+ color: var(--at-color-red) !important;
367
367
  }
368
368
 
369
369
  &.atk-btn-success {
370
- color: @color-green !important;
370
+ color: var(--at-color-green) !important;
371
371
  }
372
372
  }
373
+
374
+ img[atk-emoticon] {
375
+ max-height: 60px;
376
+ }
@@ -7,7 +7,7 @@
7
7
  align-items: center;
8
8
 
9
9
  &:not(:last-child) {
10
- border-bottom: 1px solid @color-border;
10
+ border-bottom: 1px solid var(--at-color-border);
11
11
  }
12
12
  }
13
13
 
@@ -18,13 +18,13 @@
18
18
  padding: 20px 30px;
19
19
 
20
20
  .atk-title {
21
- color: @color-font;
21
+ color: var(--at-color-font);
22
22
  font-size: 21px;
23
23
  margin-bottom: 10px;
24
24
  }
25
25
 
26
26
  .atk-sub {
27
- color: @color-sub;
27
+ color: var(--at-color-sub);
28
28
  font-size: 14px;
29
29
  }
30
30
  }
@@ -39,7 +39,7 @@
39
39
 
40
40
  .atk-page-edit-layer {
41
41
  z-index: 999;
42
- background: @color-bg;
42
+ background: var(--at-color-bg);
43
43
  position: absolute;
44
44
  width: 100%;
45
45
  height: 100%;
@@ -9,11 +9,11 @@
9
9
  & > .atk-input {
10
10
  font-size: 15px;
11
11
  height: 32px;
12
- border: 1px solid @color-border;
12
+ border: 1px solid var(--at-color-border);
13
13
  border-radius: 3px;
14
14
  padding: 0 5px;
15
15
  text-align: center;
16
- background: @color-bg;
16
+ background: var(--at-color-bg);
17
17
  }
18
18
 
19
19
  & > .atk-btn {
@@ -25,11 +25,11 @@
25
25
  align-items: center;
26
26
 
27
27
  &:hover {
28
- background: @color-bg-grey;
28
+ background: var(--at-color-bg-grey);
29
29
  }
30
30
 
31
31
  &.atk-disabled {
32
- color: @color-sub;
32
+ color: var(--at-color-sub);
33
33
 
34
34
  &:hover {
35
35
  cursor: default;
@@ -40,13 +40,13 @@
40
40
 
41
41
  & > .atk-input {
42
42
  background: transparent;
43
- color: @color-font;
43
+ color: var(--at-color-font);
44
44
  font-size: 18px;
45
45
  width: 60px;
46
46
  outline: none;
47
47
 
48
48
  &:focus {
49
- border-color: @color-main;
49
+ border-color: var(--at-color-main);
50
50
  }
51
51
  }
52
52