From 870e747120c029fcec2d6b513bd4bd1a794195be Mon Sep 17 00:00:00 2001 From: fechin Date: Sat, 19 Nov 2022 11:20:51 +0800 Subject: [PATCH] Added transition effect --- themes/coo/layout/_partial/header.ejs | 12 ++++++------ themes/coo/layout/_partial/index/request.ejs | 4 ++-- .../coo/layout/_partial/post/popular_card.ejs | 2 +- themes/coo/layout/_partial/share.ejs | 18 +++++++----------- themes/coo/source/css/components/layer.css | 4 ++++ themes/coo/source/css/style.tailwindcss | 4 ++-- themes/coo/source/js/main.js | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/themes/coo/layout/_partial/header.ejs b/themes/coo/layout/_partial/header.ejs index a61008c..1ef62a8 100644 --- a/themes/coo/layout/_partial/header.ejs +++ b/themes/coo/layout/_partial/header.ejs @@ -5,7 +5,7 @@ <%- partial('index/logo', {icon: true}) %>
@@ -23,25 +23,25 @@ <% if (postPage) { %> <% } %> - " target="_blank"> " target="_blank"> diff --git a/themes/coo/layout/_partial/index/request.ejs b/themes/coo/layout/_partial/index/request.ejs index ad33114..4fef4f1 100644 --- a/themes/coo/layout/_partial/index/request.ejs +++ b/themes/coo/layout/_partial/index/request.ejs @@ -10,11 +10,11 @@

diff --git a/themes/coo/layout/_partial/post/popular_card.ejs b/themes/coo/layout/_partial/post/popular_card.ejs index 8093bcb..1ab10f6 100644 --- a/themes/coo/layout/_partial/post/popular_card.ejs +++ b/themes/coo/layout/_partial/post/popular_card.ejs @@ -1,5 +1,5 @@ + class="group flex items-center p-3 bg-slate-50 rounded-lg hover:shadow dark:bg-slate-900 hover:bg-emerald-500 fadeIn">

<%= post.title %> Cheatsheet diff --git a/themes/coo/layout/_partial/share.ejs b/themes/coo/layout/_partial/share.ejs index 29887df..79abbfa 100644 --- a/themes/coo/layout/_partial/share.ejs +++ b/themes/coo/layout/_partial/share.ejs @@ -1,11 +1,7 @@ - - " target="_blank"> - " target="_blank"> - " target="_blank"> - " target="_blank"> - " target="_blank"> - \ No newline at end of file +

\ No newline at end of file diff --git a/themes/coo/source/css/components/layer.css b/themes/coo/source/css/components/layer.css index 97f272b..08da839 100644 --- a/themes/coo/source/css/components/layer.css +++ b/themes/coo/source/css/components/layer.css @@ -6,6 +6,10 @@ .closeAnimation { animation: 200ms cubic-bezier(0.4, 0, 1, 1) 0s 1 normal both running closeAnimation; } + + .fadeIn { + @apply animate-in fade-in duration-100; + } } diff --git a/themes/coo/source/css/style.tailwindcss b/themes/coo/source/css/style.tailwindcss index 62f9ca8..2031d42 100644 --- a/themes/coo/source/css/style.tailwindcss +++ b/themes/coo/source/css/style.tailwindcss @@ -45,9 +45,9 @@ html.scrollbar { } .home .card { - @apply p-4 flex items-center rounded-lg shadow-sm cursor-pointer text-slate-800 bg-opacity-60; + @apply p-4 flex items-center rounded-lg shadow-sm cursor-pointer text-slate-800 bg-opacity-60 fadeIn; @apply dark:text-slate-300 dark:bg-opacity-50; - @apply hover:text-slate-100 hover:bg-opacity-100 hover:shadow-lg; + @apply hover:text-slate-50/90 hover:bg-opacity-100 hover:shadow-xl; } .home .card > i { diff --git a/themes/coo/source/js/main.js b/themes/coo/source/js/main.js index f2a8507..172815f 100644 --- a/themes/coo/source/js/main.js +++ b/themes/coo/source/js/main.js @@ -424,7 +424,7 @@ window.addEventListener('load', () => { if (tagStr !== "") { tagsHTML = `
${tagStr}` } - liHtml += `
  • + liHtml += `