summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/composer_suggestion/composer_suggestion.scss
blob: 4083c14900142b7ff3b7d09a709738d1eac81631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// ------------------------------------------------------------------
// Layout
// ------------------------------------------------------------------

.o_ComposerSuggestion {
    display: flex;
    width: map-get($sizes, 100);
    padding: map-get($spacers, 2) map-get($spacers, 4);
}

.o_ComposerSuggestion_part1 {
    // avoid shrinking part 1 because it is more important than part 2
    // because no shrink, ensure it cannot overflow with a max-width
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
    padding-inline-end: map-get($spacers, 2);
    text-overflow: ellipsis;
}

.o_ComposerSuggestion_part2 {
    // shrink part 2 to properly ensure it cannot overflow
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.o_ComposerSuggestion_partnerImStatusIcon {
    flex: 0 0 auto;
}

// ------------------------------------------------------------------
// Style
// ------------------------------------------------------------------

.o_ComposerSuggestion_part1 {
    font-weight: $font-weight-bold;
}

.o_ComposerSuggestion_part2 {
    font-style: italic;
    color: $gray-600;
}