MDL-68417 core_table: add some css styling to loading icon

This commit is contained in:
Simey Lameze 2020-05-11 15:14:10 +08:00
parent eebe3ca611
commit d717918c87
4 changed files with 30 additions and 0 deletions

View file

@ -1645,6 +1645,7 @@ class flexible_table {
if (is_a($this, \core_table\dynamic::class)) {
$sortdata = $this->get_sort_order();
return html_writer::start_tag('div', [
'class' => 'table-dynamic position-relative',
'data-region' => 'core_table/dynamic',
'data-table-handler' => $this->get_handler(),
'data-table-component' => $this->get_component(),

View file

@ -46,3 +46,14 @@ table {
caption-side: top;
}
}
.table-dynamic .loading-icon {
position: absolute;
left: calc(50% - 1.5rem);
top: 200px;
.icon {
height: 3rem;
width: 3rem;
font-size: 3rem;
}
}

View file

@ -17168,6 +17168,15 @@ table caption {
text-align: left;
caption-side: top; }
.table-dynamic .loading-icon {
position: absolute;
left: calc(50% - 1.5rem);
top: 200px; }
.table-dynamic .loading-icon .icon {
height: 3rem;
width: 3rem;
font-size: 3rem; }
.singlebutton {
display: inline-block; }
.singlebutton + .singlebutton {

View file

@ -17400,6 +17400,15 @@ table caption {
text-align: left;
caption-side: top; }
.table-dynamic .loading-icon {
position: absolute;
left: calc(50% - 1.5rem);
top: 200px; }
.table-dynamic .loading-icon .icon {
height: 3rem;
width: 3rem;
font-size: 3rem; }
.singlebutton {
display: inline-block; }
.singlebutton + .singlebutton {