Skip to content

Commit f16405d

Browse files
Update demo
1 parent 668b70f commit f16405d

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

demo/styles/main.css

+3-5
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ body {
5050
.page header input {
5151
width: 50%;
5252
height: 50px;
53-
font-size: 50px; }
53+
font-size: 50px;
54+
margin-bottom: 50px; }
5455
.page header h1 {
5556
margin: 0; }
5657
.page header h1 span {
@@ -61,13 +62,10 @@ body {
6162
border-top: 1px solid #0E80A0;
6263
border-bottom: 1px solid #0E80A0;
6364
text-align: left; }
64-
.page header h1 span.line1 {
65-
line-height: 0.9; }
6665
.page header h1 span.line2 {
6766
font-family: 'lobster', verdana, sans-serif;
6867
font-weight: normal;
69-
margin: -0.2em 0 0 0;
70-
line-height: 0.9; }
68+
margin: -0.2em 0 0 0; }
7169
.page header h1 a.download {
7270
font-family: 'open_sansregular', verdana, sans-serif;
7371
background-color: #1f2325;

demo/styles/main.scss

+1-5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ body {
6565
width: 50%;
6666
height: 50px;
6767
font-size: 50px;
68+
margin-bottom: 50px;
6869
}
6970

7071
h1 {
@@ -81,15 +82,10 @@ body {
8182
text-align: left;
8283
}
8384

84-
&.line1 {
85-
line-height: 0.9;
86-
}
87-
8885
&.line2 {
8986
font-family: 'lobster', verdana, sans-serif;
9087
font-weight: normal;
9188
margin: -.2em 0 0 0;
92-
line-height: 0.9;
9389
}
9490
}
9591

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<header data-ng-controller="MainController">
2727
<input type="text" data-ng-model="dyn" autofocus />
2828
<h1>
29-
<span class="line1" data-fittext data-fittext-max="310" data-ng-model="dyn">{{dyn}}</span>
30-
<span class="line2" data-fittext>rustled my jimmies</span>
29+
<span class="line1" data-fittext data-fittext-min="100" data-fittext-max="310" data-ng-model="dyn">{{dyn}}</span>
30+
<span class="line2" data-fittext data-fittext-load-delay="500">rustled my jimmies</span>
3131
</h1>
3232

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

0 commit comments

Comments
 (0)