Files
moodle/theme/bootstrapbase/less/fontawesome/moodle-path.less
T
Damyon Wiese a26ce2482a 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).
2017-03-17 15:51:28 +08:00

16 lines
757 B
Plaintext

/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('[[font:core|fontawesome-webfont.eot]]?v=@{fa-version}');
src: url('[[font:core|fontawesome-webfont.eot]]?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('[[font:core|fontawesome-webfont.woff2]]?v=@{fa-version}') format('woff2'),
url('[[font:core|fontawesome-webfont.woff]]?v=@{fa-version}') format('woff'),
url('[[font:core|fontawesome-webfont.ttf]]?v=@{fa-version}') format('truetype'),
url('[[font:core|fontawesome-webfont.svg]]?v=@{fa-version}#fontawesomeregular') format('svg');
// src: url('[[font:core|FontAwesome.otf]]') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
}