From 39105f5a8b609ec8ff7772ca1883e6d6a0a81b62 Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:40:37 +0900 Subject: デザインを変更 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BlockQuote.js | 2 +- src/components/BlockQuote.module.css | 39 ++++++++++++++++++++++++++++++++++-- src/components/bxs--quote-left.svg | 1 + 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 src/components/bxs--quote-left.svg (limited to 'src') diff --git a/src/components/BlockQuote.js b/src/components/BlockQuote.js index 3a198a15..18eac100 100644 --- a/src/components/BlockQuote.js +++ b/src/components/BlockQuote.js @@ -6,8 +6,8 @@ import { Icon } from '@iconify/react'; // Import the entire Iconify library. export default function BlockQuote({children, refs, href}) { return (
+); } \ No newline at end of file diff --git a/src/components/BlockQuote.module.css b/src/components/BlockQuote.module.css index 0b8256e7..efa88e2e 100644 --- a/src/components/BlockQuote.module.css +++ b/src/components/BlockQuote.module.css @@ -1,3 +1,38 @@ .qt { - background-color: var(--ifm-code-background); -} \ No newline at end of file + position:relative; + border-radius:10px; + padding:20px; + border: 1px dashed; + margin-left: 6%; + margin-right: 6%; +} +/* mobile */ +@media screen and (max-width: 996px) { + .qt { + margin-left:0; + margin-right:0; + } +} + +.qt:before { + position:absolute; + left:2%; + top:-18px; + box-sizing:border-box; + content: ""; + mask: url("bxs--quote-left.svg") no-repeat 50% 50%; + mask-size: cover; + background-color: var(--ifm-font-color-secondary); + padding-top:12px; + width: 32px; + height:32px; +} + +.qt cite { + font-weight: bold; + display:block; + font-style:normal; + margin-bottom: var(--ifm-paragraph-margin-bottom); + font-size: calc(var(--ifm-font-size-base)*1.05); +} + diff --git a/src/components/bxs--quote-left.svg b/src/components/bxs--quote-left.svg new file mode 100644 index 00000000..44219ed9 --- /dev/null +++ b/src/components/bxs--quote-left.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3-54-g00ecf{children} - {refs}