mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-72667 message: fix contrast issue in the drawer
This commit is contained in:
parent
fa080070a1
commit
1eed73fc4b
6 changed files with 47 additions and 6 deletions
|
@ -78,12 +78,12 @@
|
||||||
{{#str}} sender, core_message, {{.}} {{/str}}
|
{{#str}} sender, core_message, {{.}} {{/str}}
|
||||||
{{/lastsendername}}
|
{{/lastsendername}}
|
||||||
{{/sentfromcurrentuser}}
|
{{/sentfromcurrentuser}}
|
||||||
<span class="text-muted">{{{lastmessage}}}</span>
|
<span>{{{lastmessage}}}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex align-self-stretch">
|
<div class="d-flex align-self-stretch">
|
||||||
<div
|
<div
|
||||||
class="px-2 py-1 small position-absolute position-right text-muted {{^lastmessagedate}}hidden{{/lastmessagedate}}"
|
class="px-2 py-1 small position-absolute position-right {{^lastmessagedate}}hidden{{/lastmessagedate}}"
|
||||||
data-region="last-message-date" aria-hidden="true"
|
data-region="last-message-date" aria-hidden="true"
|
||||||
>
|
>
|
||||||
{{#lastmessagedate}}
|
{{#lastmessagedate}}
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex align-self-center align-items-center">
|
<div class="d-flex align-self-center align-items-center">
|
||||||
<span
|
<span
|
||||||
class="badge badge-pill badge-primary bg-primary {{^unreadcount}}hidden{{/unreadcount}}"
|
class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
|
||||||
data-region="unread-count"
|
data-region="unread-count"
|
||||||
aria-label="{{#str}} unreadmessages, core_message, {{unreadcount}} {{/str}}"
|
aria-label="{{#str}} unreadmessages, core_message, {{unreadcount}} {{/str}}"
|
||||||
>
|
>
|
||||||
|
|
|
@ -91,13 +91,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
class="badge badge-pill badge-primary bg-primary {{^unreadcount}}hidden{{/unreadcount}}"
|
class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
|
||||||
data-region="unread-count"
|
data-region="unread-count"
|
||||||
>
|
>
|
||||||
{{unreadcount}}
|
{{unreadcount}}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="text-muted">
|
<div>
|
||||||
{{> core_message/message_drawer_icon_forward }}
|
{{> core_message/message_drawer_icon_forward }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
class="section border-0 card rounded-0"
|
class="section border-0 card rounded-0"
|
||||||
data-region="{{$region}}{{/region}}"
|
data-region="{{$region}}{{/region}}"
|
||||||
>
|
>
|
||||||
<div id="{{$region}}{{/region}}-toggle" class="card-header rounded-0 p-0" data-region="toggle">
|
<div id="{{$region}}{{/region}}-toggle" class="card-header rounded-0" data-region="toggle">
|
||||||
<button
|
<button
|
||||||
class="btn btn-link w-100 text-left p-1 p-sm-2 d-flex rounded-0 align-items-center overview-section-toggle {{^expanded}}collapsed{{/expanded}}"
|
class="btn btn-link w-100 text-left p-1 p-sm-2 d-flex rounded-0 align-items-center overview-section-toggle {{^expanded}}collapsed{{/expanded}}"
|
||||||
data-toggle="collapse"
|
data-toggle="collapse"
|
||||||
|
|
|
@ -526,6 +526,10 @@ $message-day-color: color-yiq($message-app-bg) !default;
|
||||||
&.expanded {
|
&.expanded {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div[data-region="toggle"] {
|
||||||
|
padding: 0.1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,12 +545,25 @@ $message-day-color: color-yiq($message-app-bg) !default;
|
||||||
.list-group-item {
|
.list-group-item {
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
|
&:hover {
|
||||||
|
color: $white;
|
||||||
|
background-color: $primary;
|
||||||
|
.badge-primary {
|
||||||
|
background-color: $white;
|
||||||
|
color: $primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
&.list-group-item-action {
|
||||||
|
margin: 0.1rem;
|
||||||
|
width: auto;
|
||||||
|
text-align: inherit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.last-message {
|
.last-message {
|
||||||
|
|
|
@ -15969,6 +15969,8 @@ a.ygtvspacer:hover {
|
||||||
display: block; }
|
display: block; }
|
||||||
.message-app .view-overview-body .section.expanded {
|
.message-app .view-overview-body .section.expanded {
|
||||||
display: flex; }
|
display: flex; }
|
||||||
|
.message-app .view-overview-body .section div[data-region="toggle"] {
|
||||||
|
padding: 0.1rem; }
|
||||||
.message-app .view-conversation .content-message-container img {
|
.message-app .view-conversation .content-message-container img {
|
||||||
max-width: 100%; }
|
max-width: 100%; }
|
||||||
.message-app .list-group {
|
.message-app .list-group {
|
||||||
|
@ -15976,10 +15978,20 @@ a.ygtvspacer:hover {
|
||||||
.message-app .list-group .list-group-item {
|
.message-app .list-group .list-group-item {
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
border-right: 0; }
|
border-right: 0; }
|
||||||
|
.message-app .list-group .list-group-item:hover {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #0f6cbf; }
|
||||||
|
.message-app .list-group .list-group-item:hover .badge-primary {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #0f6cbf; }
|
||||||
.message-app .list-group .list-group-item:first-child {
|
.message-app .list-group .list-group-item:first-child {
|
||||||
border-top: 0; }
|
border-top: 0; }
|
||||||
.message-app .list-group .list-group-item:last-child {
|
.message-app .list-group .list-group-item:last-child {
|
||||||
border-bottom: 0; }
|
border-bottom: 0; }
|
||||||
|
.message-app .list-group .list-group-item.list-group-item-action {
|
||||||
|
margin: 0.1rem;
|
||||||
|
width: auto;
|
||||||
|
text-align: inherit; }
|
||||||
.message-app .last-message {
|
.message-app .last-message {
|
||||||
min-height: 1.5rem; }
|
min-height: 1.5rem; }
|
||||||
.message-app .section .collapsing {
|
.message-app .section .collapsing {
|
||||||
|
|
|
@ -15969,6 +15969,8 @@ a.ygtvspacer:hover {
|
||||||
display: block; }
|
display: block; }
|
||||||
.message-app .view-overview-body .section.expanded {
|
.message-app .view-overview-body .section.expanded {
|
||||||
display: flex; }
|
display: flex; }
|
||||||
|
.message-app .view-overview-body .section div[data-region="toggle"] {
|
||||||
|
padding: 0.1rem; }
|
||||||
.message-app .view-conversation .content-message-container img {
|
.message-app .view-conversation .content-message-container img {
|
||||||
max-width: 100%; }
|
max-width: 100%; }
|
||||||
.message-app .list-group {
|
.message-app .list-group {
|
||||||
|
@ -15976,10 +15978,20 @@ a.ygtvspacer:hover {
|
||||||
.message-app .list-group .list-group-item {
|
.message-app .list-group .list-group-item {
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
border-right: 0; }
|
border-right: 0; }
|
||||||
|
.message-app .list-group .list-group-item:hover {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #0f6fc5; }
|
||||||
|
.message-app .list-group .list-group-item:hover .badge-primary {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #0f6fc5; }
|
||||||
.message-app .list-group .list-group-item:first-child {
|
.message-app .list-group .list-group-item:first-child {
|
||||||
border-top: 0; }
|
border-top: 0; }
|
||||||
.message-app .list-group .list-group-item:last-child {
|
.message-app .list-group .list-group-item:last-child {
|
||||||
border-bottom: 0; }
|
border-bottom: 0; }
|
||||||
|
.message-app .list-group .list-group-item.list-group-item-action {
|
||||||
|
margin: 0.1rem;
|
||||||
|
width: auto;
|
||||||
|
text-align: inherit; }
|
||||||
.message-app .last-message {
|
.message-app .last-message {
|
||||||
min-height: 1.5rem; }
|
min-height: 1.5rem; }
|
||||||
.message-app .section .collapsing {
|
.message-app .section .collapsing {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue