From dfb686dc91b3fdfef6897bff0fb18ebe8c6d169f Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 2 Feb 2024 16:53:47 +0800 Subject: [PATCH] Update Callout style for website. --- feishu-docx/package.json | 4 ++-- website/style.scss | 17 ++++++++++++++++- yarn.lock | 14 ++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/feishu-docx/package.json b/feishu-docx/package.json index c5444f7..3af2ef0 100644 --- a/feishu-docx/package.json +++ b/feishu-docx/package.json @@ -1,6 +1,6 @@ { "name": "feishu-docx", - "version": "0.6.3", + "version": "0.6.4", "description": "Convert Feishu Docx into other format (Markdown, HTML ...)", "module": "src/index.ts", "main": "dist/index.js", @@ -35,4 +35,4 @@ "ts-jest": "^29.1.1" }, "license": "MIT" -} \ No newline at end of file +} diff --git a/website/style.scss b/website/style.scss index a02d76f..31ffadd 100644 --- a/website/style.scss +++ b/website/style.scss @@ -21,11 +21,26 @@ ol { } .callout { - padding: 0.5em 1em; + padding: 1em 1em 1em 3em; margin: 1.5em 0; border: 2px solid #ccc; border-radius: 5px; font-size: 1em; + @apply relative; + + &-emoji { + left: 1em; + top: 0.8em; + font-size: 1.2em; + @apply absolute; + } + + p, ul, ol { + margin-top: 0; + } + & > *:last-child { + margin-bottom: 0; + } &-bg-1, &-bg-8 { diff --git a/yarn.lock b/yarn.lock index ad4fc95..063e0c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2012,6 +2012,20 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" +feishu-docx@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/feishu-docx/-/feishu-docx-0.6.3.tgz#9c9a2f0d49324a262053f02278d7dc0e2973e4bc" + integrity sha512-+zibgYVY7chFu/jHwKiv0y/BZvLk6AqIe6iRm7gYswJDB2JIbjb5tFBMXcv/vYAUpH80gNDmR2hcInq4R24mNA== + dependencies: + "@types/node" "^20.5.7" + dotenv "^16.3.1" + feishu-docx "^0.1.3" + js-yaml "^4.1.0" + jsdom "^22.1.0" + marked "^9.1.2" + marked-xhtml "^1.0.7" + typescript "^5.2.2" + feishu-docx@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/feishu-docx/-/feishu-docx-0.1.4.tgz#53e506ec7d8acc8641522b55c9e8625d2fff0648"