style-tiles 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA512:
3
- data.tar.gz: e1e5d38a8f6ed2e16940e6efca801bafa7ab650cee8becaf28662dc8722b730930336d9493c5e9fe02a63f1b87438752097a32bdde218324b019aa58f8bae33a
4
- metadata.gz: c040eefa0ce7f3b1693287f2b31dfec6b6fcbe6e8bc00d88c98098a62b2734e375ccfc4424d835b0e42f32201c5a623d53cf0349ebaff2e593fa1e00c326a49f
5
2
  SHA1:
6
- data.tar.gz: 13166150a00c914331d1f9443b5bca086a580446
7
- metadata.gz: 0ae10a9bc343007eb59f886d2714c1d4fed67e13
3
+ data.tar.gz: 913ea0bd1a363d785346f8260f8dab8ed3f00fab
4
+ metadata.gz: 826a93059f8df6ed30c74e8d6c366f463a5722af
5
+ SHA512:
6
+ data.tar.gz: 4458f06e82c44e7053f4b4efc2b5c63c3980597f4ec25c7da19b61f0dc8809c1839137a7277da02ac663ae515ee72cccd5fc90602e800d4fe70fb9b1fd9f576c
7
+ metadata.gz: e992f0a474a2d7adc204cb2b7d5a27b1a93696e7a41b3c98ae3769fe9424049abc2fdc212b520dedd20450e834f232e21bce3cf6f1f5e55c1401c3cc96f03c4f
@@ -17,8 +17,8 @@ Compass::Frameworks.register('style-tiles', :path => extension_path)
17
17
  # a prerelease version
18
18
  # Date is in the form of YYYY-MM-DD
19
19
  module Style_Tiles
20
- VERSION = "0.1.2"
21
- DATE = "2013-06-24"
20
+ VERSION = "0.1.3"
21
+ DATE = "2013-07-02"
22
22
  end
23
23
 
24
24
  # This is where any custom SassScript should be placed. The functions will be
@@ -26,12 +26,36 @@
26
26
  @if $leading { line-height: $leading; }
27
27
  }
28
28
 
