mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-80259 theme_boost: Refactor badge helper classes for Bootstrap 5
This commit is contained in:
parent
810554ee83
commit
a198884333
93 changed files with 218 additions and 209 deletions
|
@ -69,7 +69,7 @@
|
|||
</p>
|
||||
</div>
|
||||
<div class="unread-count-container">
|
||||
<span data-region="unread-count" class="badge badge-danger">{{unreadcount}}</span>
|
||||
<span data-region="unread-count" class="badge bg-danger text-white">{{unreadcount}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
</div>
|
||||
<div class="d-flex align-self-center align-items-center">
|
||||
<span
|
||||
class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
|
||||
class="badge rounded-pill bg-primary text-white {{^unreadcount}}hidden{{/unreadcount}}"
|
||||
data-region="unread-count"
|
||||
>
|
||||
<span aria-hidden="true">{{unreadcount}}</span>
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
</div>
|
||||
|
||||
<span
|
||||
class="badge badge-pill badge-primary {{^unreadcount}}hidden{{/unreadcount}}"
|
||||
class="badge rounded-pill bg-primary text-white {{^unreadcount}}hidden{{/unreadcount}}"
|
||||
data-region="unread-count"
|
||||
>
|
||||
{{unreadcount}}
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
aria-selected="false"
|
||||
>
|
||||
{{#str}} requests {{/str}}
|
||||
<span class="badge badge-primary bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
|
||||
<span class="badge bg-primary text-white ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
|
||||
data-region="contact-request-count"
|
||||
>
|
||||
<span aria-hidden="true">{{contactrequestcount}}</span>
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
{{#pix}} i/user, core {{/pix}}
|
||||
{{#str}} contacts, core_message {{/str}}
|
||||
<span
|
||||
class="badge badge-primary bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
|
||||
class="badge bg-primary text-white ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
|
||||
data-region="contact-request-count"
|
||||
>
|
||||
<span aria-hidden="true">{{contactrequestcount}}</span>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
{{> core/loading }}
|
||||
</span>
|
||||
<span
|
||||
class="{{^count.unread}}hidden{{/count.unread}} badge badge-pill badge-primary ml-auto bg-primary"
|
||||
class="{{^count.unread}}hidden{{/count.unread}} badge rounded-pill bg-primary text-white ml-auto"
|
||||
data-region="section-unread-count"
|
||||
>
|
||||
<span aria-hidden="true">{{count.unread}}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue