Merge 39efd2f4ee
into 7d7a12d7d6
This commit is contained in:
commit
aabcd85190
|
@ -1,5 +1,8 @@
|
|||
## Unreleased
|
||||
|
||||
### Note
|
||||
- MFM `$[tada ]` をネストしても、文字列は1段階しか大きくならないようになりました
|
||||
|
||||
### General
|
||||
-
|
||||
|
||||
|
|
|
@ -128,8 +128,11 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
|
|||
case 'tada': {
|
||||
const speed = validTime(token.props.args.speed) ?? '1s';
|
||||
const delay = validTime(token.props.args.delay) ?? '0s';
|
||||
style = 'font-size: 150%;' + (useAnim ? `animation: global-tada ${speed} linear infinite both; animation-delay: ${delay};` : '');
|
||||
break;
|
||||
style = (useAnim ? `animation: global-tada ${speed} linear infinite both; animation-delay: ${delay};` : '');
|
||||
return h('span', {
|
||||
style: 'display: inline-block; ' + style,
|
||||
class: 'mfm-tada',
|
||||
}, genEl(token.children, scale));
|
||||
}
|
||||
case 'jelly': {
|
||||
const speed = validTime(token.props.args.speed) ?? '1s';
|
||||
|
|
|
@ -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-zoom-size: 200%;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue