dbnschools / moodle-theme_fordson

Theme for Moodle 3.3+
42 stars 40 forks source link

Block Course View #27

Closed cljkoopman closed 6 years ago

cljkoopman commented 6 years ago

The Fordson theme has the option to open the course blocks with a button "Course blocks" at the top of the course page. Great! I like that!

Is it possible to repeat this button at the bottom of the block overview after opening it? That saves a lot of scroll work.

Kind regards, Kees Koopman.

dbnschools commented 6 years ago

I see, so you can close it quickly after opening the listing of blocks?

cljkoopman commented 6 years ago

Thank you for your comment. I use a number of blocks on a course page (calender / progress / html / level / stash / etc.). When I open the block with "Course blocks", I sometimes have to scroll tightly to get to the bottom of my blocks. Now I have to scroll back again to push "Course blocks". That is why it seems handy to have the opportunity to close it again ("Course blocks") at the bottom of that block.

dbnschools commented 6 years ago

Try adding this to the bottom text box on the color page of fordson admin pages in the custom scss: .blockpanelbtn { top: 0; } .fp-blocks { padding-top: 2rem; } This will keep the button at the top of the page and then you can quickly close the blocks without having to scroll. I am thinking of including this in the next release.

cljkoopman commented 6 years ago

Thanks! Is it difficult to set the button at the top and at the bottom of a page? Your custom css works perfect!

dbnschools commented 6 years ago

Yes. It is difficult because the javascript targets a div ID and you cannot have 2 with the same name. So I think we will keep the button at the top as a workaround and usability improvement until I can circle back around to see about maybe a better solution.

cljkoopman commented 6 years ago

Great. Thanks!