2018-05-27 00:20:36 +00:00
|
|
|
.nav {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .bg-primary-600 .border-b .border-t .border-primary-700;
|
2018-09-12 03:08:01 +00:00
|
|
|
height: 56px;
|
2018-05-27 00:20:36 +00:00
|
|
|
|
2019-02-04 00:29:08 +00:00
|
|
|
& .logo {
|
|
|
|
@apply .mr-8 .font-sans .font-thin .text-3xl .text-white .inline-block;
|
2018-06-03 06:15:10 +00:00
|
|
|
|
|
|
|
& a {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@screen xsx {
|
2018-09-12 04:25:02 +00:00
|
|
|
@apply .hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-04 00:29:08 +00:00
|
|
|
& .search-box {
|
|
|
|
@apply .mr-2;
|
|
|
|
|
2018-09-12 04:25:02 +00:00
|
|
|
& > .search-input {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .text-sm .p-2 .ml-8 .rounded .border .border-primary-600 .bg-white .text-neutral-900 .w-96;
|
|
|
|
transition: border 150ms ease-in;
|
2018-09-12 04:25:02 +00:00
|
|
|
|
|
|
|
&:focus {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .border-primary-700;
|
2018-09-12 04:25:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.has-search-results {
|
|
|
|
@apply .border-b-0 .rounded-b-none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .search-results {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .absolute .bg-white .border .border-primary-700 .border-t-0 .rounded .rounded-t-none .p-2 .ml-8 .z-50 .w-96;
|
2018-09-12 04:25:02 +00:00
|
|
|
|
2018-09-12 04:32:01 +00:00
|
|
|
& a {
|
2018-09-12 04:25:02 +00:00
|
|
|
@apply .block .no-underline .p-2 .rounded;
|
|
|
|
|
2019-02-09 23:17:38 +00:00
|
|
|
&:not(.no-hover):hover {
|
|
|
|
@apply .bg-neutral-50;
|
2018-09-12 04:25:02 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-03 06:15:10 +00:00
|
|
|
}
|
2018-05-27 00:20:36 +00:00
|
|
|
}
|
|
|
|
|
2019-02-04 00:29:08 +00:00
|
|
|
& .menu {
|
|
|
|
@apply .flex .h-full .items-center;
|
2018-06-03 06:15:10 +00:00
|
|
|
|
2019-02-04 00:29:08 +00:00
|
|
|
& > a {
|
2019-02-09 23:17:38 +00:00
|
|
|
transition: background-color 150ms linear;
|
|
|
|
@apply .block .flex .self-stretch .items-center .no-underline .text-white .font-light .text-sm .px-5;
|
2018-06-03 06:15:10 +00:00
|
|
|
|
2019-02-04 00:29:08 +00:00
|
|
|
&:hover {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .bg-primary-700;
|
2019-02-04 00:29:08 +00:00
|
|
|
}
|
2018-06-03 06:15:10 +00:00
|
|
|
}
|
2018-05-27 00:20:36 +00:00
|
|
|
}
|
2018-06-03 06:31:30 +00:00
|
|
|
}
|
2018-05-27 22:37:03 +00:00
|
|
|
|
2019-02-04 01:27:19 +00:00
|
|
|
.sidenav {
|
2019-02-09 22:32:18 +00:00
|
|
|
ul {
|
|
|
|
@apply .list-reset;
|
2019-02-04 01:27:19 +00:00
|
|
|
|
2019-02-09 22:32:18 +00:00
|
|
|
& li {
|
|
|
|
@apply .block;
|
2019-02-04 01:27:19 +00:00
|
|
|
|
2019-02-09 22:32:18 +00:00
|
|
|
& > a {
|
|
|
|
transition: border-left-color 250ms linear, color 250ms linear;
|
|
|
|
@apply .block .px-4 .py-3 .border-l-3 .border-neutral-100 .no-underline .text-neutral-400 .font-medium;
|
|
|
|
|
2019-02-10 01:26:08 +00:00
|
|
|
&:hover, &.router-link-exact-active, &.router-link-active {
|
2019-02-09 22:32:18 +00:00
|
|
|
@apply .text-neutral-800;
|
|
|
|
}
|
|
|
|
|
2019-02-10 01:07:11 +00:00
|
|
|
&.router-link-exact-active, &.router-link-active {
|
2019-02-09 22:44:35 +00:00
|
|
|
@apply .border-primary-500 .cursor-default;
|
2019-02-09 22:32:18 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-10 01:26:08 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Because of how the router works the first sidebar link is always active
|
|
|
|
* since that is the container for all of the server things. Override the
|
|
|
|
* style for active links if its the first one and not an exact route match.
|
|
|
|
*/
|
|
|
|
&:first-of-type > a {
|
|
|
|
&.router-link-active:not(.router-link-exact-active) {
|
|
|
|
@apply .border-neutral-100 .text-neutral-400 .cursor-pointer;
|
|
|
|
}
|
|
|
|
}
|
2019-02-04 01:27:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*
|
2018-05-27 22:37:03 +00:00
|
|
|
.sidenav {
|
2018-08-04 04:30:06 +00:00
|
|
|
@apply .py-2;
|
2018-05-27 22:37:03 +00:00
|
|
|
|
|
|
|
a {
|
2019-02-09 22:32:18 +00:00
|
|
|
@apply .block .py-3 .px-6 .text-neutral-900 .no-underline .border .border-transparent;
|
2018-05-27 22:37:03 +00:00
|
|
|
|
2018-08-04 04:30:06 +00:00
|
|
|
&:hover, &.router-link-exact-active {
|
2019-02-09 22:32:18 +00:00
|
|
|
@apply .border-neutral-400 .bg-neutral-50;
|
2018-05-27 22:37:03 +00:00
|
|
|
|
2018-08-04 04:30:06 +00:00
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.router-link-exact-active + a:hover {
|
|
|
|
border-top: 1px solid transparent;
|
|
|
|
}
|
2018-05-27 22:37:03 +00:00
|
|
|
}
|
2018-05-27 00:20:36 +00:00
|
|
|
}
|
2019-02-04 01:27:19 +00:00
|
|
|
*/
|