From dd8531f9c908e1aefd3f5577024ba86e20b26447 Mon Sep 17 00:00:00 2001
From: Xiaofeng An <futureweb2020@yandex.com>
Date: Fri, 8 Feb 2019 11:06:27 -0500
Subject: move styles for AutoCompleteInput

---
 .../autocomplete_input/autocomplete_input.vue      | 51 ++++++++++++++++++++++
 1 file changed, 51 insertions(+)

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

diff --git a/src/components/autocomplete_input/autocomplete_input.vue b/src/components/autocomplete_input/autocomplete_input.vue
index 309f2202..44324e23 100644
--- a/src/components/autocomplete_input/autocomplete_input.vue
+++ b/src/components/autocomplete_input/autocomplete_input.vue
@@ -52,3 +52,54 @@
 </template>
 
 <script src="./autocomplete_input.js"></script>
+
+<style lang="scss">
+@import '../../_variables.scss';
+
+.autocomplete-panel {
+  margin: 0 0.5em 0 0.5em;
+  border-radius: $fallback--tooltipRadius;
+  border-radius: var(--tooltipRadius, $fallback--tooltipRadius);
+  position: absolute;
+  z-index: 1;
+  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
+  // this doesn't match original but i don't care, making it uniform.
+  box-shadow: var(--popupShadow);
+  min-width: 75%;
+  background: $fallback--bg;
+  background: var(--bg, $fallback--bg);
+  color: $fallback--lightText;
+  color: var(--lightText, $fallback--lightText);
+}
+
+.autocomplete {
+  cursor: pointer;
+  padding: 0.2em 0.4em 0.2em 0.4em;
+  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
+  display: flex;
+
+  img {
+    width: 24px;
+    height: 24px;
+    border-radius: $fallback--avatarRadius;
+    border-radius: var(--avatarRadius, $fallback--avatarRadius);
+    object-fit: contain;
+  }
+
+  span {
+    line-height: 24px;
+    margin: 0 0.1em 0 0.2em;
+  }
+
+  small {
+    margin-left: .5em;
+    color: $fallback--faint;
+    color: var(--faint, $fallback--faint);
+  }
+
+  &.highlighted {
+    background-color: $fallback--fg;
+    background-color: var(--lightBg, $fallback--fg);
+  }
+}
+</style>
-- 
cgit v1.2.3-70-g09d2

