amis2/scss/components/_remark.scss

56 lines
1.2 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;
margin-left: var(--Remark-marginLeft);
2020-10-22 12:16:09 +08:00
> span {
color: var(--Remark-iconColor);
font-size: var(--fontSizeSm);
2020-10-22 12:16:09 +08:00
}
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 {
color: var(--Remark-iconColor);
font-size: var(--Remark-icon-fontSize);
background: var(--Remark-bg);
border: var(--Remark-borderWidth) solid var(--Remark-borderColor);
width: var(--Remark-width);
height: var(--Remark-width);
2020-07-13 18:14:13 +08:00
line-height: 1;
display: inline-flex;
2020-12-24 22:16:59 +08:00
vertical-align: baseline;
align-self: center;
2020-07-13 18:14:13 +08:00
align-items: center;
justify-content: center;
font-size: var(--fontSizeSm);
2020-10-24 11:39:05 +08:00
user-select: none;
> svg {
width: 100%;
height: 100%;
2020-12-24 22:16:59 +08:00
display: block;
2020-10-24 11:39:05 +08:00
}
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: var(--gap-xs);
2020-10-22 12:16:09 +08:00
}
2020-07-13 18:14:13 +08:00
&:hover > &-icon {
color: var(--Remark-onHover-iconColor);
background: var(--Remark-onHover-bg);
border-color: var(--Remark-onHover-borderColor);
2019-12-06 09:58:08 +08:00
}
2020-07-28 16:14:08 +08:00
> svg {
width: calc(var(--Remark-width) - #{px2rem(2px)});
height: calc(var(--Remark-width) - #{px2rem(2px)});
color: var(--Remark-iconColor);
2020-07-28 16:14:08 +08:00
}
&:hover > svg {
color: var(--Remark-onHover-iconColor);
2020-07-28 16:14:08 +08:00
}
}