Skip to content

Commit

Permalink
MDL-76150 theme_boost: fix sticky header position on narrow screens
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies authored and paulholden committed Apr 5, 2023
1 parent 6ca40f5 commit 5a890b5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
7 changes: 6 additions & 1 deletion theme/boost/scss/moodle/grade.scss
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,13 @@
}

th.header {
@include media-breakpoint-down(sm) {
left: 0;
}
@include media-breakpoint-up(md) {
left: -3rem;
}
position: sticky;
left: -3rem;
z-index: 1;
}

Expand Down
11 changes: 10 additions & 1 deletion theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -34989,9 +34989,18 @@ p.arrow_button {
}
.path-grade-report-grader .gradeparent th.header {
position: sticky;
left: -3rem;
z-index: 1;
}
@media (max-width: 767.98px) {
.path-grade-report-grader .gradeparent th.header {
left: 0;
}
}
@media (min-width: 768px) {
.path-grade-report-grader .gradeparent th.header {
left: -3rem;
}
}
.path-grade-report-grader .gradeparent td.noborder {
border-right: transparent;
}
Expand Down
11 changes: 10 additions & 1 deletion theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -34989,9 +34989,18 @@ p.arrow_button {
}
.path-grade-report-grader .gradeparent th.header {
position: sticky;
left: -3rem;
z-index: 1;
}
@media (max-width: 767.98px) {
.path-grade-report-grader .gradeparent th.header {
left: 0;
}
}
@media (min-width: 768px) {
.path-grade-report-grader .gradeparent th.header {
left: -3rem;
}
}
.path-grade-report-grader .gradeparent td.noborder {
border-right: transparent;
}
Expand Down

0 comments on commit 5a890b5

Please sign in to comment.