Bootstrap 3.0

Bootstrap 3.0

Gareth J Barnard發表於
Number of replies: 4
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Hi all,

I was glancing last night at http://getbootstrap.com/getting-started/#migration and wondered how difficult it would be to update Bootstrapbase to 3.0.  Is M2.6 going to be B3.0?  Is anybody working on it?  I see that David has made a start on MDL-40177 but is not currently assigned.

I see that http://bootswatch.com/ has some nice new templates.

Thoughts?

Cheers,

Gareth

評比平均分數: -
In reply to Gareth J Barnard

Re: Bootstrap 3.0

David Scotson發表於
It's relatively painless. The start I made (https://github.com/ds125v/moodle/tree/bootstrap3) was at a point they were still moving pretty fast so there's been more stuff later. The diff looks a bit crazy, but that's mostly just dropping in the Bootstrap files on top of the old ones. The Moodle changes start from this point:

https://github.com/ds125v/moodle/compare/master...bootstrap3#L50L14

Basically none of the Bootstrap stuff has been added to Moodle core or renderers yet, so it's mostly a case of replacing the Bootstrap less files with the new versions, then doing some simple find and replace in the Moodle .less files and changing a few names in the layout files.

I would have aimed to use BS3 for 2.6, as it's a bit cleaner and more consistent, leaner and faster, and better for building on top of, but there still seems to be no real vision for adopting Bootstrap centrally so it's hard to tell what's going on. I intend to port it anyway as a separate theme and submit any of the changes I can as MDL issues, should be ready (as a third party theme) for 2.7 and probably work in 2.6 too.
評比平均分數:Useful (2)
In reply to David Scotson

Re: Bootstrap 3.0

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Thanks David :D - looks good.  I have a question about MDL-40177 so will put it there.

Conceptually at the moment Shoelace and Mutant Banjo have compiled css and only inherit from Bootstrapbase for portions of the core renderer and the YUI bit, so could update to B3.0 quite quickly.  If there are YUI code changes then this should not be too difficult.  Given this, they could ship as a B3.0 theme in M2.5.

Cheers,

Gareth

In reply to David Scotson

Re: Bootstrap 3.0

Mary Evans發表於

David, as far as I can tell the plan is to make Clean theme the default theme for Moodle 2.6, they are already heading that way, but Clean theme still needs tweaking if you can spare the time.

Cheers

Mary

In reply to Mary Evans

Re: Bootstrap 3.0

Julian Ridden發表於

As with Mary I thought there was a clear vision. Clean was to become the new "standard" and also with the "MyMobile" theme being removed from core in 2.6 I saw bootstrap themes as being positioned to take it's place.

If we are going to keep bootstrap in core then it is important that we keep it up to date as if it was one of our core libraries like YUI. (Just my 2c)

Julian