a26ce2482a
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).
13 lines
452 B
Plaintext
13 lines
452 B
Plaintext
// Base Class Definition
|
|
// -------------------------
|
|
|
|
.@{fa-css-prefix} {
|
|
display: inline-block;
|
|
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
|
|
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
|
text-rendering: auto; // optimizelegibility throws things off #1094
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
}
|