From 78ee3ab05e409a12e30e6f439560ce279d669b40 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 23 Dec 2013 12:54:33 +0100 Subject: [PATCH] =?utf8?q?LESS-Mixins=20eingef=C3=BChrt,=20um=20das=20Styl?= =?utf8?q?ing=20der=20Schriften=20zu=20vereinfachen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/webapp/less/base/footer.less | 3 +-- src/main/webapp/less/base/head.less | 3 +-- src/main/webapp/less/base/navigation.less | 6 ++---- src/main/webapp/less/base/typo.less | 6 ++---- src/main/webapp/less/variables.less | 14 ++++++++++++++ 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/less/base/footer.less b/src/main/webapp/less/base/footer.less index 0ee263a5..10ba1967 100644 --- a/src/main/webapp/less/base/footer.less +++ b/src/main/webapp/less/base/footer.less @@ -1,7 +1,6 @@ #footerlinks { - font-family: 'BPreplay', Helvetica, Arial, sans-serif; - font-weight: bold; + .bpreplay; position: relative; margin: 0; padding: 0; diff --git a/src/main/webapp/less/base/head.less b/src/main/webapp/less/base/head.less index 1527e342..b1368efa 100644 --- a/src/main/webapp/less/base/head.less +++ b/src/main/webapp/less/base/head.less @@ -2,8 +2,7 @@ #header { - font-family: 'BPreplay', Helvetica, Arial, sans-serif; - font-weight: bold; + .bpreplay; } #logo { diff --git a/src/main/webapp/less/base/navigation.less b/src/main/webapp/less/base/navigation.less index 58ef0a2a..4cfdc9c7 100644 --- a/src/main/webapp/less/base/navigation.less +++ b/src/main/webapp/less/base/navigation.less @@ -4,8 +4,7 @@ h2.nav #menu, #submenu { - font-family: 'BPreplay', Helvetica, Arial, sans-serif; - font-weight: bold; + .bpreplay; color: @normal; margin: .5em 0 1.5em 0; padding: 0.25em 0.25em 0.25em 1.5em; @@ -40,8 +39,7 @@ h2.nav #breadcrumb { - font-family: 'BPreplay', Helvetica, Arial, sans-serif; - font-weight: bold; + .bpreplay; color: @normal; } #breadcrumb strong.b.title diff --git a/src/main/webapp/less/base/typo.less b/src/main/webapp/less/base/typo.less index 98cc8ab9..2d6c2848 100644 --- a/src/main/webapp/less/base/typo.less +++ b/src/main/webapp/less/base/typo.less @@ -4,7 +4,7 @@ body { - font-family: 'DroidSerif', 'Times New Roman', 'Palatino Linotype' , serif; + .droid; letter-spacing: 0; line-height: 1.5em; padding: 1em 2em 1em 3em; @@ -12,9 +12,7 @@ body } h1, h2, h3, h4, h5, h6 { - font-family: 'BPreplay', Helvetica, Arial, sans-serif; - letter-spacing: 0; - font-weight: bold; + .bpreplay; color: @normal; margin: 1em 0 .5em 0; /** 16px 0 8px 0 */ } diff --git a/src/main/webapp/less/variables.less b/src/main/webapp/less/variables.less index 125f9c1e..915003db 100644 --- a/src/main/webapp/less/variables.less +++ b/src/main/webapp/less/variables.less @@ -10,3 +10,17 @@ @schrift: #000; @hintergrund: #FFF; + + +/** Schriften */ + +.droid () +{ + font-family: 'DroidSerif', 'Times New Roman', 'Palatino Linotype' , serif; +} + +.bpreplay () +{ + font-family: 'BPreplay', Helvetica, Arial, sans-serif; + font-weight: bold; +} -- 2.20.1