From: Kai Moritz Date: Mon, 24 Aug 2015 21:23:17 +0000 (+0200) Subject: Added a special font X-Git-Tag: 1.0.2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=7a6085a3808cbbeeb10f554dce6b0d1cf4bfd755;p=examples%2Ftemplate-development Added a special font --- diff --git a/Gruntfile.js b/Gruntfile.js index 9125a55..f62594c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -14,7 +14,11 @@ module.exports = function(grunt) { expand: true, cwd: 'html', src: '**/*.html', - dest: 'dist/thymeleaf/templates', + dest: 'dist/thymeleaf/templates' + }, + fonts: { + src: 'fonts/**/*', + dest: 'dist/' } }, diff --git a/fonts/white-rabbit.woff b/fonts/white-rabbit.woff new file mode 100644 index 0000000..892518f Binary files /dev/null and b/fonts/white-rabbit.woff differ diff --git a/less/frontend.less b/less/frontend.less index 17f3fcf..93145ff 100644 --- a/less/frontend.less +++ b/less/frontend.less @@ -3,11 +3,27 @@ @light: #9f9; @lighter: #fff; +@font-face { + font-family: 'White Rabbit'; + font-style: normal; + font-weight: 400; + text-transform: none; + src: url('../fonts/white-rabbit.woff'); + -webkit-font-feature-settings: "liga"; + -moz-font-feature-settings: "liga=1"; + -moz-font-feature-settings: "liga"; + -ms-font-feature-settings: "liga" 1; + -o-font-feature-settings: "liga"; + font-feature-settings: "liga"; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} body { color: @normal; background-color: @background; + font-family: "White Rabbit"; font-size: 20px; } a diff --git a/package.json b/package.json index 1306bdc..9c9a0b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "1.0.1", + "version": "1.0.2", "description": "Simple Example-Project for Template-Development", "devDependencies": { "grunt": "~0.4.5",