Summary Files Commits Branches @commit @diff @stats
path: root / src / autocomplete.less
diff options
context:
space:
mode:
Commit305e375fea6196c3cc0b2fbe83eed7743d25056b (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-26 19:47:44 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-26 19:47:44 +0800
Files28796fa495e952439595182081c81ea7531a21e7 /src/autocomplete.less
Spectre-Dark-Gruvbox-305e375fea6196c3cc0b2fbe83eed7743d25056b.tar
Spectre-Dark-Gruvbox-305e375fea6196c3cc0b2fbe83eed7743d25056b.tar.gz
Spectre-Dark-Gruvbox-305e375fea6196c3cc0b2fbe83eed7743d25056b.zip
Parentab0f22217c31268346e808b40b346cc070171c41 (diff)
update autocomplete code
1 files changed, 13 insertions, 8 deletions
-rw-r--r--src/autocomplete.less21
diff --git a/src/autocomplete.less b/src/autocomplete.less
index b16a19a..c85b89d 100644
--- a/src/autocomplete.less
+++ b/src/autocomplete.less
@@ -13,7 +13,7 @@
max-width: 100%;
min-height: 3.2rem;
outline: 0;
- padding: .3rem .5rem 0 .5rem;
+ padding: .3rem .3rem 0 .3rem;
width: 100%;
.chip-sm {
@@ -46,14 +46,19 @@
top: 100%;
width: 100%;
z-index: 1988;
+ }
+ .form-autocomplete-item {
+ border-radius: .3rem;
+ display: block;
+ margin-top: .1rem;
+ padding: .2rem 1rem;
- .chip {
- background: transparent;
-
- &:hover,
- &.selected {
- background: lighten(@core-color, 40%);
- }
+ &:hover,
+ &:focus {
+ background: lighten(@core-color, 42%);
+ }
+ &.active {
+ background: lighten(@core-color, 40%);
}
}
}