Adopting new material guidelines for chips

See https://material.io/design/components/chips.html
This commit is contained in:
Francis Lachapelle
2019-02-18 15:03:25 -05:00
parent 5dc2ad3dec
commit aac0ec9a6a
5 changed files with 23 additions and 10 deletions
@@ -1,4 +1,6 @@
/// chips.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
$contact-chip-suggestion-margin: rem(0.4);
@import 'extends';
$chip-dense-font-size: rem(1.2) !default;
@@ -72,6 +74,14 @@ md-chips {
}
}
// Adapting avatars in contact chips to the new material guidelines
// See https://material.io/design/components/chips.html
.md-contact-chips .md-chips md-chip .md-contact-avatar img,
.md-contact-chips .sg-icon-badge-container md-icon {
height: $chip-height - 6px;
margin: 3px;
}
// Adjust space around secondary element in contact chip.
// Used for attendees participation status icon (UIxAppointmentViewTemplate.wox)
.md-contact-chips.sg-with-secondary .md-chips md-chip {
@@ -93,13 +103,18 @@ md-chips {
}
}
// In the autocompletion menu, don't limit the contact name to a fixed width
// and show the email address right after it
// In the autocompletion menu,
// - fix image alignement;
// - don't limit the contact name to a fixed width;
// - show the email address right after it.
.md-contact-suggestion {
img {
vertical-align: top;
}
.md-contact-name {
width: auto;
}
.md-contact-email {
margin-left: $contact-chip-suggestion-margin;
}
}
}