# HG changeset patch # User domruf # Date 1513442637 -3600 # Node ID 6085ccdf56a814420ae615fa5ff52ce1d16e92a0 # Parent 6ef837acb0d232774e3986f63019251ad417f1e9 less: introduce main.less that imports kallithea.less and other less files Some imports are moved from style.less for a better overview. Modified by Mads Kiilerich. diff -r 6ef837acb0d2 -r 6085ccdf56a8 kallithea/public/less/main.less --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kallithea/public/less/main.less Sat Dec 16 17:43:57 2017 +0100 @@ -0,0 +1,17 @@ +/*! + * Don't edit the css file directly. + * + * Instead, edit the less file(s) and regenerate the css: + * + * npm --prefix kallithea/public/less install + * npm --prefix kallithea/public/less run less + * + */ + +/* kallithea styles */ +@import "kallithea-variables.less"; +@import "kallithea-tags.less"; +@import "yui-ac.less"; +@import "kallithea-select2.less"; +@import "kallithea-diff.less"; +@import "style.less"; diff -r 6ef837acb0d2 -r 6085ccdf56a8 kallithea/public/less/package.json --- a/kallithea/public/less/package.json Tue Oct 24 21:18:09 2017 +0200 +++ b/kallithea/public/less/package.json Sat Dec 16 17:43:57 2017 +0100 @@ -7,6 +7,6 @@ "less-plugin-clean-css": "~1.5" }, "scripts": { - "less": "lessc style.less ../css/style.css" + "less": "lessc main.less ../css/style.css" } } diff -r 6ef837acb0d2 -r 6085ccdf56a8 kallithea/public/less/style.less --- a/kallithea/public/less/style.less Tue Oct 24 21:18:09 2017 +0200 +++ b/kallithea/public/less/style.less Sat Dec 16 17:43:57 2017 +0100 @@ -1,15 +1,3 @@ -/*! - * Don't edit the css file directly. - * - * Instead, edit the less file(s) and regenerate the css: - * - * npm --prefix kallithea/public/less install - * npm --prefix kallithea/public/less run less - * - */ - -@import "kallithea-variables.less"; - body { background: url("../images/background.png") repeat scroll 0 0 #B0B0B0; } @@ -215,8 +203,6 @@ color: #515151; } -@import "kallithea-tags.less"; - #footer { background-color: #577632; margin-bottom: 0; @@ -681,7 +667,6 @@ cursor: pointer; text-decoration: none; } -@import "yui-ac.less"; #repo_size { display: block; @@ -851,8 +836,6 @@ display: block !important; } -@import "kallithea-select2.less"; - #content div.panel ol.lower-roman, #content div.panel ol.upper-roman, #content div.panel ol.lower-alpha, @@ -1171,8 +1154,6 @@ border-bottom-right-radius: 0; } -@import "kallithea-diff.less"; - /* show some context of link targets - but only works when the link target can be extended with any visual difference */ div.comment:target:before {