From 79159ca39757db126c04815ce2e8ea1361475591 Mon Sep 17 00:00:00 2001 From: Damillora Date: Tue, 16 Jun 2020 17:47:02 +0700 Subject: [PATCH] Theme tweaks --- assets/css/styles.css | 35 +++++++++++++++++++++--- partials/post-card.hbs | 6 ++--- post.hbs | 60 ++++++++++++++++++++++-------------------- 3 files changed, 65 insertions(+), 36 deletions(-) diff --git a/assets/css/styles.css b/assets/css/styles.css index 5bcb28d..153b644 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -16,13 +16,23 @@ header { @apply transition-bg; } .index-navbar header { + @apply transition-bg; background-color: transparent; } +.index-navbar:hover header { + @apply bg-yuika-blue-700 transition-bg; +} .index-header { min-height: 300px; height: 50vh; } +@screen md { + .index-header { + height: 70vh; + } +} + .no-image { @apply bg-yuika-blue-500 } @@ -65,7 +75,7 @@ header { @apply border-l-4 border-yuika-blue-700 pl-8; } #post pre { - @apply bg-gray-200 text-yuika-blue-700 px-2 py-2 border border-yuika-blue-500; + @apply bg-gray-200 text-yuika-blue-700 px-2 py-2 px-2 border border-yuika-blue-500; } #post .kg-card { @apply py-4 flex flex-col items-center object-contain my-4 mx-0; @@ -165,7 +175,7 @@ footer { line-height: 2rem; } .nav li:hover { - @apply bg-yuika-blue-700 transition-bg; + @apply bg-yuika-blue-500 transition-bg; } @screen md { @@ -182,7 +192,7 @@ footer { } .post-article { - @apply pb-32; + @apply pb-32 pt-8; } .content { @@ -221,7 +231,10 @@ footer { } .primary-tag-header { - @apply bg-green-700 w-auto inline-block px-2 py-1 text-white text-sm; + @apply bg-blue-700 w-auto inline-block px-2 py-1 text-white text-sm transition-bg; +} +.primary-tag-header:hover { + @apply bg-blue-900 transition-bg; } .tag-header { @apply bg-blue-700 w-auto inline-block px-2 py-1 text-white text-sm; @@ -229,6 +242,20 @@ footer { .author-header { @apply bg-red-700 w-auto inline-block px-2 py-1 text-white text-sm; } + +.author-list { + @apply flex flex-row items-center my-2 py-2 transition-bg; +} +.author-list:hover { + @apply bg-red-700 transition-bg; +} +.author-images { + @apply flex flex-row; +} +.author-names { + @apply flex-grow flex flex-col; +} + @tailwind components; @tailwind utilities; diff --git a/partials/post-card.hbs b/partials/post-card.hbs index 18fa42d..3469b87 100644 --- a/partials/post-card.hbs +++ b/partials/post-card.hbs @@ -19,8 +19,8 @@

-
-
+
+
{{#foreach authors}} {{#if profile_image}}
@@ -31,7 +31,7 @@ {{/if}} {{/foreach}}
-
+

{{#has author="count:>2"}}Multiple authors{{else}}{{authors}}{{/has}}

diff --git a/post.hbs b/post.hbs index 77494ed..e63c5d4 100644 --- a/post.hbs +++ b/post.hbs @@ -8,37 +8,39 @@
-
- {{#if primary_tag}} - {{#primary_tag}} -
- {{name}} -
- {{/primary_tag}} - {{/if}} -
-

{{title}}

-
-
-

{{reading_time}}

-
-
- {{#foreach authors}} - {{#if profile_image}} -
- - {{name}} - -
- {{else}} - {{> "icons/avatar"}} - {{/if}} - {{/foreach}} -
-

{{#has author="count:>2"}}Multiple authors{{else}}{{authors}}{{/has}}

+
+ {{#if primary_tag}} + {{#primary_tag}} +
+ {{name}} +
+ {{/primary_tag}} + {{/if}} +
+

{{title}}

+
+
+

{{reading_time}}

+
+
+
+ {{#foreach authors}} + {{#if profile_image}} +
+ + {{name}} + +
+ {{/if}} + {{/foreach}} +
+
+
+

{{#has author="count:>2"}}Multiple authors{{else}}{{authors}}{{/has}}

+
-
+