[FIX] web, website: fix font path for bootstrap

Before this commit, if you or a lib uses Glyphicons, the font was loaded from
/web/content/fonts/ (or /web/static/src/less/fonts/ in debug=assets)

It is because bootstrap is imported from /web/static/src/less/import_boostrap.less
not directly from /web/static/lib/bootstrap/less/bootstrap.less

Now, we use absolute path to load font, overriding the variable define in
variables.less from bootstrap.
This commit is contained in:
Jeremy Kersten
2018-04-04 13:02:21 +02:00
parent bff47822f8
commit 5ba05f2ba4
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -101,3 +101,5 @@
overflow-x: initial;
}
}
@icon-font-path: "/web/static/lib/bootstrap/fonts/";
@@ -51,3 +51,5 @@ body.o_connected_user {
}
}
}
@icon-font-path: "/web/static/lib/bootstrap/fonts/";