MDL-81307 core_courseformat: Add bulk styles for small devices

This commit is contained in:
Mikel Martín
2024-04-09 13:30:34 +02:00
parent c9fe574fdd
commit 441ab036e0
6 changed files with 73 additions and 9 deletions
+19
View File
@@ -1805,6 +1805,25 @@ $activity-add-hover: theme-color-level('primary', -10) !default;
}
}
// Custom styles for bulk actions sticky footer in small devices.
.stickyfooter.bulkactions {
@include media-breakpoint-down(sm) {
.form-check,
.bulkaction-name,
.bulkcount {
display: none;
}
.actions button {
padding: 0 map-get($spacers, 2);
}
.bulkcancel {
position: absolute;
top: 0;
right: 0;
}
}
}
/* Activity completion */
.defaultactivitycompletion-item {
+1 -1
View File
@@ -10,7 +10,7 @@ body.behat-site {
// Sticky footer can overlap with elements so we keep it relative for behat.
&.hasstickyfooter .stickyfooter,
.stickyfooter {
position: inherit;
position: relative;
z-index: inherit;
}
+17 -1
View File
@@ -29945,6 +29945,22 @@ span.editinstructions .alert-link {
margin-left: 2rem;
}
}
@media (max-width: 767.98px) {
.stickyfooter.bulkactions .form-check,
.stickyfooter.bulkactions .bulkaction-name,
.stickyfooter.bulkactions .bulkcount {
display: none;
}
.stickyfooter.bulkactions .actions button {
padding: 0 0.5rem;
}
.stickyfooter.bulkactions .bulkcancel {
position: absolute;
top: 0;
right: 0;
}
}
/* Activity completion */
.defaultactivitycompletion-item a {
color: #000;
@@ -36254,7 +36270,7 @@ body.behat-site .fixed-top {
}
body.behat-site.hasstickyfooter .stickyfooter,
body.behat-site .stickyfooter {
position: inherit;
position: relative;
z-index: inherit;
}
body.behat-site .dropdown-item {