2021-07-28 22:15:52 +09:00
|
|
|
@mixin font($type, $weight) {
|
|
|
|
|
|
|
|
font-size: var(--fs-#{$type});
|
|
|
|
font-weight: $weight;
|
|
|
|
letter-spacing: var(--ls-#{$type});
|
|
|
|
line-height: var(--lh-#{$type});
|
2021-11-23 15:26:02 +09:00
|
|
|
|
|
|
|
& img.emoji,
|
|
|
|
& img[data-mx-emoticon] {
|
|
|
|
height: var(--fs-#{$type});
|
|
|
|
}
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
%text {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
color: var(--tc-surface-high);
|
2021-11-23 15:26:02 +09:00
|
|
|
|
|
|
|
& img.emoji,
|
|
|
|
& img[data-mx-emoticon] {
|
|
|
|
margin: 0 !important;
|
|
|
|
margin-right: 2px !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
}
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.text-h1 {
|
|
|
|
@extend %text;
|
|
|
|
@include font(h1, 500);
|
|
|
|
}
|
|
|
|
.text-h2 {
|
|
|
|
@extend %text;
|
|
|
|
@include font(h2, 500);
|
|
|
|
}
|
|
|
|
.text-s1 {
|
|
|
|
@extend %text;
|
|
|
|
@include font(s1, 400);
|
|
|
|
}
|
|
|
|
.text-b1 {
|
|
|
|
@extend %text;
|
|
|
|
@include font(b1, 400);
|
|
|
|
color: var(--tc-surface-normal);
|
|
|
|
}
|
|
|
|
.text-b2 {
|
|
|
|
@extend %text;
|
|
|
|
@include font(b2, 400);
|
|
|
|
color: var(--tc-surface-normal);
|
|
|
|
}
|
|
|
|
.text-b3 {
|
|
|
|
@extend %text;
|
|
|
|
@include font(b3, 400);
|
|
|
|
color: var(--tc-surface-low);
|
|
|
|
}
|