user.scss 4.72 KB
Newer Older
1
2
3
4
5
/* user.less */
.userprofile .fullprofilelink {
    text-align: center;
    margin: 10px;
}
6

7
8
9
.userprofile .page-context-header {
    margin-bottom: 10px;
}
10

11
12
13
14
.userprofile .description {
    margin-top: 10px;
    margin-bottom: 30px;
}
15

16
17
.userprofile .profile_tree {
    column-count: 2;
18

19
20
21
22
23
    section {
        @extend .card;
        @extend .card-block;
        display: inline-block;
        width: 100%;
24

25
26
27
28
        h3 {
            @extend .lead;
        }
    }
29
}
30

31
.userprofile dl.list {
32
33
    // Copied from dl.row.
    > dd + dt {
34
        clear: left;
35
    }
36
}
37

38
39
40
41
42
43
44
45
.user-box {
    margin: 8px;
    width: 115px;
    height: 160px;
    text-align: center;
    float: left;
    clear: none;
}
46

47
48
49
#page-user-profile .node_category,
.path-user .node_category {
    ul {
50
        margin: 0;
51
        list-style: none;
52
        padding-left: 0;
53
    }
54

55
56
57
    li {
        margin-top: 5px;
    }
58

59
60
61
62
63
64
    .editprofile,
    .viewmore {
        text-align: right;
    }
}

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
.ajax-contact-button {
    box-sizing: border-box;
    position: relative;

    &.loading {
        .loading-icon {
            display: block;
        }
    }

    .loading-icon {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.7);

        .icon {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    }
}

93
94
95
96
97
98
99
100
101
102
@media (max-width: 480px) {
    .userprofile .profile_tree {
        /** Display the profile on one column on phones@mixin  */
        column-count: 1;
    }
}

.userlist #showall {
    margin: 10px 0;
}
103

104
105
106
.userlist .buttons {
    text-align: center;
}
107

108
109
110
.userlist .buttons label {
    padding: 0 3px;
}
111

112
113
114
.userlist table#participants {
    text-align: center;
}
115

116
117
118
119
120
121
.userlist table#participants td,
.userlist table#participants th {
    vertical-align: middle;
    text-align: left;
    padding: 4px;
}
122

123
124
125
.userlist {
    table.controls {
        width: 100%;
126

127
128
129
        tr {
            vertical-align: top;
        }
130

131
132
133
        .right {
            text-align: right;
        }
134

135
136
137
        .groupselector {
            margin-bottom: 0;
            margin-top: 0;
138

139
140
141
142
143
144
            label {
                display: block;
            }
        }
    }
}
145

146
147
148
149
150
151
.userinfobox {
    width: 100%;
    border: 1px solid;
    border-collapse: separate;
    padding: 10px;
}
152

153
154
155
156
157
.userinfobox .left,
.userinfobox .side {
    width: 100px;
    vertical-align: top;
}
158

159
160
161
162
.userinfobox .userpicture {
    width: 100px;
    height: 100px;
}
163

164
165
166
.userinfobox .content {
    vertical-align: top;
}
167

168
169
170
171
172
.userinfobox .links {
    width: 100px;
    padding: 5px;
    vertical-align: bottom;
}
173

174
175
176
.userinfobox .links a {
    display: block;
}
177

178
179
180
.userinfobox .list td {
    padding: 3px;
}
181

182
183
184
185
.userinfobox .username {
    padding-bottom: 20px;
    font-weight: bold;
}
186

187
188
189
190
191
192
.userinfobox td.label {
    text-align: right;
    white-space: nowrap;
    vertical-align: top;
    font-weight: bold;
}
193

194
195
196
.groupinfobox {
    @extend .card;
}
197

198
199
200
201
202
.groupinfobox .left {
    padding: 10px;
    width: 100px;
    vertical-align: top;
}
203

204
205
206
207
.course-participation #showall {
    text-align: center;
    margin: 10px 0;
}
208

209
210
211
212
213
214
215
216
#user-policy .noticebox {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    width: 80%;
    height: 250px;
}
217

218
219
220
221
#user-policy #policyframe {
    width: 100%;
    height: 100%;
}
222

223
224
225
.iplookup #map {
    margin: auto;
}
226

227
228
229
.userselector select {
    width: 100%;
}
230

231
232
233
.userselector div {
    margin-top: 0.2em;
}
234

235
236
237
238
239
240
241
.userselector div label {
    margin-right: 0.3em;
}
/* Next style does not work in all browsers but looks nicer when it does */
.userselector .userselector-infobelow {
    font-size: 0.8em;
}
242

243
244
245
#userselector_options .collapsibleregioncaption {
    font-weight: bold;
}
246

247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
#userselector_options p {
    margin: 0.2em 0;
    text-align: left;
}
/** user full profile */
#page-user-profile .messagebox {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/** user course profile */
#page-course-view-weeks .messagebox {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.profileeditor {
    > .singleselect {
        margin: 0 0.5em 0 0;
    }
268

269
270
271
    > .singlebutton {
        display: inline-block;
        margin: 0 0 0 0.5em;
272
273
274

        div,
        input {
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
            margin: 0;
        }
    }
}

#groupeditform {
    .groups,
    .members {
        min-width: 175px;
        width: 49%;
        float: left;
        text-align: left;

        select {
            min-width: 175px;
        }
    }
}
293
294
295
296
297

// Remove the little cog from participants page because we are putting a cog menu there.
.userlist h3 .action-icon {
    display: none;
}
298
299
300
301

#page-enrol-users .popover {
    max-width: none;
}
302
303
304
305

.user-enroller-panel {
    width: 600px;
}