Skip to content

Commit 274a6cc

Browse files
committed
refactor: remove c- prefix and fix icon position
1 parent f6c622d commit 274a6cc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scss/_icon.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1-
.c-icon {
1+
.icon {
22
display: inline-block;
33
color: inherit;
44
text-align: center;
5+
vertical-align: -.125rem; // Fix the position of icon
56
fill: currentColor;
6-
&:not(.c-icon-c-s):not(.c-icon-custom-size) {
7+
&:not(.icon-c-s):not(.icon-custom-size) {
78
@include icon-size($icon-size-base);
89

910
// TODO: create variable with a range
1011
@for $i from 2 through 9 {
11-
&.c-icon-#{$i}xl {
12+
&.icon-#{$i}xl {
1213
@include icon-size($i * ($icon-size-xl / 1.5));
1314
}
1415
}
1516

16-
&.c-icon-xl {
17+
&.icon-xl {
1718
@include icon-size($icon-size-xl);
1819
}
1920

20-
&.c-icon-lg {
21+
&.icon-lg {
2122
@include icon-size($icon-size-lg);
2223
}
2324

24-
&.c-icon-sm {
25+
&.icon-sm {
2526
@include icon-size($icon-size-sm);
2627
}
2728
}

0 commit comments

Comments
 (0)