summaryrefslogtreecommitdiff
path: root/addons/theme_bootswatch/static/src/less/simplex
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-08-28 08:54:30 +0000
committerNicolas Lempereur <nle@odoo.com>2019-08-28 09:20:32 +0000
commit3862f6366908c07b6ffe06d8693c2a82c7d74f58 (patch)
tree181bb1dd30e14265bacb615da59fb29ef278cf7f /addons/theme_bootswatch/static/src/less/simplex
parent344beaf2826e0d09c2d19923f53657b46979a110 (diff)
[FIX] theme_bootswatch, doc: https import for less3
The @import directive in less leave the @import as is if it detects .css extension. Otherwise it will use the less import. Since less 3.0.0 less/less.js@77fde7eb7 checking css extension regex changed from: /[#\.\&\?\/]css([\?;].*)?$/ to: /[#\.\&\?]css([\?;].*)?$/ thus all our import of google fonts with URI like: //fonts.googleapis.com/css?family=FontName now are getting imported as less, thus they are included directly in the output file with HTTP scheme URL which may be blocked on HTTPS instance. With this fix, we specify that the import is a normal CSS one with (css) import option: http://lesscss.org/features/#import-atrules-feature-css opw-2057037 closes #36167 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/theme_bootswatch/static/src/less/simplex')
-rw-r--r--addons/theme_bootswatch/static/src/less/simplex/bootswatch.less4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/theme_bootswatch/static/src/less/simplex/bootswatch.less b/addons/theme_bootswatch/static/src/less/simplex/bootswatch.less
index 9587dd0ec88..137501ff46c 100644
--- a/addons/theme_bootswatch/static/src/less/simplex/bootswatch.less
+++ b/addons/theme_bootswatch/static/src/less/simplex/bootswatch.less
@@ -2,7 +2,7 @@
// Bootswatch
// -----------------------------------------------------
-@import url("//fonts.googleapis.com/css?family=Open+Sans:400,700");
+@import (css) url("//fonts.googleapis.com/css?family=Open+Sans:400,700");
.btn-shadow(@color) {
#gradient > .vertical-three-colors(lighten(@color, 3%), @color, 6%, darken(@color, 3%));
@@ -139,4 +139,4 @@ label {
// Progress bars ==============================================================
-// Containers ================================================================= \ No newline at end of file
+// Containers =================================================================