Skip to content

Commit

Permalink
Merge branch 'MDL-64102-master' of git://github.com/bmbrands/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllaó authored and stronk7 committed Apr 23, 2019
2 parents 2f3c8da + a4300f3 commit 04f41dc
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@

}}
<div
class="message clickable d-flex flex-column p-2 {{#fromloggedinuser}}bg-secondary{{/fromloggedinuser}}{{^fromloggedinuser}}bg-white{{/fromloggedinuser}} rounded mb-2 mt-2"
class="message clickable d-flex flex-column p-2 mx-1 position-relative {{#fromloggedinuser}}send bg-secondary{{/fromloggedinuser}}{{^fromloggedinuser}}received bg-white{{/fromloggedinuser}} rounded mb-2 mt-2"
data-region="message"
data-message-id="{{id}}"
role="checkbox"
aria-checked="false"
tabindex="0"
>
<div class="tail position-absolute"></div>
<div class="d-flex align-items-center {{^fromloggedinuser}}pb-2{{/fromloggedinuser}}">
{{^fromloggedinuser}}
<div style="flex-shrink: 0">
Expand All @@ -67,4 +68,4 @@
<span class="hidden ml-2 small text-primary" data-region="selected-icon">{{#pix}} i/checkedcircle, core {{/pix}}</span>
</div>
<div dir="auto" align="initial">{{{text}}}</div>
</div>
</div>
21 changes: 20 additions & 1 deletion theme/boost/scss/moodle/message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,26 @@ $message-drawer-width: 320px;
overflow: hidden;
}
}

.message {
.tail {
content: '';
bottom: 0;
width: 0;
height: 0;
border: 0.5rem solid transparent;
position: relative;
}
&.send .tail {
right: 0;
margin-right: -0.5rem;
border-bottom-color: map-get($theme-colors, 'secondary');
}
&.received .tail {
left: 0;
margin-left: -0.5rem;
border-bottom-color: $white;
}
}
.lazy-load-list {
overflow-y: auto;
}
Expand Down
15 changes: 15 additions & 0 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -13771,6 +13771,21 @@ a.ygtvspacer:hover {
min-height: 1.5rem; }
.message-app .section .collapsing {
overflow: hidden; }
.message-app .message .tail {
content: '';
bottom: 0;
width: 0;
height: 0;
border: 0.5rem solid transparent;
position: relative; }
.message-app .message.send .tail {
right: 0;
margin-right: -0.5rem;
border-bottom-color: #ced4da; }
.message-app .message.received .tail {
left: 0;
margin-left: -0.5rem;
border-bottom-color: #fff; }
.message-app .lazy-load-list {
overflow-y: auto; }

Expand Down
15 changes: 15 additions & 0 deletions theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -14018,6 +14018,21 @@ a.ygtvspacer:hover {
min-height: 1.5rem; }
.message-app .section .collapsing {
overflow: hidden; }
.message-app .message .tail {
content: '';
bottom: 0;
width: 0;
height: 0;
border: 0.5rem solid transparent;
position: relative; }
.message-app .message.send .tail {
right: 0;
margin-right: -0.5rem;
border-bottom-color: #e9ecef; }
.message-app .message.received .tail {
left: 0;
margin-left: -0.5rem;
border-bottom-color: #fff; }
.message-app .lazy-load-list {
overflow-y: auto; }

Expand Down

0 comments on commit 04f41dc

Please sign in to comment.