Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmarabeas committed Jan 29, 2015
1 parent 668b70f commit f16405d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
8 changes: 3 additions & 5 deletions demo/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ body {
.page header input {
width: 50%;
height: 50px;
font-size: 50px; }
font-size: 50px;
margin-bottom: 50px; }
.page header h1 {
margin: 0; }
.page header h1 span {
Expand All @@ -61,13 +62,10 @@ body {
border-top: 1px solid #0E80A0;
border-bottom: 1px solid #0E80A0;
text-align: left; }
.page header h1 span.line1 {
line-height: 0.9; }
.page header h1 span.line2 {
font-family: 'lobster', verdana, sans-serif;
font-weight: normal;
margin: -0.2em 0 0 0;
line-height: 0.9; }
margin: -0.2em 0 0 0; }
.page header h1 a.download {
font-family: 'open_sansregular', verdana, sans-serif;
background-color: #1f2325;
Expand Down
6 changes: 1 addition & 5 deletions demo/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ body {
width: 50%;
height: 50px;
font-size: 50px;
margin-bottom: 50px;
}

h1 {
Expand All @@ -81,15 +82,10 @@ body {
text-align: left;
}

&.line1 {
line-height: 0.9;
}

&.line2 {
font-family: 'lobster', verdana, sans-serif;
font-weight: normal;
margin: -.2em 0 0 0;
line-height: 0.9;
}
}

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<header data-ng-controller="MainController">
<input type="text" data-ng-model="dyn" autofocus />
<h1>
<span class="line1" data-fittext data-fittext-max="310" data-ng-model="dyn">{{dyn}}</span>
<span class="line2" data-fittext>rustled my jimmies</span>
<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>
</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 f16405d

Please sign in to comment.