feat: 字母描红页样式开发基本完成
This commit is contained in:
@@ -24,9 +24,13 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 内层 text 显示 iconfont 字形 */
|
||||
/* 内层 text 承载 ::before 字形,固定 1em 方盒便于与 flex 行内文案垂直对齐 */
|
||||
> text {
|
||||
display: inline-block;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
line-height: 1;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@@ -66,10 +66,8 @@ Component({
|
||||
const styleSegments = [style];
|
||||
if (normalizedSize) {
|
||||
styleSegments.push(`font-size:${normalizedSize}`);
|
||||
if (isImage) {
|
||||
styleSegments.push(`width:${normalizedSize}`);
|
||||
styleSegments.push(`height:${normalizedSize}`);
|
||||
}
|
||||
styleSegments.push(`width:${normalizedSize}`);
|
||||
styleSegments.push(`height:${normalizedSize}`);
|
||||
}
|
||||
if (color && !isImage) {
|
||||
styleSegments.push(`color:${color}`);
|
||||
|
||||
Reference in New Issue
Block a user