8000 fix(icon-text): icon-text support line-height · atinc/ngx-tethys@bef71de · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit bef71de

Browse files
committed
fix(icon-text): icon-text support line-height
1 parent 0e672c5 commit bef71de

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

src/styles/modules/icon-text.scss

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,28 @@
44
position: relative;
55
font-size: $font-size-base;
66
padding-left: 26px;
7-
7+
88
i {
9-
position: absolute;
10-
top: -5px;
11-
left: 0;
12-
font-size: 20px;
9+
position: absolute;
10+
top: 50%;
11+
left: 0;
12+
font-size: 20px;
13+
transform: translateY(-50%);
1314
}
14-
15+
1516
&-lg {
16-
padding-left: 28px;
17-
18-
i {
19-
font-size: 24px;
20-
top: -8px;
21-
}
17+
padding-left: 28px;
18+
19+
i {
20+
font-size: 24px;
21+
}
2222
}
23-
23+
2424
&-sm {
25-
padding-left: 25px;
26-
27-
i {
28-
font-size: 18px;
29-
top: -4px;
30-
}
25+
padding-left: 25px;
26+
27+
i {
28+
font-size: 18px;
29+
}
3130
}
3231
}
33-

0 commit comments

Comments
 (0)
0