mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
a86103e09b
Conflicts: theme/bootstrap/style/generated.css theme/bootstrap/style/moodle.css theme/bootstrapbase/less/moodle/recess.txt theme/bootstrapbase/style/generated.css
51 lines
2.4 KiB
Plaintext
51 lines
2.4 KiB
Plaintext
Discription of Twitter bootstrap import into Moodle
|
|
|
|
Twitter bootstrap
|
|
-----------------
|
|
The bootstrap theme uses the original unmodified version 2.3.0 Twitter bootstrap less files. These are
|
|
Object Oriented CSS files. The bootstrap repository is available on:
|
|
|
|
https://github.com/twitter/bootstrap.git
|
|
|
|
To update to the latest release of twitter bootstrap:
|
|
* remove all files from less/bootstrap,
|
|
* download the new less files and store them in less/bootstrap
|
|
* regenerate files using recess: recess --compile --compress moodle.less > ../style/moodle.css **
|
|
* regenerate files using recess: recess --compile --compress editor.less > ../style/editor.css **
|
|
* update lib/thirdpartylibs.xml
|
|
|
|
** If you want to make changes to the .css generated from these .less files then you
|
|
need to install recess (https://github.com/twitter/recess) to compile the .less files,
|
|
then run these commands in the bootstrapbase/less/ folder:
|
|
|
|
|
|
html5shiv.js
|
|
------------
|
|
This theme uses the original unmodified html5shiv.js JavaScript library to enable HTML5 tags in IE7 and IE8.
|
|
This library is available on:
|
|
|
|
https://github.com/aFarkas/html5shiv/blob/master/src/html5shiv.js
|
|
|
|
To update to the latest release of html5shiv:
|
|
* download and replace: javascript/html5shiv.js
|
|
* update lib/thirdpartylibs.xml
|
|
|
|
bootstrapcollapse.js, bootstrapdropdown.js, bootstrapengine.js
|
|
--------------------------------------------------------------
|
|
This theme uses YUI ports of the Twitter bootstrap jQuery based libs. These ported files are available on:
|
|
|
|
https://github.com/jshirley/yui3-gallery/blob/master/src/gallery-bootstrap-collapse/js/bootstrap-collapse.js
|
|
https://github.com/jshirley/yui3-gallery/blob/master/src/gallery-bootstrap-dropdown/js/bootstrap-dropdown.js
|
|
https://github.com/jshirley/yui3-gallery/blob/master/src/gallery-bootstrap-engine/js/bootstrap-engine.js
|
|
|
|
The content of these files are slightly modified to make sure all required YUI libraries are loaded. To achieve
|
|
that the first and last line of each of these files has been modified.
|
|
|
|
The YUI port of the Twitter bootstrap libs are now longer maintained. If you need all of the Bootstrap JavaScript
|
|
functionality consider switching to the original jQuery version of these file
|
|
|
|
If you do want to update use these file locations:
|
|
theme/bootstrapbase/yui/src/bootstrap/js/bootstrap-collapse.js
|
|
theme/bootstrapbase/yui/src/bootstrap/js/bootstrap-dropdown.js
|
|
theme/bootstrapbase/yui/src/bootstrap/js/bootstrap-engine.js
|