mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-38661 Course: Add JS category expander.
This adds a category expanded which: * fetches child content in a category tree if it has not already been loaded; * toggles relevant classes on the category node to show and hide child content; and * applies appropriate animations to improve user experience.
This commit is contained in:
parent
b69ec2889e
commit
53c1b936e5
18 changed files with 1437 additions and 103 deletions
|
@ -241,13 +241,13 @@ a.skip:active {position: static;display: block;}
|
|||
.mform fieldset.hidden {border-width:0;}
|
||||
.mform fieldset.group {margin-bottom: 0}
|
||||
.mform fieldset.error {border: 1px solid #A00;}
|
||||
.mform .collapsible-actions {display: none;}
|
||||
.jsenabled .mform .collapsible-actions {text-align: right; display: block;}
|
||||
.dir-rtl .mform .collapsible-actions {text-align: left;}
|
||||
.mform .collapseexpand {background: url([[pix:t/collapsed]]) left center no-repeat; padding-left: 18px;}
|
||||
.dir-rtl .mform .collapseexpand {background-image: url([[pix:t/collapsed_rtl]]); background-position: right center; padding-left: 0; padding-right: 18px;}
|
||||
.mform .collapse-all,
|
||||
.dir-rtl .mform .collapse-all {background-image: url([[pix:t/expanded]]);}
|
||||
.collapsible-actions {display: none;}
|
||||
.jsenabled .collapsible-actions {text-align: right; display: block;}
|
||||
.dir-rtl .collapsible-actions {text-align: left;}
|
||||
.collapseexpand {background: url([[pix:t/collapsed]]) left center no-repeat; padding-left: 18px;}
|
||||
.dir-rtl .collapseexpand {background-image: url([[pix:t/collapsed_rtl]]); background-position: right center; padding-left: 0; padding-right: 18px;}
|
||||
.collapse-all,
|
||||
.dir-rtl .collapse-all {background-image: url([[pix:t/expanded]]);}
|
||||
.mform fieldset legend {padding: 0 0.35em;}
|
||||
.mform fieldset.collapsible legend a.fheader {padding-left: 18px; background: url([[pix:t/expanded]]) left center no-repeat;}
|
||||
.mform fieldset.collapsed legend a.fheader {background-image: url([[pix:t/collapsed]]);}
|
||||
|
@ -1494,3 +1494,11 @@ div.badge .expireimage { width: 100px; height: 100px; left: 20px; top: 0px; }
|
|||
|
||||
ul.dragdrop-keyboard-drag li { list-style-type: none; }
|
||||
.block-control-actions .moodle-core-dragdrop-draghandle img { width: 12px; height: 12px; }
|
||||
|
||||
a.disabled:hover,
|
||||
a.disabled {
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
font-style: italic;
|
||||
color: #808080;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue