Skip to content

Commit

Permalink
MDL-64375 gradingform_rubric: Styles for overflow
Browse files Browse the repository at this point in the history
Allow people to define lots of levels, and make the scroll region just the rubric table,
not the entire content region.
  • Loading branch information
Damyon Wiese committed Jan 4, 2019
1 parent 7f234ac commit 20ad67d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions grade/grading/form/rubric/styles.css
Expand Up @@ -64,10 +64,7 @@
}

.gradingform_rubric {
overflow: auto;
padding-bottom: 1.5em;
max-width: 720px;
position: relative;
}

.gradingform_rubric.editor .criterion .controls,
Expand All @@ -89,6 +86,9 @@

.gradingform_rubric .criteria {
height: 100%;
display: flex;
width: 100%;
overflow: auto;
}

.gradingform_rubric .criterion {
Expand Down Expand Up @@ -307,4 +307,4 @@
margin: 0;
position: relative;
float: right;
}
}
5 changes: 4 additions & 1 deletion mod/assign/styles.css
Expand Up @@ -766,8 +766,11 @@
/***** Start rubric *****/

.path-mod-assign [data-region="grade-panel"] .gradingform_rubric {
max-width: 100%;
padding-bottom: 0;
max-width: none;
}
.path-mod-assign .gradingform_rubric {
max-width: calc(100vw - 200px);
}

.path-mod-assign [data-region="grade-panel"] .gradingform_rubric .criterion .description {
Expand Down

0 comments on commit 20ad67d

Please sign in to comment.