| Línea 9... |
Línea 9... |
| 9 |
|
9 |
|
| Línea 10... |
Línea 10... |
| 10 |
https://github.com/twbs/bootstrap
|
10 |
https://github.com/twbs/bootstrap
|
| Línea 11... |
Línea 11... |
| 11 |
|
11 |
|
| 12 |
To update to the latest release of twitter bootstrap:
|
12 |
To update to the latest release of twitter bootstrap:
|
| 13 |
|
13 |
|
| 14 |
* download bootstrap to your home folder
|
- |
|
| 15 |
* remove folder theme/boost/scss/bootstrap
|
- |
|
| 16 |
* copy the scss files from ~/bootstrap/scss to theme/boost/scss/bootstrap
|
- |
|
| 17 |
* comment out left: 0; from .popover {} in scss/bootstrap/_popover.scss. In RTL mode this prevents popovers from showing and it is not required in LTR mode.
|
- |
|
| 18 |
* comment out this line in theme/boost/scss/_print.scss
|
- |
|
| 19 |
@page {
|
- |
|
| 20 |
size: $print-page-size;
|
14 |
* download bootstrap source files to your home folder
|
| 21 |
}
|
15 |
* remove folder theme/boost/scss/bootstrap
|
| Línea 22... |
Línea 16... |
| 22 |
It breaks when compiled with phpscss.
|
16 |
* copy the scss files from ~/bootstrap/scss to theme/boost/scss/bootstrap
|
| Línea 23... |
Línea 17... |
| 23 |
* update ./thirdpartylibs.xml
|
17 |
* update ./thirdpartylibs.xml
|
| 24 |
* follow the instructions in admin/tool/component_library/readme_moodle.txt to update the Bootstrap documentation there.
|
18 |
* follow the instructions in admin/tool/component_library/readme_moodle.txt to update the Bootstrap documentation there.
|
| 25 |
|
19 |
|
| 26 |
Javascript:
|
20 |
Javascript:
|
| 27 |
|
21 |
|
| 28 |
* remove folder theme/boost/amd/src/bootstrap
|
22 |
* remove folder theme/boost/amd/src/bootstrap
|
| - |
|
23 |
* copy the js files from ~/bootstrap/js/src to theme/boost/amd/src/bootstrap (including the subfolder)
|
| - |
|
24 |
* copy index.js from ~/bootstrap/js to theme/boost/amd/src
|
| - |
|
25 |
* edit theme/boost/amd/src/index.js and update import path (src -> bootstrap)
|
| - |
|
26 |
* Moodle core includes the popper.js library, make sure each of the new Bootstrap js files
|
| 29 |
* copy the js files from ~/bootstrap/js/src to theme/boost/amd/src/bootstrap (including the subfolder)
|
27 |
includes the 'core/popper2' library instead of 'popperjs'. For current version these files were: tooltip.js and dropdown.js
|
| 30 |
* copy index.js from ~/bootstrap/js to theme/boost/amd/src
|
28 |
* Fix all Boostrap JS files import paths to use the correct AMD module names. For example, change:
|
| 31 |
* edit theme/boost/amd/src/index.js and update import path (src -> bootstrap)
|
29 |
import Manipulator from '../dom/manipulator.js'
|
| 32 |
* Moodle core includes the popper.js library, make sure each of the new Bootstrap js files
|
30 |
to:
|