Changeset - 42718729687e
[Not reviewed]
default
0 1 2
Thomas De Schampheleire - 8 years ago 2017-09-28 22:03:01
thomas.de.schampheleire@gmail.com
style: use npm less to generate kallithea stylesheet style.css from style.less

This is a minimal change to introduce less as framework to generate our
stylesheet. The input less file is currently the same as the original css
stylesheet, so that the delta between the input style.less and the output
style.css is zero.

To regenerate style.css from style.less, run:

npm --prefix kallithea/public/less install
npm --prefix kallithea/public/less run less

These changes are based on work by Dominik Ruf.
3 files changed with 13 insertions and 0 deletions:
0 comments (0 inline, 0 general)
.hgignore
Show inline comments
 
syntax: glob
 
*.pyc
 
*.swp
 
*.sqlite
 
*.tox
 
*.egg-info
 
*.egg
 
*.mo
 
.eggs/
 
tarballcache/
 
node_modules/
 

	
 
syntax: regexp
 
^rcextensions
 
^build
 
^dist/
 
^docs/build/
 
^docs/_build/
 
^data$
 
^sql_dumps/
 
^\.settings$
 
^\.project$
 
^\.pydevproject$
kallithea/public/less/package.json
Show inline comments
 
new file 100644
 
{
 
  "name": "kallithea",
 
  "private": true,
 
  "dependencies": {},
 
  "devDependencies": {
 
    "less": "~2.7",
 
    "less-plugin-clean-css": "~1.5"
 
  },
 
  "scripts": {
 
    "less": "lessc style.less ../css/style.css"
 
  }
 
}
kallithea/public/less/style.less
Show inline comments
 
file copied from kallithea/public/css/style.css to kallithea/public/less/style.less
0 comments (0 inline, 0 general)