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).
26 lines
585 B
Plaintext
26 lines
585 B
Plaintext
// Bordered & Pulled
|
|
// -------------------------
|
|
|
|
.@{fa-css-prefix}-border {
|
|
padding: .2em .25em .15em;
|
|
border: solid .08em @fa-border-color;
|
|
border-radius: .1em;
|
|
}
|
|
|
|
.@{fa-css-prefix}-pull-left { float: left; }
|
|
.@{fa-css-prefix}-pull-right { float: right; }
|
|
|
|
.@{fa-css-prefix} {
|
|
&.@{fa-css-prefix}-pull-left { margin-right: .3em; }
|
|
&.@{fa-css-prefix}-pull-right { margin-left: .3em; }
|
|
}
|
|
|
|
/* Deprecated as of 4.4.0 */
|
|
.pull-right { float: right; }
|
|
.pull-left { float: left; }
|
|
|
|
.@{fa-css-prefix} {
|
|
&.pull-left { margin-right: .3em; }
|
|
&.pull-right { margin-left: .3em; }
|
|
}
|