Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmarabeas committed Jan 30, 2015
1 parent 7a63cb4 commit 66642f8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions demo/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ body {
font-family: 'lobster', verdana, sans-serif;
font-weight: normal;
margin: -0.2em 0 0 0; }
.page header h1 span.line2 .right {
text-align: right; }
.page header h1 span.line2 .right.red {
color: #D9534F; }
.page header h1 span.line2 .right.blue {
color: #007DC7; }
.page header h1 a.download {
font-family: 'open_sansregular', verdana, sans-serif;
background-color: #1f2325;
Expand Down
12 changes: 12 additions & 0 deletions demo/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ body {
font-family: 'lobster', verdana, sans-serif;
font-weight: normal;
margin: -.2em 0 0 0;

.right {
text-align: right;

&.red {
color: #D9534F;
}

&.blue {
color: #007DC7;
}
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
<input type="text" data-ng-model="dyn" autofocus />
<h1>
<span class="line1" data-fittext data-fittext-min="100" data-fittext-max="310" data-ng-model="dyn">{{dyn}}</span>
<span class="line2" data-fittext data-fittext-load-delay="500">rustled my jimmies</span>
<span class="line2" data-fittext data-fittext-load-delay="500">
<span data-fittext-nl>rustled my jimmies</span>
<span data-fittext-nl class="right red">jimmies</span>
<span data-fittext-nl class="right blue">jimmies</span>
</span>
</h1>

<h2>ng-FitText.js makes font-sizes flexible. Use this directive in your fluid or responsive layout to achieve
Expand Down

0 comments on commit 66642f8

Please sign in to comment.