changeset 7056:6085ccdf56a8

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.
author domruf <dominikruf@gmail.com>
date Sat, 16 Dec 2017 17:43:57 +0100
parents 6ef837acb0d2
children a9cbc30e19fa
files kallithea/public/less/main.less kallithea/public/less/package.json kallithea/public/less/style.less
diffstat 3 files changed, 18 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- /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";
--- 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"
   }
 }
--- 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 {