MDL-40759 themes: font awesome support
authorDamyon Wiese <damyon@moodle.com>
Mon, 19 Dec 2016 08:50:49 +0000 (16:50 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 17 Mar 2017 07:51:28 +0000 (15:51 +0800)
commita26ce2482aa79894fe1797caacddf12ea82afa11
tree518939e2e7a51a89d8715d34c9ac750c864c867d
parent98c4094eac26779c35ace2df30cd4c07057a80cc
MDL-40759 themes: font awesome support

We add a new theme config so the theme can say it supports font-awesome.
If this is true, the pix_icon renderer will call a mapping function to map
from the moodle style t/edit to a font-awesome style fa-cog icon name. Then the renderer
will either render an image tag for old icons - or an accessible font-awesome <i> tag.

This mostly works - but there are some places where we don't use the pix icon renderer, and
we directly create image tags with pix_url image sources. These will need updating (Atto icons,
drag and drop move icons, editpdf icons).
99 files changed:
.eslintignore
.stylelintignore
admin/tool/lp/competencies.php
lib/classes/output/external.php
lib/db/services.php
lib/fonts/FontAwesome.otf [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/HELP-US-OUT.txt [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/css/font-awesome.css [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/css/font-awesome.min.css [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/fonts/FontAwesome.otf [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.eot [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.svg [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/fonts/fontawesome-webfont.woff2 [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/animated.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/bordered-pulled.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/core.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/fixed-width.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/font-awesome.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/icons.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/larger.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/list.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/mixins.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/path.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/rotated-flipped.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/screen-reader.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/stacked.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/less/variables.less [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_animated.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_bordered-pulled.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_core.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_fixed-width.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_icons.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_larger.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_list.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_mixins.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_path.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_rotated-flipped.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_screen-reader.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_stacked.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/_variables.scss [new file with mode: 0644]
lib/fonts/font-awesome-4.7.0/scss/font-awesome.scss [new file with mode: 0644]
lib/fonts/fontawesome-webfont.eot [new file with mode: 0644]
lib/fonts/fontawesome-webfont.svg [new file with mode: 0644]
lib/fonts/fontawesome-webfont.ttf [new file with mode: 0644]
lib/fonts/fontawesome-webfont.woff [new file with mode: 0644]
lib/fonts/fontawesome-webfont.woff2 [new file with mode: 0644]
lib/formslib.php
lib/outputcomponents.php
lib/outputlib.php
lib/templates/pix_icon.mustache
lib/thirdpartylibs.xml
mod/forum/lib.php
theme/boost/classes/output/core_renderer.php
theme/boost/config.php
theme/boost/lib.php
theme/boost/scss/fontawesome/_animated.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_bordered-pulled.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_core.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_fixed-width.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_icons.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_larger.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_list.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_mixins.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_path.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_rotated-flipped.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_screen-reader.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_stacked.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/_variables.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/font-awesome.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/moodle-path.scss [new file with mode: 0644]
theme/boost/scss/fontawesome/readme_moodle.txt [new file with mode: 0644]
theme/boost/scss/moodle.scss
theme/boost/scss/moodle/icons.scss
theme/boost/scss/preset/default.scss
theme/boost/templates/core/pix_icon.mustache [deleted file]
theme/boost/templates/core_form/element-radio.mustache
theme/boost/templates/core_form/element-template-inline.mustache
theme/boost/templates/core_form/element-template.mustache
theme/boost/thirdpartylibs.xml
theme/bootstrapbase/less/fontawesome/animated.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/bordered-pulled.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/core.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/fixed-width.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/font-awesome.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/icons.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/larger.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/list.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/mixins.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/moodle-path.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/path.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/readme_moodle.txt [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/rotated-flipped.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/screen-reader.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/stacked.less [new file with mode: 0644]
theme/bootstrapbase/less/fontawesome/variables.less [new file with mode: 0644]
theme/bootstrapbase/less/moodle.less
theme/bootstrapbase/style/moodle.css
theme/bootstrapbase/thirdpartylibs.xml