MDL-76804 course: inserting activities UI element centered.

This commit is contained in:
Luca Bösch 2023-02-17 11:09:12 +01:00
parent 8503f2cfd8
commit 0428998de2
2 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,7 @@
"sectionreturn": 5
}
}}
<button class="btn btn-link text-decoration-none section-modchooser section-modchooser-link activity-add d-flex align-items-center p-3 mb-3 activitychooser-button"
<button class="btn btn-link text-decoration-none section-modchooser section-modchooser-link activity-add d-flex align-items-center activitychooser-button"
data-action="open-chooser" data-sectionid="{{num}}" data-sectionreturnid="{{sectionreturn}}" data-beforemod="{{id}}" aria-label="{{#str}}insertresourceoractivitybefore, core, { "activityname": {{#quote}} {{activityname}} {{/quote}} } {{/str}}" tabindex="0">
{{#pix}} t/add, core {{/pix}}
</button>

View File

@ -1562,8 +1562,7 @@ $activity-add-hover: theme-color-level('primary', -10) !default;
width: 2rem;
height: 2rem;
position: relative;
left: calc(50% - 1rem);
top: calc(50% - 1rem);
left: calc(50%);
opacity: 0;
visibility: hidden;
transition: visibility 0.1s;
@ -1574,8 +1573,8 @@ $activity-add-hover: theme-color-level('primary', -10) !default;
width: 1.5rem;
font-size: 1.5rem;
position: absolute;
left: 0.25rem;
top: 0.25rem;
left: calc(0.25rem - 1px);
top: calc(0.25rem - 0.5px);
}
}
}