summaryrefslogtreecommitdiffstats
path: root/web/sass-files/sass/partials/_search.scss
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-23 14:59:25 -0700
committerCorey Hulen <corey@hulen.com>2015-10-23 14:59:25 -0700
commit03140752e60addd13e162036fe6605629b5591c6 (patch)
tree3e83b7dd2ca733a7dd3abba398fc2f2f06b453d7 /web/sass-files/sass/partials/_search.scss
parent17731698495e917cc3d64dc01d158a7c15912bd6 (diff)
parenta5a2826700b1fc6b19ba38698cfa703f58476bc6 (diff)
downloadchat-03140752e60addd13e162036fe6605629b5591c6.tar.gz
chat-03140752e60addd13e162036fe6605629b5591c6.tar.bz2
chat-03140752e60addd13e162036fe6605629b5591c6.zip
Merge pull request #1133 from hmhealey/plt718
PLT-718 Add an autocomplete when searching with in:, channel:, or from:
Diffstat (limited to 'web/sass-files/sass/partials/_search.scss')
-rw-r--r--web/sass-files/sass/partials/_search.scss40
1 files changed, 40 insertions, 0 deletions
diff --git a/web/sass-files/sass/partials/_search.scss b/web/sass-files/sass/partials/_search.scss
index 2f15a445f..ce3563885 100644
--- a/web/sass-files/sass/partials/_search.scss
+++ b/web/sass-files/sass/partials/_search.scss
@@ -109,3 +109,43 @@
.search-highlight {
background-color: #FFF2BB;
}
+
+.search-autocomplete {
+ background-color: #fff;
+ border: $border-gray;
+ line-height: 36px;
+ overflow-x: hidden;
+ overflow-y: scroll;
+ position: absolute;
+ text-align: left;
+ width: 100%;
+ z-index: 100;
+ @extend %popover-box-shadow;
+}
+
+.search-autocomplete__channel {
+ cursor: pointer;
+ height: 36px;
+ padding: 0px 6px;
+
+ &.selected {
+ background-color:rgba(51, 51, 51, 0.15);
+ }
+}
+
+.search-autocomplete__user {
+ cursor: pointer;
+ height: 36px;
+ padding: 0px;
+
+ .profile-img {
+ height: 32px;
+ margin-right: 6px;
+ width: 32px;
+ @include border-radius(16px);
+ }
+
+ &.selected {
+ background-color:rgba(51, 51, 51, 0.15);
+ }
+}