Move nav links out of config

This commit is contained in:
Oliver Davies 2018-02-01 13:34:50 +00:00
parent 275de8154e
commit 5fb86fae20
4 changed files with 57 additions and 7 deletions

View file

@ -0,0 +1,49 @@
.nav {
@apply .w-full;
}
.nav-item {
@apply .flex;
@apply .items-center;
@apply .-mx-4;
@apply .p-4;
}
.nav-item:first-child {
@apply .border-t .border-grey-lighter;
}
@screen sm {
.nav {
@apply .flex-wrap .justify-end;
}
.nav-item {
@apply .border-b-3;
@apply .border-transparent;
@apply .ml-4;
@apply .mr-0;
@apply .p-0;
}
.nav-item:first-child {
@apply .border-t-0 .border-transparent;
}
.nav-item--active,
.nav-item--active.nav-item:first-child {
@apply .bg-transparent .border-blue;
}
}
@screen md {
.nav {
@apply .w-2/3;
}
}
@screen lg {
.nav {
@apply .w-3/4;
}
}

View file

@ -63,6 +63,7 @@ svg {
.table-collapse { border-collapse: collapse }
@import 'components/listing';
@import 'components/nav';
@import 'components/post';
@import 'components/post/about-author';
@import 'components/post/code';