Skip to content

Commit 2f58705

Browse files
committed
refactor: list convert Light DOM LESS to SCSS
1 parent ec81041 commit 2f58705

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

src/less/components.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
@import 'components/dropdown-select/index';
3030
@import 'components/file/index';
3131
@import 'components/form/index';
32-
@import 'components/list/index';
3332
@import 'components/popover/index';
3433
@import 'components/radio/index';
3534
@import 'components/search/index';

src/scss/components/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@import "grid/index";
99
@import "icon/index";
1010
@import "layout/index";
11+
@import "list/index";
1112
@import "loader/index";
1213
@import "menu/index";
1314
@import "modal/index";

src/less/components/list/index.less renamed to src/scss/components/list/_index.scss

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
1-
@import (reference) 'components/grid/index';
2-
3-
#List {
4-
.reset() {
5-
margin: 1em 0;
6-
}
7-
}
1+
@import "components/grid/config";
82

93
dl.hxList {
10-
#List.reset();
4+
margin: 1em 0;
115
display: block;
126

137
> div {
148
display: flex;
159

1610
+ div {
17-
margin-top: @grid-gutter-size; // 20px
11+
margin-top: $gutter-size; // 20px
1812
}
1913
}
2014

2115
dd {
22-
#grid.span(10);
16+
@include grid-span(10);
17+
2318
display: block;
2419
flex-shrink: 1;
25-
margin-left: @grid-gutter-size; // 20px
20+
margin-left: $gutter-size; // 20px
2621
order: 2;
2722
}
2823

2924
dt {
30-
#grid.span(2);
31-
color: @gray-750;
25+
@include grid-span(2);
26+
27+
color: $gray-750;
3228
display: block;
3329
flex-shrink: 1;
3430
order: 1;
@@ -71,12 +67,16 @@ ul.hxList {
7167

7268
ol.hxList {
7369
list-style-type: decimal;
70+
7471
ol {
7572
list-style-type: upper-alpha;
73+
7674
ol {
7775
list-style-type: upper-roman;
76+
7877
ol {
7978
list-style-type: lower-alpha;
79+
8080
ol {
8181
list-style-type: lower-roman;
8282
}
@@ -87,14 +87,15 @@ ol.hxList {
8787

8888
ul.hxList {
8989
list-style-type: square;
90+
9091
ul {
9192
list-style-type: square;
9293
}
9394
}
9495

9596
// DEPRECATED: remove in v1.0.0
9697
hx-def + hx-def {
97-
margin-top: @grid-gutter-size; // 20px
98+
margin-top: $gutter-size; // 20px
9899
}
99100

100101
hx-dl.hxVertical {

0 commit comments

Comments
 (0)