Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/* user.less */
2
.userprofile .fullprofilelink {
3
    text-align: center;
4
    margin: 10px;
5
}
6
 
7
.userprofile .description {
8
    margin-top: 10px;
9
    margin-bottom: 30px;
10
}
11
 
12
.page-context-header+.profile_tree {
13
    margin-top: 20px;
14
}
15
 
16
.userprofile .profile_tree {
17
    column-count: 2;
18
    grid-gap: 60px;
19
 
20
    @include media-breakpoint-up(xl) {
21
        column-count: 3;
22
    }
23
 
24
    @include media-breakpoint-between(xs, sm) {
25
        column-count: 1;
26
    }
27
}
28
 
29
.userprofile dl.list {
30
    // Copied from dl.row.
31
    >dd+dt {
32
        clear: left;
33
    }
34
}
35
 
36
.user-box {
37
    margin: 8px;
38
    width: 115px;
39
    height: 160px;
40
    text-align: center;
41
    float: left;
42
    clear: none;
43
}
44
 
45
.profile_tree .node_category {
46
    ul {
47
        margin: 0;
48
        list-style: none;
49
        padding-left: 0;
50
    }
51
 
52
    dl {
53
        margin: .25rem 0;
54
    }
55
 
56
    li,
57
    dd,
58
    dt {
59
        font-size: 0.813rem;
60
    }
61
 
62
    li {
63
        padding: 3px 0;
64
    }
65
 
66
    dd {
67
        color: $body-color-secondary;
68
 
69
        .theme-dark & {
70
            color: $dm-body-color-secondary;
71
        }
72
    }
73
 
74
    .editprofile {
75
        margin-bottom: 30px;
76
    }
77
 
78
    .editprofile,
79
    .viewmore {
80
        text-align: right;
81
    }
82
}
83
 
84
.ajax-contact-button {
85
    box-sizing: border-box;
86
    position: relative;
87
 
88
    &.loading {
89
        .loading-icon {
90
            display: block;
91
        }
92
    }
93
 
94
    .loading-icon {
95
        display: none;
96
        position: absolute;
97
        top: 0;
98
        left: 0;
99
        width: 100%;
100
        height: 100%;
101
        background-color: rgba(255, 255, 255, 0.7);
102
 
103
        .icon {
104
            position: absolute;
105
            left: 50%;
106
            top: 50%;
107
            transform: translate(-50%, -50%);
108
        }
109
    }
110
}
111
 
112
@media (max-width: 480px) {
113
    .userprofile .profile_tree {
114
        /** Display the profile on one column on phones@mixin  */
115
        column-count: 1;
116
    }
117
}
118
 
119
.userlist #showall {
120
    margin: 10px 0;
121
}
122
 
123
.userlist .buttons {
124
    text-align: center;
125
}
126
 
127
.userlist .buttons label {
128
    padding: 0 3px;
129
}
130
 
131
 
132
.userlist {
133
    table.controls {
134
        width: 100%;
135
 
136
        tr {
137
            vertical-align: top;
138
        }
139
 
140
        .right {
141
            text-align: right;
142
        }
143
 
144
        .groupselector {
145
            margin-bottom: 0;
146
            margin-top: 0;
147
 
148
            label {
149
                display: block;
150
            }
151
        }
152
    }
153
}
154
 
155
.userinfobox {
156
    width: 100%;
157
    border: 1px solid;
158
    border-collapse: separate;
159
    padding: 10px;
160
}
161
 
162
.userinfobox .left,
163
.userinfobox .side {
164
    width: 100px;
165
    vertical-align: top;
166
}
167
 
168
 
169
// Global
170
.userpicture {
171
    width: 35px;
172
    height: 35px;
173
    border-radius: $btn-border-radius;
174
}
175
 
176
.userinfobox .userpicture {
177
    width: 100px;
178
    height: 100px;
179
    border-radius: 100px;
180
}
181
 
182
.userinfobox .content {
183
    vertical-align: top;
184
}
185
 
186
.userinfobox .links {
187
    width: 100px;
188
    padding: 5px;
189
    vertical-align: bottom;
190
}
191
 
192
.userinfobox .links a {
193
    display: block;
194
}
195
 
196
.userinfobox .list td {
197
    padding: 3px;
198
}
199
 
200
.userinfobox .username {
201
    padding-bottom: 20px;
202
    font-weight: $font-weight-bold;
203
}
204
 
205
.userinfobox td.label {
206
    text-align: right;
207
    white-space: nowrap;
208
    vertical-align: top;
209
    font-weight: $font-weight-bold;
210
}
211
 
212
.rui-group-edit {
213
    position: relative;
214
}
215
 
216
.rui-group-image {
217
    display: block;
218
    float: left;
219
    margin-right: 1em;
220
 
221
    .rui-grouppicture {
222
        border-radius: 50%;
223
    }
224
}
225
 
