Compare commits

...

7 Commits

Author SHA1 Message Date
かっこかり e15bfa6e02
Merge 39efd2f4ee into 0e4b6d1dad 2024-09-15 19:25:28 +09:00
かっこかり 39efd2f4ee
Merge branch 'develop' into enh-mfm-tada 2024-06-01 16:45:44 +09:00
かっこかり b4b552fe71
Merge branch 'develop' into enh-mfm-tada 2024-05-15 19:37:31 +09:00
kakkokari-gtyih 0ab421aef8 ✌️ 2024-04-28 14:30:24 +09:00
kakkokari-gtyih c5e87bd9a8 fix 2024-04-28 14:29:55 +09:00
kakkokari-gtyih 843d9c97bf Update Changelog 2024-04-28 14:24:09 +09:00
kakkokari-gtyih 3a4db9c73c change(mfm): `$[tada ]` のフォントサイズは1段階しか大きくならないように 2024-04-28 14:22:01 +09:00
3 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,8 @@
## Unreleased ## Unreleased
### Note
- MFM `$[tada ]` をネストしても、文字列は1段階しか大きくならないようになりました
### General ### General
- -

View File

@ -128,8 +128,11 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
case 'tada': { case 'tada': {
const speed = validTime(token.props.args.speed) ?? '1s'; const speed = validTime(token.props.args.speed) ?? '1s';
const delay = validTime(token.props.args.delay) ?? '0s'; const delay = validTime(token.props.args.delay) ?? '0s';
style = 'font-size: 150%;' + (useAnim ? `animation: global-tada ${speed} linear infinite both; animation-delay: ${delay};` : ''); style = (useAnim ? `animation: global-tada ${speed} linear infinite both; animation-delay: ${delay};` : '');
break; return h('span', {
style: 'display: inline-block; ' + style,
class: 'mfm-tada',
}, genEl(token.children, scale));
} }
case 'jelly': { case 'jelly': {
const speed = validTime(token.props.args.speed) ?? '1s'; const speed = validTime(token.props.args.speed) ?? '1s';

View File

@ -553,6 +553,14 @@ html[data-color-mode=dark] ._woodenFrame {
} }
} }
.mfm-tada {
font-size: 150%;
}
.mfm-tada:has(.mfm-tada) {
font-size: 100%;
}
.mfm-x2 { .mfm-x2 {
--mfm-zoom-size: 200%; --mfm-zoom-size: 200%;
} }