amis/scss/components/_remark.scss

54 lines
1.1 KiB
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}Remark {
2019-12-06 09:58:08 +08:00
display: inline-block;
2020-10-24 17:04:54 +08:00
vertical-align: middle;
2019-12-06 09:58:08 +08:00
margin-left: $Remark-marginLeft;
2020-10-22 12:16:09 +08:00
> span {
color: $Remark-iconColor;
font-size: $fontSizeSm;
}
2020-07-13 18:14:13 +08:00
2019-12-06 09:58:08 +08:00
cursor: pointer;
text-align: center;
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&-icon {
2020-07-13 18:14:13 +08:00
color: $Remark-iconColor;
2019-12-06 09:58:08 +08:00
font-size: $Remark-icon-fontSize;
2020-07-13 18:14:13 +08:00
background-color: $Remark-bg;
border: $Remark-borderWidth solid $Remark-borderColor;
width: $Remark-width;
height: $Remark-width;
line-height: 1;
display: inline-flex;
2020-11-01 12:29:57 +08:00
vertical-align: top;
2020-07-13 18:14:13 +08:00
align-items: center;
justify-content: center;
2020-10-24 10:18:02 +08:00
font-size: $fontSizeSm;
2020-10-24 11:39:05 +08:00
user-select: none;
> svg {
width: 100%;
height: 100%;
}
2019-12-06 09:58:08 +08:00
}
2019-04-30 11:11:25 +08:00
2020-10-22 12:16:09 +08:00
> span + .#{$ns}Remark-icon {
margin-left: $gap-xs;
}
2020-07-13 18:14:13 +08:00
&:hover > &-icon {
2019-12-06 09:58:08 +08:00
color: $Remark-onHover-iconColor;
background-color: $Remark-onHover-bg;
border-color: $Remark-onHover-borderColor;
}
2020-07-28 16:14:08 +08:00
> svg {
width: ($Remark-width - px2rem(2px));
height: ($Remark-width - px2rem(2px));
color: $Remark-iconColor;
}
&:hover > svg {
color: $Remark-onHover-iconColor;
}
}