Merge branch 'MDL-80397-main' of https://github.com/roland04/moodle

This commit is contained in:
Andrew Nicols 2024-04-03 12:53:03 +08:00
commit 14ca464910
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14
27 changed files with 267 additions and 438 deletions

View file

@ -31,8 +31,8 @@
"reporturl": "http://moodlesite/report/themeusage/index.php?themechoice=boost"
}
}}
<div class="card dashboard-card" role="listitem" id="theme-card-{{choose}}" aria-labelledby="theme-name-{{choose}} {{#current}}current-theme-{{choose}}{{/current}}">
<div class="card-img dashboard-card-img" style='background-image: url("{{image}}");'></div>
<div class="card theme-card" role="listitem" id="theme-card-{{choose}}" aria-labelledby="theme-name-{{choose}} {{#current}}current-theme-{{choose}}{{/current}}">
<div class="card-img card-img-top" style='background-image: url("{{image}}");'></div>
<div class="card-body p-3">
<div class="d-flex">
<div class="flex-grow-1">

View file

@ -62,9 +62,11 @@
{{>core/single_button}}
</div>
{{/resetbutton}}
<div class="card-deck dashboard-card-deck" id="themelist" data-region="card-deck" role="list" data-definedinconfig="{{definedinconfig}}">
<div class="card-grid row row-cols-1 row-cols-md-3 mx-0" id="themelist" data-region="card-deck" role="list" data-definedinconfig="{{definedinconfig}}">
{{#themes}}
{{>core_admin/themeselector/theme_card}}
<div class="col d-flex px-1 mb-2">
{{>core_admin/themeselector/theme_card}}
</div>
{{/themes}}
</div>

View file

@ -2,9 +2,9 @@
Usage: `moodleicons`
*/ -}}
<div class="card-deck">
<div class="d-sm-flex flex-wrap">
{{ range $.Site.Data.fontawesomeicons }}
<div class="card mb-2 p-1 d-flex flex-column justify-content-around text-center" style="flex: 0 0 20%; height: 150px">
<div class="card mb-2 mx-1 p-1 d-flex flex-column justify-content-around text-center" style="flex: 0 0 20%; height: 150px">
<div class="small text-truncate" data-toggle="tooltip" data-placement="bottom" title="{{ .name }}">{{ .name }}</div>
<div class="row no-gutters">
<div class="col-sm-6 d-flex align-items-center justify-content-center">