I just tried out a couple of these to see if it it would even work and am so pleased with the results of literally less than 60 seconds work that I thought I'd share some screencaptures of two of the themes, called Amelia and Cyborg on a Moodle:
It's not perfect, but it's a lot better than I thought it would be to start with.
I believe that Bas Brands did a talk about the best way to do this at the recent iMoot. Possibly there are slides available? Ah, here is a very comprehensive blog post about his talk:
You can also refer to his Bootstrap theme for 2.4 which has the files already in place for this.
And see a public demo:
It could be made a lot simpler if we had our own Moodle Bootstrap Templates styled using the same classes and ids taken from bootstrapbase. Adding a template that is styled for Bootstrap is crazy.
If you want to use a bootstrap swatch in Clean theme the quickest and easiest is drop all the bootstrap swatch css into the Clean's custom settings page provided, which is found by selecting...
Site Administration > Appearance > Themes ->> Click the link names Clean in the list you see at this point.
Add the CSS to the css box and save your settings. You should see the changes directly after you have save the settings. If not Go to Theme setting and enable Theme Designer Mode.
You can then decide whether or not it would be easier to style it yourself from scratch.
I can't get to the page that David linked to. So I am not familiar with whatever Bas wrote or indeed advises.
Hope the above helps anyway.
Odd, the links for me are working. Looking at 'http://bootswatch.com/' they supply the 'less' files as well, so instead of using the compiled css files, use the 'less' files as replacements in the 'less/bootstrap' folder and recompile with 'recess' as per the instructions.
please can someone help me recess the .less file.
the command on basbrands blog doesnt make sense to me
Moodle.less = is not the new less file
/style/Moodle.css = does not exist
i am running the recess command on cyqwin on a wndows 64bit server.
thanks for your help
The 'README' file in 'bootstrapbase/less' gives instructions and refers to http://docs.moodle.org/dev/LESS which shows you how to install and use 'recess' under 'Node.js'.
Indeed there is information out there but IMHO Moodle has to make it much easier if it wants to head in the direction of bootstrap themes.
I'd say the vast majority of users (of small sites at least) are likely to struggle with modifying Clean for their site. A lot are still on shared servers therefore, may well not have shell access. Even if they do, they may be unable to install Recess.
Bootstrap is still a freshly born entity with Moodle so watch this space
Built in pre-processors currently being discussed.
I've created a couple of YouTube videos on changing the Clean theme and using 'Recess' on Windows - forum post to come. As 'recess' just produces the 'moodle.css' file etc. then you can even develop on a NetBook and then upload the file you your servers - so no shell access or need to install 'Recess' on them.
Interesting and this has caused the thought that Moodle could do something similar but by using a hybrid of the new logo upload and css settings pre-processing facility. Such that the compiled css would be requested like the logo and if it was not there be compiled server side, sent to the client and cached. Then things like 'Purge all caches' / 'Purge theme cache' event in settings.php would cause it to be reset. This would also provide the capability to have a 'custom less' rather than 'custom css' settings box which would automatically trigger a theme cache purge when it changes - just like it can at the moment.
This would also mean that we would not have to store 'moodle.css' etc in GitHub and recompile it for tracker issues. You could then in theory have a 'file upload' for replacement 'variables.less' and 'bootswatch.less' files.
I'll not hold my breath then!
Thanks Gareth. I installed WinLess on my machine to compile the CSS. I found it easier.
Spam!!! Me!! ?? It was not an advert, but a site that you can use to see if a website is actually down or it is just you / your ISP / firewall etc. that is blocking the site. And hence was for you to see if it was you who could not see the links