Skip to content

Commit d7e253a

Browse files
committed
Support bower
1 parent 7af9ff0 commit d7e253a

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
LINING.JS
22
==
33

4-
An easy to use javascript plugin offers you complete DOWN-TO-THE-LINE control for radical web typography.
4+
> An easy to use javascript plugin offers you complete DOWN-TO-THE-LINE control for radical web typography.
55
66
<img src="https://travis-ci.org/zmmbreeze/lining.js.svg?branch=master"/>
77

@@ -122,3 +122,12 @@ lining.effect.js
122122
Your text...
123123
<div>
124124
```
125+
126+
INSTALL
127+
--
128+
129+
[DOWNLOAD](https://github.com/zmmbreeze/lining.js/releases) or using [bower](http://bower.io/) to install like this:
130+
131+
```sh
132+
$ bower install lining.js
133+
```

assets/index.css

+27-4
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,19 @@ a.tip:hover {
418418
background-color: #FFF;
419419
}
420420

421-
/* download */
421+
/* install & download */
422+
.main .install {
423+
margin: 4em 0;
424+
text-align: center;
425+
}
422426
.download {
423-
display: block;
424-
margin: 2em auto;
425-
padding: 0 1em;
427+
display: inline-block;
428+
margin: 0 18px;
429+
padding: 0 18px;
426430
width: 200px;
427431
height: 50px;
428432
line-height: 50px;
433+
vertical-align: middle;
429434
font-family: 'Allerta Stencil', sans-serif;
430435
font-size: 1.5em;
431436
text-decoration: none;
@@ -437,6 +442,24 @@ a.download:hover {
437442
text-decoration: none;
438443
}
439444

445+
.install code {
446+
display: inline-block;
447+
margin: 0 18px;
448+
padding: 0 18px 0 0;
449+
height: 50px;
450+
line-height: 50px;
451+
vertical-align: middle;
452+
color: #EEE;
453+
background: #543729;
454+
}
455+
.install code span {
456+
float: left;
457+
width: 2em;
458+
display: inline-block;
459+
text-align: center;
460+
color: #A9D866;
461+
}
462+
440463
/* share-info */
441464
.main .share-info {
442465
margin: 0 0 6em 0;

index.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,11 @@ <h2>lining.effect.js</h2>
308308
Your text...
309309
&lt;div&gt;</code></pre>
310310

311-
<a href="https://github.com/zmmbreeze/lining.js/releases" target="_blank" class="download">DOWNLOAD</a>
311+
<p class="install">
312+
<a href="https://github.com/zmmbreeze/lining.js/releases" target="_blank" class="download">DOWNLOAD</a>
313+
or
314+
<code><span>$</span> bower install lining.js</code>
315+
</p>
312316
<p class="share-info">
313317
<a href="https://twitter.com/share" class="twitter-share-button" data-text="An easy to use javascript plugin offers you complete DOWN-TO-THE-LINE control for radical web typography." data-size="large" data-hashtags="liningjs">Tweet</a>
314318
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

0 commit comments

Comments
 (0)