1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-22 17:27:32 +00:00

use ghost nav

This commit is contained in:
Damillora 2019-11-09 05:01:26 +07:00
parent 940dba46bc
commit 2f5a132ef4
4 changed files with 24 additions and 16 deletions

View File

@ -726,8 +726,6 @@ footer {
-webkit-box-direction: normal; -webkit-box-direction: normal;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
display: block;
margin-top: 0.5rem;
display: none; display: none;
} }
@ -737,11 +735,11 @@ footer {
-webkit-box-orient: horizontal; -webkit-box-orient: horizontal;
-webkit-box-direction: normal; -webkit-box-direction: normal;
flex-direction: row; flex-direction: row;
height: 3rem;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: start; -webkit-box-pack: start;
justify-content: flex-start; justify-content: flex-start;
-webkit-box-align: center;
align-items: center;
height: 3rem;
border-color: #fff; border-color: #fff;
border-top-width: 1px; border-top-width: 1px;
border-bottom-width: 1px; border-bottom-width: 1px;
@ -755,16 +753,27 @@ footer {
@media (min-width: 768px) { @media (min-width: 768px) {
.nav { .nav {
display: block;
width: auto; width: auto;
display: block;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
} }
.nav-li { .nav li {
-o-object-fit: contain;
object-fit: contain;
-webkit-box-pack: center; -webkit-box-pack: center;
justify-content: center; justify-content: center;
border-style: none; -webkit-box-align: center;
align-items: center;
border-bottom-width: 0;
border-top-width: 0;
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
display: inline-block;
padding-left: 1rem;
padding-right: 1rem;
} }
} }

View File

@ -60,19 +60,18 @@ footer {
} }
.nav { .nav {
@apply hidden flex flex-col w-full block mt-2; @apply hidden flex flex-col w-full;
display: none; display: none;
} }
.nav li { .nav li {
@apply flex flex-row h-12 items-center justify-start border-white border-t border-b my-0 py-2 text-white text-sm; @apply flex flex-row justify-start items-center h-12 border-white border-t border-b my-0 py-2 text-white text-sm;
} }
@screen md { @screen md {
.nav { .nav {
@apply block w-auto; @apply w-auto block flex-row;
} }
.nav-li { .nav li {
@apply justify-center border-none my-0; @apply object-contain justify-center items-center border-b-0 border-t-0 my-0 inline-block px-4;
} }
} }
@tailwind components; @tailwind components;

View File

@ -17,7 +17,7 @@
<img src="{{img_url @site.logo size="l"}}" alt="{{@site.title}}" class="w-full h-full object-contain"> <img src="{{img_url @site.logo size="l"}}" alt="{{@site.title}}" class="w-full h-full object-contain">
</div> </div>
{{/if}} {{/if}}
<div class="flex flex-col flex-grow ml-4"> <div class="flex flex-col ml-4 flex-grow">
<div class=""> <div class="">
<a href="{{@site.url}}"> <a href="{{@site.url}}">
<h1 class="text-lg text-white">{{@site.title}}</h1> <h1 class="text-lg text-white">{{@site.title}}</h1>

View File

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