MDL-55402 theme_noname: Convert bootstrapbase to bs4
[moodle.git] / theme / noname / scss / moodle / message.scss
CommitLineData
536f0460
DW
1/** Message **/
2.message-discussion-noframes h1 {
3 font-size: 1em;
4}
5.message-discussion-noframes #userinfo .commands,
6.message .noframesjslink,
7.message .link {
8 font-size: $font-size-sm;
9}
10.message .heading {
11 font-size: 1em;
12 font-weight: bold;
13 clear: both;
14 word-wrap: break-word;
15}
16.message .author {
17 font-weight: bold;
18}
19.message .time {
20 font-style: italic;
21}
22#page-message-user .commands span {
23 font-size: 0.7em;
24}
25#page-message-user .name {
26 font-weight: bold;
27 font-size: 1.1em;
28}
29.message .time {
30 @extend .text-muted;
31}
32#page-message-messages {
33 padding: 10px;
34}
35#page-message-send .notifysuccess {
36 padding: 1px;
37}
38#page-message-send td.fixeditor {
39 text-align: center;
40}
41.message {
42 overflow: hidden;
43}
44.message .note {
45 padding: 10px;
46}
47table.message .searchresults td {
48 padding: 5px;
49}
50.message .contactselector {
51 $maxwidth: 240px;
52
53 max-width: 380px;
54 margin: 0 auto;
55
56 @media screen and (min-width: 1000px) {
57 float: left;
58 padding: 0 8px 0 0;
59 }
60 width: auto;
61 .singleselect {
62 width: $maxwidth;
63 }
64 .paging {
65 z-index: 1;
66 position: relative;
67 }
68
69 #message_participants {
70 max-width: $maxwidth;
71 }
72
73 .message-contacts {
74 list-style-type: none;
75 margin: 0;
76
77 li {
78 clear: both;
79 position: relative;
80 min-height: 23px;
81 padding: 2px;
82 &:nth-child(odd) {
83 background: rgba(120, 120, 255, 0.1);
84 }
85 > div {
86 display: block;
87 height: 100%;
88 > * {
89 vertical-align: middle;
90 display: inline-block;
91 }
92
93 &.pix {
94 position: relative;
95 float: left;
96 }
97 &.link {
98 white-space: nowrap;
99 width: 60px;
100 position: relative;
101 float: right;
102 text-align: right;
103 }
104 &.contact {
105 position: relative;
106 word-break: break-all;
107 a {
108 line-height: 22px;
109 }
110 }
111 }
112 }
113 }
114}
115.message .message-contacts li {
116 text-align: left;
117 > div {
118 &.pix {
119 float: left;
120 }
121 &.link {
122 float: right;
123 text-align: right;
124 }
125 &.contact {
126 margin: 0 60px 0 24px;
127 &.nolinks {
128 margin: 0 0 0 24px;
129 }
130 }
131 }
132}
133
134
135.message .messagearea {
136 @media screen and (min-width: 1000px) {
137 border-left: 1px solid $table-border-color;
138 padding: 0 8px;
139 }
140 @media screen and (max-width: 1000px) {
141 width: 100%;
142 }
143 float: none;
144 overflow: hidden;
145 min-height: 200px;
146 min-width: 300px;
147}
148
149#message_user_pictures {
150 text-align: center;
151}
152
153
154.message .messagearea .messagehistorytype {
155 clear: both;
156 padding-bottom: 20px;
157}
158.message .messagearea .messagehistory .user {
159 vertical-align: top;
160 width: 45%;
161 min-width: 100px;
162 display: inline-block;
163}
164.message .messagearea .messagehistory .user > div {
165 text-align: center;
166}
167.message .messagearea .messagehistory .between {
168 display: inline-block;
169 width: 16px;
170 margin: 0 1%;
171 padding-top: 40px;
172}
173
174@media screen and (max-width: 320px) {
175
176 .message .messagearea {
177 min-width: 0;
178 }
179
180 .message .messagearea .messagehistory .user {
181 max-width: 70px;
182 min-width: 0;
183 }
184
185 .message .messagearea .messagehistory .user .userpicture {
186 width: 50px;
187 height: auto;
188 }
189}
190
191@media screen and (min-width: 800px) {
192 .message .messagearea .messagehistory .between {
193 margin: 0 3%;
194 }
195 .message .messagearea .messagehistory .user {
196 width: 32%
197 }
198}
199@media screen and (min-width: 1200px) {
200 .message .messagearea .messagehistory .user {
201 width: 25%
202 }
203}
204.message .messagearea .messagehistory .heading {
205 width: 100%;
206 clear: both;
207}
208.message .messagearea .messagehistory .left {
209 margin-bottom: 10px;
210 width: 50%;
211 float: left;
212 position: relative;
213 clear: both;
214}
215.message .messagearea .messagehistory .right {
216 margin-bottom: 10px;
217 width: 50%;
218 float: right;
219 position: relative;
220 clear: both;
221}
222.message .messagearea .messagehistory .notification {
223 @extend .card;
224 margin-bottom: 0;
225 margin-top: 5px;
226}
227.message .messagearea .messagehistory .right .message {
228 margin-left: 20px;
229}
230.message .messagearea .messagehistory .messageactive {
231 background-color: $table-bg-hover;
232}
233.message .messagearea .messagehistory .messagecontent .deleteicon {
234 width: 20px;
235 position: absolute;
236 top: -2px;
237 right: 0;
238}
239.message .messagearea .messagesend {
240 padding-top: 20px;
241 clear: both;
242}
243.message .messagearea .messagesend .messagesendbox {
244 width: 100%;
245 box-sizing: border-box;
246}
247.message .messagearea .messagesend fieldset {
248 padding: 0;
249 margin: 0;
250}
251// Bring the message send button closer to the message box.
252.message .messagearea .messagerecent {
253 text-align: left;
254 width: 100%;
255}
256.message .messagearea .messagerecent .singlemessage {
257 border-bottom: 1px solid $table-border-color;
258 padding: 10px;
259}
260.message .messagearea .messagerecent .singlemessage .otheruser span {
261 padding: 5px;
262}
263.message .messagearea .messagerecent .singlemessage .messagedate {
264 float: right;
265}
266.message .hiddenelement {
267 display: none;
268}
269// not just using hidden as mform adds that class to its fieldset */
270.message .visible {
271 display: inline;
272}
273.message #usergroupselector.fieldset, .message #viewing {
274 width: 100%;
275}
276.messagesearchresults {
277 margin-bottom: 40px;
278}
279.messagesearchresults td {
280 padding: 0 10px 0 20px;
281}
282.messagesearchresults td span {
283 white-space: nowrap;
284}
285.messagesearchresults td img.userpicture {
286 padding-right: .45em;
287 vertical-align: text-bottom;
288}
289.messagesearchresults td span img {
290 padding: 0 0 0 .45em;
291 vertical-align: text-bottom;
292}
293#newmessageoverlay {
294 @extend .card;
295 margin: 0 1em;
296 position: fixed;
297 bottom: 0;
298 right: 0;
299}
300#newmessageoverlay #usermessage {
301 padding: 10px;
302}
303/* Widen the plain text editor on the bulk message screen */
304#page-user-action_redir #edit-messagebody {
305 width:auto;
306}
307
308/** Messenger send message dialog */
309.core_message-messenger-sendmessage-hidden {
310 display:none;
311}
312.core_message-messenger-sendmessage {
313 .message-actions {
314 position: relative;
315 }
316 .message-area {
317 height: 240px;
318 max-height: 100%;
319 position: relative;
320 margin-bottom: 10px;
321 }
322 .message-input {
323 width: 100%;
324 height: 100%;
325 // @include box-sizing(border-box);
326 }
327 .message-send {
328 margin: 0;
329 float: right;
330 }
331 .message-notice-area {
332 display: table;
333 position: absolute;
334 top: 0;
335 bottom: 0;
336 left: 0;
337 right: 0;
338 width: 100%;
339 height: 100%;
340 }
341 .message-notice {
342 display: table-cell;
343 vertical-align: middle;
344 text-align: center;
345 > div {
346 background: #eee;
347 padding: 5px;
348 font-size: 12px;
349 }
350 }
351 .message-footer {
352 margin-top: 3px;
353 line-height: 20px;
354 }
355 .message-history {
356 position: absolute;
357 bottom: 0;
358 }
359}