_user-icon.scss 3.03 KB
Newer Older
1
.user-icon {
2
    border-radius: $border-radius;
3
    background-color: $card-bg;
4
    padding: 3px;
5
    display: table;
6
    border: 1px solid $thumbnail-border-color;
7
    overflow: hidden;
Naomi Guyer's avatar
Naomi Guyer committed
8
9
    position: relative;

10
11
12
13
14
15
    &.left {
        position:absolute;
        left: 5px;
        top: 5px;
        display: block;
        z-index: 5;
16

17
        &.small-icon {
18
19
20
21
22
23
24
25
26
27
28
29
30
            width: 35px;
            height: 35px;
        }
    }

    .list-group-item &, &.small-icon {
        padding: 3px;
    }
    .list-group-item & {
        float: left;
        margin-top: -5px;
        margin-left: -5px;
        margin-right: 5px;
31
        max-width: 20%;
32
33
34
35
36
    }
    img {
        margin: 0;
        opacity: 0.9;
        position: relative;
37
38
39
        width: 20px;
        height: 20px;
        object-fit: cover;
40
41
42
43
44
    }
    p {
        margin-top: 3px;
        margin-bottom: 0;
    }
45
46
47
48
49

    // Style for blocktype forum post
    .forumposts & {
        margin-top: 10px;
    }
50
51

    .page-header & {
52
        margin: -20px 10px;
53
    }
54
55
56
57
58
59
}

.label .user-icon {
    display: inline-block;
}

60
.with-user-icon {
61
    padding-left: 53px;
62
63
}

64
.card-header {
65
66
67
68
69
    a.has-user-icon , a.has-user-icon.collapsed {
        padding-left:65px; //make room for user image
    }
}

70
.card-body {
71
72
73
74
75
    .with-user-icon-lg {
        padding-right: 67px;
    }
}

76
77
78
79
a.user-icon, a .user-icon {
    &:hover,
    &:focus {
        opacity:1;
80
        background-color: scale-color($thumbnail-border-color, $lightness: 75%);
81
82
83
84
85
86
87
88
89
90
91
92

        img {
            opacity: 1;
        }

        &:after {
            @include transition(opacity 0.5s);
            opacity:1;
            visiblity: visible;
        }
    }
}
93
94
95

.item.user-icon img {
    margin-bottom: 5px;
Liam's avatar
Liam committed
96
}
97
98
99
100
101
102
103
104

.profileheader {
    h1 {
        .user-icon {
            margin: -10px 10px 0 0;
        }
    }
}
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183

// User icon sizes
.user-icon-20 {
    line-height: 1;
    img {
        width: 20px;
        height: 20px;
    }
}
.user-icon-25 {
    img {
        width: 25px;
        height: 25px;
    }
}
.user-icon-40 {
    img {
        width: 40px;
        height: 40px;
    }
}
.user-icon-50 {
    line-height: 1;
    img {
        width: 50px;
        height: 50px;
    }
}
.user-icon-60 {
    img {
        width: 60px;
        height: 60px;
    }
}
.user-icon-100 {
    img {
        width: 100px;
        height: 100px;
    }
}
.user-icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

// Profile pictures page user icons cell
.profileiconcell {
    img {
        width: 100px;
        height: 100px;
        object-fit: cover;
    }
}

// Thumbnail grid user icons spacing
.user-thumbnails {
    .user-icon {
        margin: 0 10px 10px 0;
    }
}

// Profile info block user icon
.bt-profileinfo,
.bt-profileinfo-editor {
    .user-icon {
        img {
            width: 80px;
            height: 80px;
        }
    }
}

// Select-2 user list user icons
.select2-user-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
184
185
186
187
188
189
190

// Gap between user icon and user name
.user-icon-name {
    .user-icon {
        margin-right: 10px;
    }
}