29
- @mixin st-font-face($font-name, $font-woff, $font-ttf, $inline-fonts: false, $font-style:normal, $font-weight:normal, $eot:false) {
30
- @if $inline-fonts and $font-name { @include font-face($font-name, inline-font-files($font-woff, woff, $font-ttf, truetype), $eot, $font-weight, $font-style); }
31
- @else if $font-name { @include font-face($font-name, font-files($font-woff, woff, $font-ttf, truetype), $eot, $font-weight, $font-style); }
32
-
29
+ @mixin web-font-face($font-name, $font-file-name, $font-weight: normal, $font-style: normal, $inline-fonts: false) {
30
+ @if $inline-fonts and $font-name {
31
+ @include font-face(
32
+ $font-name,
33
+ inline-font-files(
34
+ "#{$font-file-name}.woff", woff,
35
+ "#{$font-file-name}.ttf", truetype,
36
+ "#{$font-file-name}.svg", svg
37
+ ),
38
+ "#{$font-file-name}.eot",
39
+ $font-weight,
40
+ $font-style
41
+ );
42
+ }
43
+ @else if $font-name {
44
+ @include font-face(
45
+ $font-name,
46
+ font-files(
47
+ "#{$font-file-name}.woff", woff,
48
+ "#{$font-file-name}.ttf", truetype,
49
+ "#{$font-file-name}.svg##{$font-name}", svg
50
+ ),
51
+ "#{$font-file-name}.eot",
52
+ $font-weight,
53
+ $font-style
54
+ );
55
+ }
33
56
  }
34
- @mixin st-font-faced($font-name: false) {
57
+
58
+ @mixin web-font-family($font-name: false) {
35
59
  @if $font-name { font-family: $font-name; }
36
60
  }
37
61
 
@@ -156,14 +180,14 @@
156
180
  @include st-text-shadow($heading-h1-text-shadow);
157
181
  @include bold-italic-uppercase($heading-h1-font-style);
158
182
  @if $heading-h1-font-size { font-size:$heading-h1-font-size; }
159
- @include st-font-faced($heading-h1-font-name);
183
+ @include web-font-family($heading-h1-font-name);
160
184
  color: $heading-h1-font-color;
161
185
  }
162
186
  h2 {
163
187
  @include st-text-shadow($heading-h2-text-shadow);
164
188
  @include bold-italic-uppercase($heading-h2-font-style);
165
189
  @if $heading-h2-font-size { font-size:$heading-h2-font-size; }
166
- @include st-font-faced($heading-h2-font-name);
190
+ @include web-font-family($heading-h2-font-name);
167
191
  color: $heading-h2-font-color;
168
192
  }
169
193
  @if $heading-h1-font-name { @include content-before-after("font: "$heading-h1-font-name, false, true) };
@@ -2,7 +2,7 @@
2
2
  * {
3
3
  @include box-sizing(border-box);
4
4
  }
5
- @include st-font-face($font-name, $font-woff, $font-ttf, $inline-fonts, $font-weight, $font-style);
5
+ @include web-font-face($font-name, $font-file-name, $font-weight, $font-style, $inline-fonts);
6
6
 
7
7
  body {
8
8
  @include background($body-background-color, $body-background-image, $inline-images, $body-background-gradient-1, $body-background-gradient-position-1, $body-background-gradient-2, $body-background-gradient-position-2);
@@ -70,14 +70,14 @@ section:nth-of-type(2) {
70
70
  @include st-text-shadow($heading-h1-text-shadow);
71
71
  @include bold-italic-uppercase($heading-h1-font-style);
72
72
  @if $heading-h1-font-size { font-size:$heading-h1-font-size; }
73
- @include st-font-faced($heading-h1-font-name);
73
+ @include web-font-family($heading-h1-font-name);
74
74
  color: $heading-h1-font-color;
75
75
  }
76
76
  h2 {
77
77
  @include st-text-shadow($heading-h2-text-shadow);
78
78
  @include bold-italic-uppercase($heading-h2-font-style);
79
79
  @if $heading-h2-font-size { font-size:$heading-h2-font-size; }
80
- @include st-font-faced($heading-h2-font-name);
80
+ @include web-font-family($heading-h2-font-name);
81
81
  color: $heading-h2-font-color;
82
82
  }
83
83
  @if $heading-h1-font-name { @include content-before-after("font: "$heading-h1-font-name, false, true) };
@@ -117,6 +117,7 @@ aside {
117
117
  @include background-size($aside-background-size);
118
118
  @include border-radius($aside-border-radius);
119
119
  outline: $aside-outline;
120
+ outline-offset: $aside-outline-offset;
120
121
  border: $aside-border;
121
122
  @include st-box-shadow($aside-box-shadow);
122
123
  color: $aside-text-color;
@@ -32,10 +32,7 @@ $body-font-size: calc-em(14px, $base-font-size) !default;
32
32
 
33
33
  // @font-face fonts
34
34
  $font-name: false !default;
35
- $font-ttf: false !default;
36
- $font-woff: false !default;
37
- $font-eot: false !default; // we don't need this as it's not production code
38
- $font-svg: false !default; // we don't need this either
35
+ $font-file-name: false !default;
39
36
  $inline-fonts: true !default;
40
37
  $font-weight: normal !default;
41
38
  $font-style: normal !default;
@@ -124,6 +121,7 @@ $aside-box-shadow: none !default;
124
121
  $aside-border: $standard-spacing solid rgba(255,255,255,.35) !default;
125
122
  $aside-border-radius: false !default; // 3px
126
123
  $aside-outline: calc-em(1px, $base-font-size) solid rgba(200,200,200,.25) !default;
124
+ $aside-outline-offset: 0 !default;
127
125
  $aside-text-color: #333 !default;
128
126
 
129
127
  // Figure (colors and textures boxes)
@@ -0,0 +1,48 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
+
8
+ <title>Font Face Demo</title>
9
+ <link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8">
10
+ <style type="text/css" media="screen">
11
+ h1.fontface {font: 60px/68px 'DroidSerifRegular', Arial, sans-serif;letter-spacing: 0;}
12
+
13
+ p.style1 {font: 18px/27px 'DroidSerifRegular', Arial, sans-serif;}
14
+ p.style2 {font: 18px/27px 'DroidSerifItalic', Arial, sans-serif;}
15
+ p.style3 {font: 18px/27px 'DroidSerifBold', Arial, sans-serif;}
16
+ p.style4 {font: 18px/27px 'DroidSerifBoldItalic', Arial, sans-serif;}
17
+
18
+ #container {
19
+ width: 800px;
20
+ margin-left: auto;
21
+ margin-right: auto;
22
+ }
23
+ </style>
24
+ </head>
25
+
26
+ <body>
27
+ <div id="container">
28
+ <h1 class="fontface">Font-face Demo for the Droid Serif Font</h1>
29
+
30
+
31
+
32
+ <p class="style1">Droid Serif Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
33
+
34
+
35
+
36
+ <p class="style2">Droid Serif Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
37
+
38
+
39
+
40
+ <p class="style3">Droid Serif Bold - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
41
+
42
+
43
+
44
+ <p class="style4">Droid Serif Bold Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
45
+
46
+ </div>
47
+ </body>
48
+ </html>
@@ -0,0 +1,52 @@
1
+ /* Generated by Font Squirrel (http://www.fontsquirrel.com) on June 26, 2013 08:50:27 AM America/New_York */
2
+
3
+
4
+
5
+ @font-face {
6
+ font-family: 'DroidSerifRegular';
7
+ src: url('DroidSerif-Regular-webfont.eot');
8
+ src: url('DroidSerif-Regular-webfont.eot?#iefix') format('embedded-opentype'),
9
+ url('DroidSerif-Regular-webfont.woff') format('woff'),
10
+ url('DroidSerif-Regular-webfont.ttf') format('truetype'),
11
+ url('DroidSerif-Regular-webfont.svg#DroidSerifRegular') format('svg');
12
+ font-weight: normal;
13
+ font-style: normal;
14
+
15
+ }
16
+
17
+ @font-face {
18
+ font-family: 'DroidSerifItalic';
19
+ src: url('DroidSerif-Italic-webfont.eot');
20
+ src: url('DroidSerif-Italic-webfont.eot?#iefix') format('embedded-opentype'),
21
+ url('DroidSerif-Italic-webfont.woff') format('woff'),
22
+ url('DroidSerif-Italic-webfont.ttf') format('truetype'),
23
+ url('DroidSerif-Italic-webfont.svg#DroidSerifItalic') format('svg');
24
+ font-weight: normal;
25
+ font-style: normal;
26
+
27
+ }
28
+
29
+ @font-face {
30
+ font-family: 'DroidSerifBold';
31
+ src: url('DroidSerif-Bold-webfont.eot');
32
+ src: url('DroidSerif-Bold-webfont.eot?#iefix') format('embedded-opentype'),
33
+ url('DroidSerif-Bold-webfont.woff') format('woff'),
34
+ url('DroidSerif-Bold-webfont.ttf') format('truetype'),
35
+ url('DroidSerif-Bold-webfont.svg#DroidSerifBold') format('svg');
36
+ font-weight: normal;
37
+ font-style: normal;
38
+
39
+ }
40
+
41
+ @font-face {
42
+ font-family: 'DroidSerifBoldItalic';
43
+ src: url('DroidSerif-BoldItalic-webfont.eot');
44
+ src: url('DroidSerif-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
45
+ url('DroidSerif-BoldItalic-webfont.woff') format('woff'),
46
+ url('DroidSerif-BoldItalic-webfont.ttf') format('truetype'),
47
+ url('DroidSerif-BoldItalic-webfont.svg#DroidSerifBoldItalic') format('svg');
48
+ font-weight: normal;
49
+ font-style: normal;
50
+
51
+ }
52
+
@@ -76,9 +76,9 @@ help %Q{
76
76
  # Compass Extension Welcome Message
77
77
  # Users will see this when they create a new project using this template.
78
78
  welcome_message %Q{
79
- Welcome to my Style Tiles.
79
+ Welcome to Style Tiles.
80
80
  Congratulations! You just have built the basic scaffolding for getting started.
81
81
  To get started 'cd' into your project and run 'compass compile'.
82
82
  Documentation is on Github: https://github.com/alienresident/style-tiles
83
- Contact: mark@alienresident.net or use the Issue Queue on Github.
83
+ Contact: mark@alienresident.net or use the Style Tiles issue queue on Github.
84
84
  }
@@ -15,8 +15,7 @@ $adjectives: current, clean, sleek, technical ;
15
15
  $link-color: #FF5E00;
16
16
 
17
17
  $font-name: 'peraltaregular';
18
- $font-ttf: 'Peralta/peralta-regular-webfont.ttf';
19
- $font-woff: 'Peralta/peralta-regular-webfont.woff';
18
+ $font-file-name: 'Peralta/peralta-regular-webfont';
20
19
 
21
20
 
22
21
  $body-background-color: #fff;
@@ -56,7 +55,7 @@ $main-text-shadow: 0 calc-em(1px, $base-font-size) 0 rgba(255,255,255,.35);
56
55
  $heading-h2-font-name: $font-name;
57
56
 
58
57
  $aside-margin: 0 0 ($standard-spacing * 2) 0;
59
- $aside-padding: $standard-spacing;
58
+ $aside-padding: ($standard-spacing * 2);
60
59
  $aside-background-color: none;
61
60
  $aside-background-image: "textures/denim.jpg";
62
61
  $aside-background-gradient-position-1: 135deg;
@@ -67,8 +66,9 @@ $aside-background-size: false;
67
66
  $aside-background-repeat: repeat;
68
67
  $aside-box-shadow: calc-em(3px, $base-font-size) calc-em(6px, $base-font-size) calc-em(5px, $base-font-size) rgba(0,0,0,.5), calc-em(-3px, $base-font-size) calc-em(-1px, $base-font-size) calc-em(5px, $base-font-size) rgba(0,0,0,.5);
69
68
  $aside-border: calc-em(1px, $base-font-size) dashed rgba(255,160,20,.5);
70
- $aside-border-radius: calc-em(5px, $base-font-size);
71
- $aside-outline: calc-em(1px, $base-font-size) dashed rgba(0,20,2,.5);
69
+ $aside-border-radius: calc-em(5px, $base-font-size) calc-em(5px, $base-font-size) calc-em(12px, $base-font-size) calc-em(12px, $base-font-size);
70
+ $aside-outline: $aside-border;
71
+ $aside-outline-offset: -1em;
72
72
  $aside-text-color: #aaa;
73
73
 
74
74
  // Figure (colors and textures boxes)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: style-tiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Reilly
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-06-24 00:00:00 Z
12
+ date: 2013-07-02 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -49,6 +49,7 @@ files:
49
49
  - stylesheets/style-tiles/core/_variables.scss
50
50
  - stylesheets/style-tiles.scss
51
51
  - templates/project/config.rb
52
+ - templates/project/fonts/DroidSerif/demo.html
52
53
  - templates/project/fonts/DroidSerif/DroidSerif-Bold-webfont.eot
53
54
  - templates/project/fonts/DroidSerif/DroidSerif-Bold-webfont.svg
54
55
  - templates/project/fonts/DroidSerif/DroidSerif-Bold-webfont.ttf
@@ -66,6 +67,7 @@ files:
66
67
  - templates/project/fonts/DroidSerif/DroidSerif-Regular-webfont.ttf
67
68
  - templates/project/fonts/DroidSerif/DroidSerif-Regular-webfont.woff
68
69
  - templates/project/fonts/DroidSerif/Google Android License.txt
70
+ - templates/project/fonts/DroidSerif/stylesheet.css
69
71
  - templates/project/fonts/Pacifico/Pacifico SIL OFL Font License 1.1.txt
70
72
  - templates/project/fonts/Pacifico/Pacifico-webfont.eot
71
73
  - templates/project/fonts/Pacifico/Pacifico-webfont.svg