(css) Improve autocompletion menu

This commit is contained in:
Francis Lachapelle
2015-08-26 09:48:47 -04:00
parent 49e7cf0994
commit 01e2256483
2 changed files with 20 additions and 1 deletions
@@ -1 +1,8 @@
@import "extends";
@media (max-width: $layout-breakpoint-sm) {
// Enlarge the autocompletion menu on small devices to fit the entire screen
.md-autocomplete-suggestions-container {
right: $baseline-grid*2;
}
}
@@ -1,8 +1,8 @@
/// chips.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
@import 'extends';
// Remove the line under the tags of the message viewer
md-chips {
// Remove the line under the tags of the message viewer
&.sg-readonly {
.md-chips {
box-shadow: none;
@@ -16,6 +16,18 @@ md-chips {
}
}
// Enlarge the default autocompletion menu
.sg-chips-autocomplete {
width: (3 * $contact-chip-name-width);
}
// In the autocompletion menu, don't limit the contact name to a fixed width
// and show the email address right after it
.md-contact-suggestion {
.md-contact-name {
width: auto;
}
.md-contact-email {
margin-left: $contact-chip-suggestion-margin;
}
}