Skip to content

Commit

Permalink
MDL-74331 question bank: prevent any one column getting too wide
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Apr 6, 2022
1 parent ad6dc71 commit 4144d09
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions theme/boost/scss/moodle/question.scss
Expand Up @@ -147,6 +147,7 @@
td,
th {
padding: 0 0.2em;
max-width: 40vw;
}

th {
Expand Down Expand Up @@ -655,3 +656,12 @@ body.path-question-type .mform fieldset.hidden {
margin: 0;
}
}

@include media-breakpoint-down(md) {
#categoryquestions {
td,
th {
max-width: 75vw;
}
}
}
8 changes: 7 additions & 1 deletion theme/boost/style/moodle.css
Expand Up @@ -16529,7 +16529,8 @@ a.ygtvspacer:hover {
margin: 0; }
#categoryquestions td,
#categoryquestions th {
padding: 0 0.2em; }
padding: 0 0.2em;
max-width: 40vw; }
#categoryquestions th {
text-align: left;
font-weight: normal; }
Expand Down Expand Up @@ -16954,6 +16955,11 @@ body.path-question-type .mform fieldset.hidden {
.que .content {
margin: 0; } }

@media (max-width: 991.98px) {
#categoryquestions td,
#categoryquestions th {
max-width: 75vw; } }

/* user.less */
.userprofile .fullprofilelink {
text-align: center;
Expand Down
8 changes: 7 additions & 1 deletion theme/classic/style/moodle.css
Expand Up @@ -16529,7 +16529,8 @@ a.ygtvspacer:hover {
margin: 0; }
#categoryquestions td,
#categoryquestions th {
padding: 0 0.2em; }
padding: 0 0.2em;
max-width: 40vw; }
#categoryquestions th {
text-align: left;
font-weight: normal; }
Expand Down Expand Up @@ -16954,6 +16955,11 @@ body.path-question-type .mform fieldset.hidden {
.que .content {
margin: 0; } }

@media (max-width: 991.98px) {
#categoryquestions td,
#categoryquestions th {
max-width: 75vw; } }

/* user.less */
.userprofile .fullprofilelink {
text-align: center;
Expand Down

0 comments on commit 4144d09

Please sign in to comment.