summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_mentions.scss
blob: 4753b4e9a212573c2bb5020625f97bff4d7ca0f7 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
@charset 'UTF-8';

.mention {
    @include border-radius(3px);
    background: $primary-color;
    color: $white;
    padding-bottom: 2px;
    position: relative;
    z-index: 10;
}

.mentions__name {
    cursor: pointer;
    font-size: 13px;
    height: 36px;
    line-height: 36px;
    padding: 2px;
    position: relative;
    white-space: nowrap;
    width: 100%;
    z-index: 101;

    .mention-align {
        @include clearfix;
        text-overflow: ellipsis;
        width: calc(100% - 50px);
    }
}

.mention__image {
    @include border-radius(32px);
    display: block;
    font-size: 20px;
    height: 32px;
    line-height: 36px;
    margin-right: 6px;
    text-align: center;
    width: 32px;

    .mention--align {
        display: inline-block;
        max-width: 80%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.mention__fullname {
    @include opacity(.5);
    padding-left: 10px;
}

.mention--highlight {
    background-color: $yellow;
}