diff --git a/themes/coders-tokyo/layout/_partial/article.ejs b/themes/coders-tokyo/layout/_partial/article.ejs index 3b73bb9..9fb5c19 100644 --- a/themes/coders-tokyo/layout/_partial/article.ejs +++ b/themes/coders-tokyo/layout/_partial/article.ejs @@ -1,23 +1,14 @@ - +
-
+
<% if (post.excerpt && index){ %> <%- post.excerpt %> <% if (theme.excerpt_link){ %>

- <%= theme.excerpt_link %> + <%= theme.excerpt_link %>

<% } %> <% } else { %>
@@ -31,31 +22,30 @@ <% } %> <% if (!index && post.comments && config.disqus_shortname){ %>
- +
<% } %> <% if (config.disqus_shortname){ %> <% } %>
+
@@ -63,3 +53,16 @@ + + \ No newline at end of file diff --git a/themes/coders-tokyo/source/css/custom.css b/themes/coders-tokyo/source/css/custom.css index 0a041ea..0779b7f 100644 --- a/themes/coders-tokyo/source/css/custom.css +++ b/themes/coders-tokyo/source/css/custom.css @@ -60,6 +60,32 @@ article .article__body h4 { font-weight: 600; } +article .scroll_top_btn { + position: fixed; + bottom: 1.3rem; + right: 7rem; + width: 54px; + height: 54px; + border-radius: 50%; + box-shadow: 5px 0 20px 5px rgba(0, 0, 0, 0.1); + border: none; + background: #fff; + transition: 200ms ease; +} +article .scroll_top_btn:active { + transform: scale(0.9); +} +article .scroll_top_btn img { + width: 28px; + height: auto; +} +@media (max-width: 768px) { + article .scroll_top_btn { + right: 6.2rem; + bottom: 0.68rem; + } +} + /* ------------------ Tuts Page ------------------ */ .course-thumbnail { border-radius: 4px;