summaryrefslogtreecommitdiffstats
path: root/web/sass-files/sass/partials/_popover.scss
blob: 430813e63d2cb59d216b1b0ef7953f6b593631af (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.channel-header__info .popover-content {
	max-height: 250px;
	overflow: auto;
}

.user-popover {
	cursor: pointer;
	display: inline-block;
}

.user-popover__image {
	margin: 0 0 10px;
	@include border-radius(128px);
}

.user-popover__email {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.search-help-popover {
    visibility: hidden;
    max-width: none;
    width: 100%;
    top: 36px;
    @include single-transition(opacity, 0.3s, ease-in);
    font-size: em(13px);

    &.autocomplete {
        display: block;
        .popover-content {
            padding: 10px;
            position: relative;
        }
    }

    .search-autocomplete__item {
        cursor: pointer;
        padding: 6px 8px;
        margin: 3px 0;
        @include border-radius(2px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        &:hover {
            background: rgba(black, 0.1);
        }

        &.selected {
            background: rgba(black, 0.2);
        }

        .profile-img {
            margin-top: -1px;
            height: 16px;
            margin-right: 6px;
            width: 16px;
        }
    }

    &.bottom > .arrow {
        top: -18px;
        border-width: 9px;
        left: 30px;
    }

    .popover-content {
        padding: 3px 13px;
    }

    h4 {
        font-size: 1em;
    }

    ul {
        padding-left: 17px;
        span {
            @include opacity(0.8);
        }
        strong, b {
            @include opacity(1);
        }
    }

    .tooltip-inner {
        max-width: 100%;
    }

    &.visible {
        visibility: visible;
        @include opacity(1);
    }
}

#member-list-popover {
    max-width: initial;
    .popover-content {
        position: relative;
        padding: 0;
        width: 260px;
        max-height: 350px;
        .text-nowrap {
            padding: 6px 10px;
            width: 100%;
            overflow: hidden;
            line-height: 26px;
            font-size: 13px;
        }
        .more-name {
            margin-left: 6px;
        }
    }
}