sogo/UI/WebServerResources/scss/components/chips/chips.scss

88 lines
2 KiB
SCSS
Raw Normal View History

2015-04-18 07:21:52 +02:00
/// chips.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
@import 'extends';
2015-05-13 17:49:15 +02:00
md-chips {
2015-08-26 15:48:47 +02:00
// Remove the line under the tags of the message viewer
&.sg-readonly {
2015-05-13 17:49:15 +02:00
.md-chips {
box-shadow: none;
&.md-focused {
box-shadow: none;
}
.md-chip-content {
//max-width: initial; // fix bug in ng-material
}
// Custom 'chip remove' button used with chips in readonly mode
.sg-chip-remove {
&:hover {
cursor: pointer;
}
2016-05-11 19:33:34 +02:00
position: absolute;
right: 0;
margin: (($chip-height - 24) / 2);
height: $chip-delete-icon-size;
width: $chip-delete-icon-size;
}
2015-05-13 17:49:15 +02:00
}
}
.sg-chip-progress {
border-radius: $chip-height / 2;
bottom: 0;
left: 0;
overflow: hidden;
position: absolute;
right: 0;
top: 0;
transition: $swift-ease-in-out;
&.ng-hide {
background-color: #fff;
}
span {
bottom: 0;
left: 0;
opacity: 0.5;
position: absolute;
top: 0;
transition: $swift-ease-in-out;
width: 0;
}
}
2016-01-09 04:06:35 +01:00
.sg-chip-color {
@extend .sg-chip-progress;
span {
width: 100%;
}
}
2015-08-26 04:17:57 +02:00
}
// 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 {
padding-right: 0;
.sg-secondary {
margin-right: $baseline-grid;
}
}
2015-08-26 15:48:47 +02:00
// Enlarge the default autocompletion menu
.sg-chips-autocomplete,
.sg-chips-autocomplete input {
2015-08-26 04:17:57 +02:00
width: (3 * $contact-chip-name-width);
2015-12-18 15:11:36 +01:00
@media (max-width: $layout-breakpoint-xs) {
// Enlarge the autocompletion menu on small devices to fit the entire screen
left: 0;
right: 0;
width: auto;
}
2015-08-26 15:48:47 +02:00
}
// 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;
}
2015-05-13 17:49:15 +02:00
}