diff --git a/templates/post.html b/templates/post.html index 4749df9..4de3f8e 100644 --- a/templates/post.html +++ b/templates/post.html @@ -19,6 +19,26 @@ .title-right .circle{padding: 14px 16px;margin-right:8px;} #postBody{border-bottom: 1px solid var(--color-border-default);padding-bottom:36px;} #postBody hr{height:2px;} +#postBody .paragraph { + display: block; + position: relative; + padding-right: 30px; + cursor: pointer; + user-select: text; + } + #postBody .paragraph.highlighted { + background-color: #ffffcc; + } + #postBody .paragraph .note-text { + display: block; + margin-top: 4px; + font-size: 0.9em; + color: #333; + background: #fffae6; + border-left: 3px solid #f0c000; + padding: 2px 6px; + user-select: text; + } #cmButton{height:48px;margin-top:48px;} #comments{margin-top:64px;} .g-emoji{font-size:24px;} @@ -38,6 +58,31 @@ padding: 5px 8px; font-size: 12px; }{% endif %} + +.highlighted-sentence { + background: yellow; + transition: background 0.3s ease; +} +#backToTopBtn { + position: fixed; + bottom: 40px; + right: 30px; + z-index: 999; + background-color: #007bff; + color: white; + border: none; + outline: none; + padding: 10px 14px; + border-radius: 50%; + cursor: pointer; + font-size: 20px; + box-shadow: 0 2px 8px rgba(0,0,0,0.3); + transition: opacity 0.3s ease; +} + +#backToTopBtn:hover { + background-color: #0056b3; +} {{ blogBase['style'] }} @@ -64,6 +109,16 @@ + + + + + + {% endblock %} @@ -74,12 +129,21 @@
{% endif %} + + {% endblock %} {% block script %} + {{ blogBase['script'] }} {% endblock %}