优化 remark 样式

This commit is contained in:
2betop 2020-07-13 18:14:13 +08:00
parent 63d97bc511
commit 4eeb473598
2 changed files with 16 additions and 8 deletions

View File

@ -1,21 +1,25 @@
.#{$ns}Remark {
display: inline-block;
margin-left: $Remark-marginLeft;
color: $Remark-iconColor;
font-size: $fontSizeBase;
line-height: 1;
cursor: pointer;
background-color: $Remark-bg;
border: $Remark-borderWidth solid $Remark-borderColor;
text-align: center;
width: $Remark-width;
&-icon {
color: inherit;
color: $Remark-iconColor;
font-size: $Remark-icon-fontSize;
background-color: $Remark-bg;
border: $Remark-borderWidth solid $Remark-borderColor;
width: $Remark-width;
height: $Remark-width;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: $fontSizeBase;
}
&:hover {
&:hover > &-icon {
color: $Remark-onHover-iconColor;
background-color: $Remark-onHover-bg;
border-color: $Remark-onHover-borderColor;

View File

@ -271,6 +271,10 @@
display: inline-block;
}
> .#{$ns}Remark {
padding-top: $Form-label-paddingTop;
}
> .#{$ns}Form-control.#{$ns}InputGroup {
display: inline-flex;
}