mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-38574 qtype chooser: quick fix to make it fit on-screen.
MDL-32729 will provide a better fix for this, but we may as well apply this quick fix on stable branches.
This commit is contained in:
parent
e3552170da
commit
c1db10b6d5
4 changed files with 37 additions and 4 deletions
|
@ -62,8 +62,7 @@
|
|||
border-top: 0 none;
|
||||
.box-shadow(5px 5px 20px 0 #666);
|
||||
}
|
||||
//#qtypechoicecontainer
|
||||
#chooseqtype {
|
||||
#qtypechoicecontainer #chooseqtype {
|
||||
width: 40em;
|
||||
}
|
||||
#chooseqtypehead h3 {
|
||||
|
@ -75,6 +74,17 @@
|
|||
border-bottom: 1px solid #bbb;
|
||||
padding: 0.24em 0;
|
||||
}
|
||||
#chooseqtype .alloptions {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
max-height: 400px;
|
||||
max-height: calc(100vh - 15em);
|
||||
/* The next line is a workaround because recess is crap. Delete ththe following line once
|
||||
* https://github.com/twitter/recess/issues/59 / https://github.com/twitter/recess/issues/75
|
||||
* is fixed. The previous line is the right one. */
|
||||
max-height: 60vh;
|
||||
width: 60%;
|
||||
}
|
||||
#chooseqtype .qtypeoption {
|
||||
margin-bottom: 0;
|
||||
padding: 0.3em 0.3em 0.3em 1.6em;
|
||||
|
@ -97,6 +107,8 @@
|
|||
bottom: 0;
|
||||
left: 60%;
|
||||
margin: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding: 1.5em 1.6em;
|
||||
background-color: #fff;
|
||||
overflow-y: auto;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue