From 273f94983947dd0d770baf99c74f9608534f6bb2 Mon Sep 17 00:00:00 2001 From: hypercross Date: Fri, 27 Mar 2026 14:16:25 +0800 Subject: [PATCH] refactor: details --- docs/markdown.md | 4 ++-- src/styles.css | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/markdown.md b/docs/markdown.md index 0726c13..4f2f1db 100644 --- a/docs/markdown.md +++ b/docs/markdown.md @@ -104,8 +104,8 @@ ``` **功能:** -- 点击骰子图标执行掷骰 -- 点击文本重置为公式 +- 点击文本执行掷骰 +- 点击骰子图标重置为公式 - `key` 属性将结果记录到 URL 参数中 (`?dice-attack=15`) **属性:** diff --git a/src/styles.css b/src/styles.css index a696fe1..bb81550 100644 --- a/src/styles.css +++ b/src/styles.css @@ -4,8 +4,8 @@ /* icon */ icon, pull{ @apply inline-block; - width: 2em; - height: 2em; + width: 1.5em; + height: 1.28em; vertical-align: text-bottom; --icon-src: ''; background-image: var(--icon-src); @@ -13,10 +13,9 @@ icon, pull{ background-position: center; background-repeat: no-repeat; } -icon.mini{ - width: 1.5em; - height: 1.28em; - vertical-align: text-bottom; +icon.big{ + width: 2em; + height: 2em; } pull{ margin-right: -.5em;