changeset 7082:a385bbbae672

less: run lessc with --relative-urls so relative paths are rewritten 25e079891ff5 broke select2 - it did for example no longer display the search symbol in the input field. The css had a relative path to 'select2.png' which no longer was correct when the literal reference moved to style.css . Bootstrap had the same issue with '../fonts/glyphicons-halflings-regular.*' ... but we do not rely much on that. As a quick fix, just adjust the relative reference and keep pointing at the original location. A next step might be to copy files around in a cross platform compliant way, reliably at the right point in the development/build/install process.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 03 Jan 2018 03:41:21 +0100
parents 4a469c7df4bb
children 61c99cdbbfff
files kallithea/public/less/package.json
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/less/package.json	Wed Jan 03 03:41:13 2018 +0100
+++ b/kallithea/public/less/package.json	Wed Jan 03 03:41:21 2018 +0100
@@ -9,6 +9,6 @@
     "less-plugin-clean-css": "~1.5"
   },
   "scripts": {
-    "less": "lessc main.less ../css/style.css"
+    "less": "lessc --relative-urls main.less ../css/style.css"
   }
 }