From 333d6535bf30e4811ca4b1b62b02ce8658a7b777 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 2 Dec 2013 22:13:06 +0100 Subject: [PATCH] Auf lesscss umgestellt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Problem: Die übersetzten CSS-Dateien stehen erst nach einem Build zur Verfügung, so dass "mvn jett:run-war" für die Weiterentwicklung verwendet werden muss, was den Entwicklungsprozess ausbremst. --- pom.xml | 11 ++++++++++ .../webapp/{css/base.css => less/base.less} | 20 +++++++++---------- .../base/browserreset.less} | 0 .../content.css => less/base/content.less} | 0 .../base/fonts.css => less/base/fonts.less} | 0 .../base/footer.css => less/base/footer.less} | 0 .../base/head.css => less/base/head.less} | 0 .../base/layout.css => less/base/layout.less} | 0 .../marginal.css => less/base/marginal.less} | 0 .../base/navigation.less} | 0 .../base/typo.css => less/base/typo.less} | 0 .../base/util.css => less/base/util.less} | 0 12 files changed, 21 insertions(+), 10 deletions(-) rename src/main/webapp/{css/base.css => less/base.less} (63%) rename src/main/webapp/{css/base/browserreset.css => less/base/browserreset.less} (100%) rename src/main/webapp/{css/base/content.css => less/base/content.less} (100%) rename src/main/webapp/{css/base/fonts.css => less/base/fonts.less} (100%) rename src/main/webapp/{css/base/footer.css => less/base/footer.less} (100%) rename src/main/webapp/{css/base/head.css => less/base/head.less} (100%) rename src/main/webapp/{css/base/layout.css => less/base/layout.less} (100%) rename src/main/webapp/{css/base/marginal.css => less/base/marginal.less} (100%) rename src/main/webapp/{css/base/navigation.css => less/base/navigation.less} (100%) rename src/main/webapp/{css/base/typo.css => less/base/typo.less} (100%) rename src/main/webapp/{css/base/util.css => less/base/util.less} (100%) diff --git a/pom.xml b/pom.xml index 8af44c82..aae2e137 100644 --- a/pom.xml +++ b/pom.xml @@ -146,6 +146,17 @@ + + ${project.basedir}/src/main/webapp/less + ${project.build.directory}/${project.build.finalName}/css + true + + + + maven-war-plugin + + less/** + org.apache.maven.plugins diff --git a/src/main/webapp/css/base.css b/src/main/webapp/less/base.less similarity index 63% rename from src/main/webapp/css/base.css rename to src/main/webapp/less/base.less index 1b165a33..1bbbe451 100644 --- a/src/main/webapp/css/base.css +++ b/src/main/webapp/less/base.less @@ -11,13 +11,13 @@ * im Modul web eingetragen werden! */ -@import 'base/browserreset.css'; -@import 'base/fonts.css'; -@import 'base/typo.css'; -@import 'base/util.css'; -@import 'base/head.css'; -@import 'base/navigation.css'; -@import 'base/layout.css'; -@import 'base/content.css'; -@import 'base/marginal.css'; -@import 'base/footer.css'; +@import 'base/browserreset'; +@import 'base/fonts'; +@import 'base/typo'; +@import 'base/util'; +@import 'base/head'; +@import 'base/navigation'; +@import 'base/layout'; +@import 'base/content'; +@import 'base/marginal'; +@import 'base/footer'; diff --git a/src/main/webapp/css/base/browserreset.css b/src/main/webapp/less/base/browserreset.less similarity index 100% rename from src/main/webapp/css/base/browserreset.css rename to src/main/webapp/less/base/browserreset.less diff --git a/src/main/webapp/css/base/content.css b/src/main/webapp/less/base/content.less similarity index 100% rename from src/main/webapp/css/base/content.css rename to src/main/webapp/less/base/content.less diff --git a/src/main/webapp/css/base/fonts.css b/src/main/webapp/less/base/fonts.less similarity index 100% rename from src/main/webapp/css/base/fonts.css rename to src/main/webapp/less/base/fonts.less diff --git a/src/main/webapp/css/base/footer.css b/src/main/webapp/less/base/footer.less similarity index 100% rename from src/main/webapp/css/base/footer.css rename to src/main/webapp/less/base/footer.less diff --git a/src/main/webapp/css/base/head.css b/src/main/webapp/less/base/head.less similarity index 100% rename from src/main/webapp/css/base/head.css rename to src/main/webapp/less/base/head.less diff --git a/src/main/webapp/css/base/layout.css b/src/main/webapp/less/base/layout.less similarity index 100% rename from src/main/webapp/css/base/layout.css rename to src/main/webapp/less/base/layout.less diff --git a/src/main/webapp/css/base/marginal.css b/src/main/webapp/less/base/marginal.less similarity index 100% rename from src/main/webapp/css/base/marginal.css rename to src/main/webapp/less/base/marginal.less diff --git a/src/main/webapp/css/base/navigation.css b/src/main/webapp/less/base/navigation.less similarity index 100% rename from src/main/webapp/css/base/navigation.css rename to src/main/webapp/less/base/navigation.less diff --git a/src/main/webapp/css/base/typo.css b/src/main/webapp/less/base/typo.less similarity index 100% rename from src/main/webapp/css/base/typo.css rename to src/main/webapp/less/base/typo.less diff --git a/src/main/webapp/css/base/util.css b/src/main/webapp/less/base/util.less similarity index 100% rename from src/main/webapp/css/base/util.css rename to src/main/webapp/less/base/util.less -- 2.20.1