diff options
| author | Eltrac <eltrac233@gmail.com> | 2024-11-19 23:56:38 +0800 |
|---|---|---|
| committer | Eltrac <eltrac233@gmail.com> | 2024-11-19 23:56:38 +0800 |
| commit | aad37fd698b35e1d7b53f8a153ad32d3986ee755 (patch) | |
| tree | 6ecc08a8770eb19e7d337c84ea063ec5a3a9b2fe /themes | |
| parent | 8d3e60f42a4d342f852411e1ea92c61f7181bcc5 (diff) | |
update
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/yinyang/assets/css/index.css | 35 | ||||
| -rw-r--r-- | themes/yinyang/layouts/shortcodes/quotecard.html | 3 |
2 files changed, 36 insertions, 2 deletions
diff --git a/themes/yinyang/assets/css/index.css b/themes/yinyang/assets/css/index.css index 8a1fe949..f0259a2f 100644 --- a/themes/yinyang/assets/css/index.css +++ b/themes/yinyang/assets/css/index.css @@ -20,7 +20,7 @@ .dark { --background-color: #1D2021; --block-background-color: #181A1B; - --border-color: #d0d7de; + --border-color: rgba(255,255,255,0.2); --text-color: #D2CEC9; --secondary-text-color: #A1998D; --link-color: #277BD9 @@ -30,7 +30,7 @@ :root { --background-color: #1D2021; --block-background-color: #181A1B; - --border-color: #d0d7de; + --border-color: rgba(255,255,255,0.2); --text-color: #D2CEC9; --secondary-text-color: #A1998D; --link-color: #277BD9 @@ -478,3 +478,34 @@ a:hover { .callout .callout-content p { margin: 0; } + +/* quote shortcode */ + +.quote-card { + --card-bg: rgba(255,255,255,0.25); + --card-bg-lighter: rgba(255,255,255,0.1); + --card-noise: rgba(255,255,255,0.04); + + font-size: 1.5rem; + font-style: italic; + text-align: center; + margin: 5rem 3rem; + padding: 1rem; + border: 1px solid var(--border-color); + border-radius: 1rem; + box-shadow: 0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a; + transform: rotate(3deg); + background-color: rgba(255,255,255,0.35); + + background: linear-gradient(var(--card-bg-lighter), var(--card-bg-lighter)), + repeating-radial-gradient(var(--card-bg) 0 0.0001%, var(--card-noise) 0 0.0002%) 50% 0 / 2500px 2500px, + repeating-conic-gradient(var(--card-bg) 0 0.0001%, var(--card-noise) 0 0.0002%) 60% 60% / 2500px 2500px; + background-blend-mode: normal, difference; +} + +@media screen and (max-width: 768px) { + .quote-card { + font-size: 1.2rem; + margin: 3rem 1rem; + } +} diff --git a/themes/yinyang/layouts/shortcodes/quotecard.html b/themes/yinyang/layouts/shortcodes/quotecard.html new file mode 100644 index 00000000..dfaf04e2 --- /dev/null +++ b/themes/yinyang/layouts/shortcodes/quotecard.html @@ -0,0 +1,3 @@ +<div class="quote-card" {{ with .Get "rotate" }}style="transform: rotate({{. }}deg)"{{ end }}> + {{ .Inner | markdownify }} +</div>
\ No newline at end of file |