226
#page-group-overview {
227
    .main-content {
228
        .singleselect {
229
            label {
230
                &:first-of-type {
231
                    margin-left: 2rem;
232
                }
233
            }
234
        }
235
 
236
        .generaltable {
237
            margin: 1rem 0;
238
        }
239
 
240
        .groupdisplay+h3,
241
        .singleselect+h3,
242
        .generaltable+h3 {
243
            margin: 2rem 0;
244
        }
245
    }
246
}
247
 
248
 
249
#page-group-overview {
250
    .yui3-overlay-content.yui3-widget-stdmod {
251
        max-width: 600px;
252
        padding: 1rem;
253
        border-radius: $btn-border-radius;
254
        background-color: var(--primary-color-100);
255
        font-size: $font-size-sm;
256
    }
257
}
258
 
259
 
260
.course-participation #showall {
261
    text-align: center;
262
    margin: 10px 0;
263
}
264
 
265
#user-policy .noticebox {
266
    text-align: center;
267
    margin-left: auto;
268
    margin-right: auto;
269
    margin-bottom: 10px;
270
    width: 80%;
271
    height: 250px;
272
}
273
 
274
#user-policy #policyframe {
275
    width: 100%;
276
    height: 100%;
277
}
278
 
279
.iplookup #map {
280
    margin: auto;
281
}
282
 
283
.userselector select {
284
    width: 100%;
285
}
286
 
287
.userselector div label {
288
    margin-right: 0.3em;
289
}
290
/* Next style does not work in all browsers but looks nicer when it does */
291
.userselector .userselector-infobelow {
292
    font-size: 0.8em;
293
}
294
 
295
#userselector_options p {
296
    margin: 0.2em 0;
297
    text-align: left;
298
}
299
/** user full profile */
300
#page-user-profile .messagebox {
301
    text-align: center;
302
    margin-left: auto;
303
    margin-right: auto;
304
}
305
/** user course profile */
306
#page-course-view-weeks .messagebox {
307
    text-align: center;
308
    margin-left: auto;
309
    margin-right: auto;
310
}
311
 
312
// Remove buttons
313
#page-user-profile {
314
    #settingsMenu {
315
        .singlebutton {
316
            display: none;
317
        }
318
    }
319
}
320
 
321
.profileeditor {
322
    >.singleselect {
323
        margin: 0 0.5em 0 0;
324
    }
325
 
326
    >.singlebutton {
327
        display: inline-block;
328
        margin: 0 0 0 0.5em;
329
 
330
        div,
331
        input {
332
            margin: 0;
333
        }
334
    }
335
}
336
 
337
// Remove the little cog from participants page because we are putting a cog menu there.
338
.userlist h3 .action-icon {
339
    display: none;
340
}
341
 
342
#page-enrol-users .popover {
343
    max-width: none;
344
}
345
 
346
.user-enroller-panel {
347
    width: 600px;
348
}
349
 
350
[data-filterverbfor],
351
[data-filterregion="filter"]:last-child [data-filterregion="joinadverb"] {
352
    display: none;
353
}
354
 
355
[data-filterverb="0"] [data-filterverbfor="0"],
356
[data-filterverb="1"] [data-filterverbfor="1"],
357
[data-filterverb="2"] [data-filterverbfor="2"] {
358
    display: inline-block;
359
}
360
 
361
[data-region="participant-count"] {
362
    display: inline-flex;
363
    margin: 1rem auto;
364
    padding: $badge-padding-y $badge-padding-x;
365
 
366
    background-color: $gray-100;
367
 
368
    @include font-size($badge-font-size);
369
    font-weight: $badge-font-weight;
370
    color: $body-color;
371
    text-align: left;
372
    border-radius: $btn-border-radius;
373
 
374
    .theme-dark & {
375
        background-color: $dm-gray-100;
376
        color: $dm-gray-700;
377
    }
378
}
379
 
380
// Participants filter
381
.filter-group {
382
    padding-bottom: 1rem;
383
    border-bottom: 2px solid $border-color;
384
 
385
    .theme-dark & {
386
        border-color: $dm-border-color;
387
    }
388
 
389
    // [data-filterregion="filters"] {
390
    //     margin-top: 3px;
391
    //     padding: .35rem;
392
    //     background-color: transparent;
393
    //     border: 2px solid $border-color;
394
    //     border-radius: $btn-border-radius;
395
 
396
    //     .theme-dark & {
397
    //         border-color: $dm-border-color;
398
    //     }
399
    // }
400
 
401
    @include media-breakpoint-only(sm) {
402
      .btn {
403
        width: 100%;
404
      }
405
 
406
      [data-filteraction="remove"] {
407
        margin: 10px auto 7px;
408
        width: 100%;
409
        align-items: center;
410
        justify-content: center;
411
      }
412
    }
413
  }
414
 
415
  #user-result-listbox {
416
    margin: 0!important;
417
    padding: 0!important;
418
  }