mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-72667 message: fix contrast issue in the drawer
This commit is contained in:
parent
fa080070a1
commit
1eed73fc4b
@ -78,12 +78,12 @@
|
||||
{{#str}} sender, core_message, {{.}} {{/str}}
|
||||
{{/lastsendername}}
|
||||
{{/sentfromcurrentuser}}
|
||||
<span class="text-muted">{{{lastmessage}}}</span>
|
||||
<span>{{{lastmessage}}}</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="d-flex align-self-stretch">
|
||||
<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"
|
||||
>
|
||||
{{#lastmessagedate}}
|
||||
@ -98,7 +98,7 @@
|
||||
</div>
|
||||
<div class="d-flex align-self-center align-items-center">
|
||||
<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"
|
||||
aria-label="{{#str}} unreadmessages, core_message, {{unreadcount}} {{/str}}"
|
||||
>
|
||||
|
@ -91,13 +91,13 @@
|
||||
</div>
|
||||
|
||||
<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"
|
||||
>
|
||||
{{unreadcount}}
|
||||
</span>
|
||||
|
||||
<div class="text-muted">
|
||||
<div>
|
||||
{{> core_message/message_drawer_icon_forward }}
|
||||
</div>
|
||||
</a>
|
||||
|
@ -39,7 +39,7 @@
|
||||
class="section border-0 card rounded-0"
|
||||
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
|
||||
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"
|
||||
|
@ -526,6 +526,10 @@ $message-day-color: color-yiq($message-app-bg) !default;
|
||||
&.expanded {
|
||||
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 {
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
&:hover {
|
||||
color: $white;
|
||||
background-color: $primary;
|
||||
.badge-primary {
|
||||
background-color: $white;
|
||||
color: $primary;
|
||||
}
|
||||
}
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
&.list-group-item-action {
|
||||
margin: 0.1rem;
|
||||
width: auto;
|
||||
text-align: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
.last-message {
|
||||
|
@ -15969,6 +15969,8 @@ a.ygtvspacer:hover {
|
||||
display: block; }
|
||||
.message-app .view-overview-body .section.expanded {
|
||||
display: flex; }
|
||||
.message-app .view-overview-body .section div[data-region="toggle"] {
|
||||
padding: 0.1rem; }
|
||||
.message-app .view-conversation .content-message-container img {
|
||||
max-width: 100%; }
|
||||
.message-app .list-group {
|
||||
@ -15976,10 +15978,20 @@ a.ygtvspacer:hover {
|
||||
.message-app .list-group .list-group-item {
|
||||
border-left: 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 {
|
||||
border-top: 0; }
|
||||
.message-app .list-group .list-group-item:last-child {
|
||||
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 {
|
||||
min-height: 1.5rem; }
|
||||
.message-app .section .collapsing {
|
||||
|
@ -15969,6 +15969,8 @@ a.ygtvspacer:hover {
|
||||
display: block; }
|
||||
.message-app .view-overview-body .section.expanded {
|
||||
display: flex; }
|
||||
.message-app .view-overview-body .section div[data-region="toggle"] {
|
||||
padding: 0.1rem; }
|
||||
.message-app .view-conversation .content-message-container img {
|
||||
max-width: 100%; }
|
||||
.message-app .list-group {
|
||||
@ -15976,10 +15978,20 @@ a.ygtvspacer:hover {
|
||||
.message-app .list-group .list-group-item {
|
||||
border-left: 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 {
|
||||
border-top: 0; }
|
||||
.message-app .list-group .list-group-item:last-child {
|
||||
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 {
|
||||
min-height: 1.5rem; }
|
||||
.message-app .section .collapsing {
|
||||
|
Loading…
x
Reference in New Issue
Block a user