From: Kai Moritz Date: Mon, 23 Dec 2013 11:54:33 +0000 (+0100) Subject: LESS-Mixins eingeführt, um das Styling der Schriften zu vereinfachen X-Git-Tag: thymeroot-2.0.0~148 X-Git-Url: https://juplo.de/gitweb/?p=website;a=commitdiff_plain;h=78ee3ab05e409a12e30e6f439560ce279d669b40 LESS-Mixins eingeführt, um das Styling der Schriften zu vereinfachen --- 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; +}