1
0
mirror of https://github.com/Damillora/Yuika synced 2024-09-28 19:52:50 +00:00

Finalize v2 iteration of Yuika with 2.3

This commit is contained in:
Damillora 2020-11-12 22:42:39 +07:00
parent b8e02c571e
commit 3578ba80be
5 changed files with 34 additions and 32 deletions

View File

@ -331,15 +331,15 @@ footer {
.primary-tag-header:hover { .primary-tag-header:hover {
@apply transition-all duration-300 ease-in-out underline; @apply transition-all duration-300 ease-in-out underline;
} }
.tag-header {
@apply bg-blue-700 w-auto inline-block px-2 py-1 text-white text-sm;
}
.tag-accent-color { .tag-accent-color {
@apply inline-block rounded-full align-text-bottom h-12 w-12; @apply inline-block rounded-full align-text-bottom h-12 w-12;
} }
.author-header { .tag-accent-color.small {
@apply bg-red-700 w-auto inline-block px-2 py-1 text-white text-sm; @apply h-4 w-4;
}
.tag-accent-color.medium {
@apply h-6 w-6;
} }
.author-image { .author-image {
@apply inline-block rounded-full align-text-bottom h-12 w-12; @apply inline-block rounded-full align-text-bottom h-12 w-12;

View File

@ -1,7 +1,7 @@
{ {
"name": "yuika", "name": "yuika",
"description": "nanao.moe's blog theme", "description": "nanao.moe's blog theme",
"version": "2.2.4", "version": "2.3.0",
"engines": { "engines": {
"ghost-api": "v3" "ghost-api": "v3"
}, },

View File

@ -4,18 +4,19 @@
{{> post-background}} {{!--Special header-image.hbs partial to generate the background image--}} {{> post-background}} {{!--Special header-image.hbs partial to generate the background image--}}
</a> </a>
<div class="md:pl-4"> <div class="md:pl-4">
<div class="pt-4 md:pt-0 py-1"> <div class="pt-4 md:pt-0">
{{#if primary_tag}} {{#if primary_tag}}
{{#primary_tag}} {{#primary_tag}}
{{#if accent_color}} <p>
<a href="{{url}}"> <a href="{{url}}">
<span class="primary-tag-header" style="background-color: {{accent_color}};">{{name}}</span> {{#if accent_color}}
</a> <span class="tag-accent-color small" style="background-color: {{accent_color}};"></span>
{{else}} {{else}}
<a href="{{url}}"> <span class="tag-accent-color small"></span>{{name}}
<span class="primary-tag-header">{{name}}</span>
</a>
{{/if}} {{/if}}
<span class="text-sm hover:underline">{{name}}</span>
</a>
</p>
{{/primary_tag}} {{/primary_tag}}
{{/if}} {{/if}}
</div> </div>

View File

@ -1,14 +1,15 @@
{{#if primary_tag}} {{#if primary_tag}}
{{#primary_tag}} {{#primary_tag}}
{{#if accent_color}} <p>
<a href="{{url}}"> <a href="{{url}}">
<span class="primary-tag-header" style="background-color: {{accent_color}};">{{name}}</span> {{#if accent_color}}
</a> <span class="tag-accent-color small" style="background-color: {{accent_color}};"></span>
{{else}} {{else}}
<a href="{{url}}"> <span class="tag-accent-color small"></span>{{name}}
<span class="primary-tag-header">{{name}}</span> {{/if}}
</a> <span class="text-base text-white hover:underline">{{name}}</span>
{{/if}} </a>
</p>
{{/primary_tag}} {{/primary_tag}}
{{/if}} {{/if}}

View File

@ -78,16 +78,16 @@
{{#if related_posts}} {{#if related_posts}}
{{#../primary_tag}} {{#../primary_tag}}
<div class="px-3 w-full"> <div class="px-3 w-full">
<p class="text-2xl">More in <p class="text-2xl">
{{#if accent_color}} More in
<a href="{{url}}"> <a href="{{url}}">
<span class="primary-tag-header text-2xl" style="background-color: {{accent_color}};">{{name}}</span> {{#if accent_color}}
<span class="tag-accent-color medium" style="background-color: {{accent_color}};"></span>
{{else}}
<span class="tag-accent-color medium"></span>{{name}}
{{/if}}
<span class="hover:underline">{{name}}</span>
</a> </a>
{{else}}
<a href="{{url}}">
<span class="primary-tag-header text-2xl">{{name}}</span>
</a>
{{/if}}
</p> </p>
</div> </div>
{{/../primary_tag}} {{/../primary_tag}}