#1 Reason why fixed-width Moodle themes are difficult to achieve ...

#1 Reason why fixed-width Moodle themes are difficult to achieve ...

by Patrick Malley -
Number of replies: 6
Popups.

Consider the CSS to fix all (known) popup windows:

#message-index #footer,
#message-discussion #footer,
#message-history #footer,
#mod-glossary-showentry #footer,
#mod-glossary-showentry #header,
#mod-glossary-showentry .navbar,
#help #footer {
display:none;
}

#message-index #page,
#message-user #page,
#message-history #page,
#mod-glossary-showentry #page,
#help #page {
width:auto;
}

#message-user #page {
margin:0;
}

#message-user #content {
padding:0;
}

body#help,
#help #content,
body#message-index,
#message-index #content,
#message-user #content,
body#message-user,
body#message-send,
body#message-messages,
body#message-discussion,
#message-discussion #content,
#message-history #content,
body#message-history,
body#mod-glossary-showentry,
#mod-glossary-showentry #content {
background:none;
}


You're welcome, by the way! And, I promise that I have missed one or two items that need individual attention.

Would it be possible to add a single class that appears in all popups so that this can be styled all at once?

I don't know anything about the programming side, so I'm really asking.
Average of ratings: -
In reply to Patrick Malley

Re: #1 Reason why fixed-width Moodle themes are difficult to achieve ...

by Urs Hunkler -
Picture of Core developers

Hi Patrick,

thank you for your contribution. Great idea - an additional body class would help a lot. By the way - you do not list the properties for the chat window.

After a short check in the source code for those popup windows I can say, that there is no easy and fast solution. They are build differently.

Can you please add an issue in the Moodle Tracker that your idea doesn't get lost. I may have some time later to create a solution.

In reply to Urs Hunkler

Re: #1 Reason why fixed-width Moodle themes are difficult to achieve ...

by Patrick Malley -
By the way - you do not list the properties for the chat window.


See, I promised I'd missed something!

Can you please add an issue in the Moodle Tracker that your idea doesn't get lost.


Sure thing.
In reply to Patrick Malley

Re: #1 Reason why fixed-width Moodle themes are difficult to achieve ...

by Julian Ridden -
You, dear sir, are brilliant!

The number of clients I have who keep asking for fixed width was driving me insane.

Ill let you know if I run into any issues.
In reply to Julian Ridden

Re: #1 Reason why fixed-width Moodle themes are difficult to achieve ...

by Patrick Malley -
Known issue:

The scales popup is (IMHO) unfixable without breaking the Scales page (through course admin block).