summaryrefslogtreecommitdiffstats
path: root/webapp/sass/layout/_team-sidebar.scss
blob: f44454eb78e5e6628ac518b305f2d2a671ae981f (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
117
118
119
120
121
122
123
124
.multi-teams {
    .team-sidebar {
        height: 100%;
        left: 0;
        position: fixed;
        text-align: center;
        width: 65px;
        z-index: 5;

        .team-wrapper {
            -webkit-overflow-scrolling: touch;
            background-color: alpha-color($black, .2);
            height: 100%;
            overflow: auto;
            padding-top: 15px;

            .team-container {
                display: table;
                margin-bottom: 10px;
                position: relative;
                text-align: center;
                width: 100%;

                a {
                    display: block;
                    margin-left: 11px;
                    text-decoration: none;
                    &:hover .team-btn {
                      border-color: white;
                    }
                }

                .team-btn {
                    @include border-radius(2px);
                    background-color: alpha-color($black, .3);
                    border: 1px solid alpha-color($white, .2);
                    display: table-cell;
                    font-size: 12px;
                    font-weight: bold;
                    padding: 4px 5px;
                    position: relative;
                    text-align: center;
                    vertical-align: top;
                    width: 40px;

                    .team-btn__initials {
                        text-align: left;
                    }

                    .team-btn__content {
                        bottom: 4px;
                        font-size: 8.5px;
                        font-weight: normal;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        width: 31px;
                    }

                    .badge {
                        font-size: 10px;
                        position: absolute;
                        right: -6px;
                        top: -3px;
                    }

                    &.team-btn__add {
                        height: 39px;
                        vertical-align: middle;
                    }
                }

                &.active {
                    .team-btn {
                        background-color: transparent;
                        border-color: $white;
                    }
                }

                &.active:before {
                    background: $black;
                    content: '';
                    height: 100%;
                    left: 0;
                    position: absolute;
                    top: 0;
                    width: 5px;
                }

                &.unread:before {
                    background: $black;
                    border-radius: 50%;
                    content: '';
                    height: 5px;
                    left: 0;
                    position: absolute;
                    top: 18px;
                    width: 5px;
                }

                a.team-disabled {
                    @include opacity(.5);
                    cursor: not-allowed;
                }
            }

            .team-container a:hover {
                text-decoration: none;
            }
        }
    }

    .sidebar--left {
        left: 65px;

        .nav-pills__unread-indicator {
            left: 80px;
        }
    }

    .app__content {
        margin-left: 285px;
    }
}