Skip to content

Instantly share code, notes, and snippets.

@damyon
Created September 8, 2016 12:46
Show Gist options
  • Save damyon/12a5260f276e1d209be5bcc913ff8cc0 to your computer and use it in GitHub Desktop.
Save damyon/12a5260f276e1d209be5bcc913ff8cc0 to your computer and use it in GitHub Desktop.
Dev Meeting Notes
Demo of theme:
http://prototype.moodle.net/theme/
Links to things to talk about (code!)
=SCSS compiler=
Sass example:
https://github.com/damyon/moodle/blob/MDL-55071-master/theme/noname/scss/moodle/core.scss#L71
=Auto flipping for sass, css and less=
https://github.com/damyon/moodle/blob/MDL-55071-master/theme/noname/scss/moodle/core.scss#L131
Available rtl directives are:
rtl:begin:ignore
rtl:end:ignore
rtl:ignore
(don't flip for rtl)
rtl:remove
rtl:begin:remove
rtl:end:remove
(rule for only ltr)
rtl:raw
(rule for only rtl)
=Mustache templates for lots of things (including all of mforms)=
https://github.com/damyon/moodle/blob/MDL-55071-master/theme/noname/templates/core_form/element-button.mustache
=Override behat contexts for a specific theme=
Allows running behat against a custom theme with overridden contexts
https://github.com/damyon/moodle/tree/MDL-55839-master/theme/noname/tests/behat/
=Presets=
Import from a bootswatch
https://github.com/damyon/moodle/blob/MDL-55839-master/theme/noname/cli/readme_moodle.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment