Update navigation icons

This commit is contained in:
Dane Everitt 2018-09-13 21:23:13 -07:00
parent 5404b81193
commit 63375d0f37
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 27 additions and 9 deletions

View file

@ -0,0 +1,18 @@
<template>
<i class="ion" :class="iconClass"></i>
</template>
<script>
export default {
props: {
type: {type: String, required: true},
iconStyle: {type: String, default: 'ios'},
},
computed: {
iconClass: function () {
return `ion-${this.iconStyle}-${this.type}`;
}
},
}
</script>

View file

@ -44,22 +44,22 @@
<ul> <ul>
<li> <li>
<router-link :to="{ name: 'dashboard' }"> <router-link :to="{ name: 'dashboard' }">
<server-icon aria-label="Server dashboard" class="h-4"/> <Icon type="cube"/>
</router-link> </router-link>
</li> </li>
<li> <li>
<router-link :to="{ name: 'account' }"> <router-link :to="{ name: 'account' }">
<user-icon aria-label="Profile management" class="h-4"/> <Icon type="contact"/>
</router-link> </router-link>
</li> </li>
<li> <li>
<a :href="this.route('admin.index')"> <a :href="this.route('admin.index')">
<settings-icon aria-label="Administrative controls" class="h-4"/> <Icon type="cog"/>
</a> </a>
</li> </li>
<li> <li>
<a :href="this.route('auth.logout')" v-on:click.prevent="doLogout"> <a :href="this.route('auth.logout')" v-on:click.prevent="doLogout">
<log-out-icon aria-label="Sign out" class="h-4"/> <Icon type="log-out"/>
</a> </a>
</li> </li>
</ul> </ul>
@ -70,12 +70,11 @@
<script> <script>
import debounce from 'lodash/debounce'; import debounce from 'lodash/debounce';
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import { LogOutIcon, ServerIcon, SettingsIcon, UserIcon } from 'vue-feather-icons' import Icon from '../Icon';
export default { export default {
name: 'navigation', name: 'navigation',
components: { LogOutIcon, ServerIcon, SettingsIcon, UserIcon }, components: {Icon},
data: function () { data: function () {
return { return {
loadingResults: false, loadingResults: false,

View file

@ -17,7 +17,8 @@
& > .search-box { & > .search-box {
& > .search-input { & > .search-input {
@apply .text-sm .p-2 .mt-3 .mx-3 .rounded .border .border-blue-darker .bg-grey-lightest .text-grey-darkest; @apply .text-sm .p-2 .mx-3 .rounded .border .border-blue-darker .bg-grey-lightest .text-grey-darkest;
margin-top: 0.6rem;
width: 26rem; width: 26rem;
opacity: 0.7; opacity: 0.7;
transition: ease-in-out opacity 150ms; transition: ease-in-out opacity 150ms;
@ -53,7 +54,7 @@
& > li { & > li {
@apply .inline-block; @apply .inline-block;
& > a { & > a {
@apply .block .h-full .no-underline .text-grey-lighter .font-light .text-sm .p-5; @apply .block .h-full .no-underline .text-grey-lighter .font-light .text-xl .px-5 .py-4;
&:hover { &:hover {
@apply .bg-blue-dark; @apply .bg-blue-dark;