MDL-63303 message: fix bugs in message drawer part 4
[moodle.git] / theme / bootstrapbase / less / moodle / user.less
bloba4afb237f753b55c911e58c1b3071e8086a73977
1 /* user.less */
2 .userprofile .fullprofilelink {
3     text-align: center;
4     margin: 10px;
6 .userprofile .page-context-header {
7     margin-bottom: 10px;
9 .userprofile .description {
10     margin-top: 10px;
11     margin-bottom: 30px;
13 .userprofile .profile_tree {
14     .content-columns(2);
16 .userprofile .profile_tree section {
17     display: inline-block;
18     width: 100%;
19     border: 1px solid #ddd;
20     border-radius: @baseBorderRadius;
21     padding: 0 15px;
22     margin-bottom: 20px;
23     .box-sizing(border-box);
25 .userprofile .profile_tree section h3 {
26     font-size: round(@baseFontSize * 1.30);
27     line-height: @baseLineHeight;
29 .userprofile dl.list {
30     .dl-horizontal;
32 .user-box {
33     margin: 8px;
34     width: 115px;
35     height: 160px;
36     text-align: center;
37     float: left;
38     clear: none;
40 #page-user-profile .node_category,
41 .path-user .node_category {
42     ul {
43         margin-left: 0;
44         margin-right: 0;
45         list-style: none;
46     }
47     li {
48         margin-top: 5px;
49     }
50     .editprofile,
51     .viewmore {
52         text-align: right;
53     }
55 // This rule overrides the automatic no-overflow on the participants table. It kills the auto-complete.
56 #participantsform .no-overflow {
57     overflow: visible;
60 /**
61  * This rule has been added to duplicate the style of icons with the
62  * .iconsmall class for consistent rendering.
63  *
64  * Loading a pix icon using the template helper returns icons with
65  * the class 'smallicon' instead of 'iconsmall'.
66  */
67 #page-user-profile {
68     .ajax-contact-button {
69         img {
70             &.smallicon {
71                 margin: 0;
72                 padding: 0.3em;
73                 height: 12px;
74                 width: 12px;
75                 vertical-align: middle;
76             }
77         }
78     }
81 .ajax-contact-button {
82     box-sizing: border-box;
83     position: relative;
85     &.loading {
86         .loading-icon {
87             display: block;
88         }
89     }
91     .loading-icon {
92         display: none;
93         position: absolute;
94         top: 0;
95         left: 0;
96         width: 100%;
97         height: 100%;
98         background-color: rgba(255, 255, 255, 0.7);
100         .smallicon {
101             position: absolute;
102             left: 50%;
103             top: 50%;
104             transform: translate(-50%, -50%);
105         }
106     }
109 @media (max-width: 480px) {
110     .userprofile .profile_tree {
111         /** Display the profile on one column on phones. */
112         .content-columns(1);
113     }
116 .userlist .action-icon img {
117     vertical-align: middle;
119 .userlist #showall {
120     margin: 10px 0;
122 .userlist .buttons {
123     text-align: center;
125 .userlist .buttons label {
126     padding: 0 3px;
128 .userlist table#participants {
129     text-align: center;
131 .userlist table#participants td {
132     text-align: left;
133     padding: 4px;
134     vertical-align: middle;
136 .userlist table#participants th {
137     text-align: left;
138     padding: 4px;
140 .userlist {
141     table.controls {
142         width: 100%;
143         tr {
144             vertical-align: top;
145         }
146         .right {
147             text-align: right;
148         }
149         .groupselector {
150             margin-bottom: 0;
151             margin-top: 0;
152             label {
153                 display: block;
154             }
155         }
156     }
158 .userinfobox {
159     width: 100%;
160     border: 1px solid;
161     border-collapse: separate;
162     padding: 10px;
164 .userinfobox .left,
165 .userinfobox .side {
166     width: 100px;
167     vertical-align: top;
169 .userinfobox .userpicture {
170     width: 100px;
171     height: 100px;
173 .userinfobox .content {
174     vertical-align: top;
176 .userinfobox .links {
177     width: 100px;
178     padding: 5px;
179     vertical-align: bottom;
181 .userinfobox .links a {
182     display: block;
184 .userinfobox .list td {
185     padding: 3px;
187 .userinfobox .username {
188     padding-bottom: 20px;
189     font-weight: bold;
191 .userinfobox td.label {
192     text-align: right;
193     white-space: nowrap;
194     vertical-align: top;
195     font-weight: bold;
197 .groupinfobox {
198     .well;
199     position: relative;
201     h3 {
202         margin-top: 0;
203     }
206 .groupinfobox .left {
207     padding: 10px;
208     width: 100px;
209     vertical-align: top;
212 .group-image {
213     display: block;
214     float: left;
215     margin-right: 1em;
218 .group-edit {
219     position: absolute;
220     right: 0;
221     margin-right: 0.6em;
224 .course-participation #showall {
225     text-align: center;
226     margin: 10px 0;
228 #user-policy .noticebox {
229     text-align: center;
230     margin-left: auto;
231     margin-right: auto;
232     margin-bottom: 10px;
233     width: 80%;
234     height: 250px;
236 #user-policy #policyframe {
237     width: 100%;
238     height: 100%;
240 .iplookup #map {
241     margin: auto;
243 .userselector select {
244     width: 100%;
246 .userselector div {
247     margin-top: 0.2em;
249 .userselector div label {
250     margin-right: 0.3em;
252 /* Next style does not work in all browsers but looks nicer when it does */
253 .userselector .userselector-infobelow {
254     font-size: 0.8em;
256 #userselector_options {
257     padding: 0.3em 0;
259 #userselector_options .collapsibleregioncaption {
260     font-weight: bold;
262 #userselector_options p {
263     margin: 0.2em 0;
264     text-align: left;
266 /** user full profile */
267 #page-user-profile .messagebox {
268     text-align: center;
269     margin-left: auto;
270     margin-right: auto;
272 /** user course profile */
273 #page-course-view-weeks .messagebox {
274     text-align: center;
275     margin-left: auto;
276     margin-right: auto;
279 .profileeditor {
280     > .singleselect {
281         margin: 0 0.5em 0 0;
282     }
283     > .singlebutton {
284         display: inline-block;
285         margin: 0 0 0 0.5em;
286         div,
287         input {
288             margin: 0;
289         }
290     }
293 /** Preferences page */
294 .preferences-group {
295     ul {
296         list-style: none;
297         margin-left: 0;
298         margin-right: 0;
299     }