From bac1d3bd57fb0c04b32c31a048ccf58a3dee6be0 Mon Sep 17 00:00:00 2001
From: Shpuld Shpuldson <shpuld@gmail.com>
Date: Sat, 3 Jun 2017 23:42:54 +0300
Subject: Move user-finder into navbar and hide it behind a toggle button,
 update fontello icons with user-plus and menu.

---
 src/components/user_finder/user_finder.vue | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

(limited to 'src/components/user_finder/user_finder.vue')

diff --git a/src/components/user_finder/user_finder.vue b/src/components/user_finder/user_finder.vue
index 2fbf1693..c23d8ee0 100644
--- a/src/components/user_finder/user_finder.vue
+++ b/src/components/user_finder/user_finder.vue
@@ -1,13 +1,23 @@
 <template>
-  <div class="user-finder-panel panel panel-default base00-background">
-    <input @keyup.enter="findUser(username)" v-model="username" placeholder="Find user" id="user-finder-input" type="text" />
-  </div>
+  <a href="#" v-if="hidden"><i class="icon-user-plus user-finder-icon" @click.prevent="toggleHidden"/></a>
+  <span v-else>
+    <input class="user-finder-input base03-border" @keyup.enter="findUser(username)" v-model="username" placeholder="Find user" id="user-finder-input" type="text"/>
+    <i class="icon-cancel user-finder-icon" @click="toggleHidden"/>
+  </span>
 </template>
 
 <script src="./user_finder.js"></script>
 
 <style lang="scss">
- .user-finder-panel {
-   padding: 10px;
+ .user-finder-icon {
+   margin-right: 0.25em;
+ }
+
+ .user-finder-input {
+   border-width: 1px;
+   border-style: solid;
+   border-color: inherit;
+   border-radius: 5px;
+   padding: 0.1em 0.2em 0.2em 0.2em;
  }
 </style>
-- 
cgit v1.2.3-70-g09d2

