stable

Clone or download

Read-only

Display live code in the documentation

Part of story #9197: Get rid of Bootstrap in site admin Developers should be able to : * copy paste code from the framework documentation * test live the effect of an attribute (eg: tlp-button-primary tlp-button-outline disabled) * see the components change their color accordingly to the current theme switcher The initial plan was to use CodeBen to display components + code in the documentation, however it is impossible to fulfil the third requirement since CodeBen uses iframe and cross origins prevent us to update the content of the iframe, therefore we cannot switch component colors. Change-Id: I0580c2045bcce008d0fe2ba64f861935d6e2f9c7

Modified Files

Name
A src/www/themes/common/tlp/doc/codemirror/.gitignore +1 −0 Go to diff View file
A src/www/themes/common/tlp/doc/codemirror/5.12.2/addon/scroll/simplescrollbars.css +66 −0 Go to diff View file
A src/www/themes/common/tlp/doc/codemirror/5.12.2/codemirror-compressed.js +23 −0 Go to diff View file
A src/www/themes/common/tlp/doc/codemirror/5.12.2/codemirror.css +338 −0 Go to diff View file
A src/www/themes/common/tlp/doc/codemirror/5.12.2/theme/mdn-like.css +44 −0 Go to diff View file
A src/www/themes/common/tlp/doc/css/_demos.scss +50 −0 Go to diff View file
M src/www/themes/common/tlp/doc/css/_sections.scss +12 −20 Go to diff View file
M src/www/themes/common/tlp/doc/css/main.scss +3 −5 Go to diff View file
M src/www/themes/common/tlp/doc/index.html +124 −37 Go to diff View file
A src/www/themes/common/tlp/doc/js/editors.js +49 −0 Go to diff View file