From 66a1f62986d9f157e1d03080f9974ace21681228 Mon Sep 17 00:00:00 2001 From: zhaospei Date: Mon, 6 Feb 2023 00:40:04 +0700 Subject: [PATCH] change show-more pre-expand-blog background --- resources/blog.scss | 8 ++++++-- resources/darkmode.css | 2 +- templates/blog/content.html | 2 +- templates/problem/feed.html | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/resources/blog.scss b/resources/blog.scss index 98e9008..f3c2051 100644 --- a/resources/blog.scss +++ b/resources/blog.scss @@ -152,6 +152,10 @@ } } +.blog-box:hover { + border-color: #8a8a8a; +} + .blog-description { max-height: 30em; overflow: hidden; @@ -230,8 +234,8 @@ padding: 0px 12px; margin-top: 5px; position: absolute; - inset: 50% 0px 60px; - background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 1%, #f3f3f3 95%, #f3f3f3 100%); + inset: 50% 0px 52px; + background: linear-gradient(transparent, white); display: flex; -webkit-box-pack: end; justify-content: flex-end; diff --git a/resources/darkmode.css b/resources/darkmode.css index 321448d..2045261 100644 --- a/resources/darkmode.css +++ b/resources/darkmode.css @@ -1940,7 +1940,7 @@ noscript #noscript { } .show-more { color: white; - background: linear-gradient(rgba(24, 26, 27, 0) 1%, rgb(31, 33, 35) 95%, rgb(31, 33, 35) 100%); + background: linear-gradient(rgba(0, 0, 0, 0), rgb(24, 26, 27)); } @media (min-width: 800px) { diff --git a/templates/blog/content.html b/templates/blog/content.html index 524433f..7f77438 100644 --- a/templates/blog/content.html +++ b/templates/blog/content.html @@ -48,7 +48,7 @@ {% set pagevote = post.pagevote %} {% set bookmark = post.bookmark %} {% set hide_actionbar_comment = True %} - {% set include_hr = True %} + {% set include_hr = False %} {% set share_url = request.build_absolute_uri(post.get_absolute_url()) %} {% include "actionbar/list.html" %} diff --git a/templates/problem/feed.html b/templates/problem/feed.html index be3f868..b64dfe7 100644 --- a/templates/problem/feed.html +++ b/templates/problem/feed.html @@ -138,7 +138,7 @@ {% set pagevote = problem.pagevote %} {% set bookmark = problem.bookmark %} {% set hide_actionbar_comment = True %} - {% set include_hr = True %} + {% set include_hr = False %} {% set share_url = request.build_absolute_uri(problem.get_absolute_url()) %} {% include "actionbar/list.html" %}