Skip to content

Commit

Permalink
Add SMS sharing (fix #310)
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Oct 26, 2015
1 parent a97d548 commit acf57b2
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 36 deletions.
11 changes: 9 additions & 2 deletions stylus/toolbar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ a.icon-tumblr
&:before
font-size: 90%

a.icon-facebook-squared, a.icon-twitter, a.icon-tumblr
margin-right: 15px
a.icon-message
color: palette('Green')
html:not(.isMobile) &
display: none

a.icon-facebook-squared, a.icon-twitter, a.icon-tumblr, a.icon-message
margin-right: 13px
margin-left: 0
&:before
font-size: 150%
Expand All @@ -59,3 +64,5 @@ a.icon-facebook-squared, a.icon-twitter, a.icon-tumblr
&:hover, &:active, &:focus
opacity: 0.7
text-decoration: none
&:last-child
margin-right: 0
12 changes: 6 additions & 6 deletions vendor/fontello/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"code": 59397,
"src": "fontawesome"
},
{
"uid": "d7271d490b71df4311e32cdacae8b331",
"css": "home",
"code": 59394,
"src": "fontawesome"
},
{
"uid": "de2fc7a5c986ab8c622f63455d7cf814",
"css": "upload-cloud",
"code": 59393,
"src": "fontawesome"
},
{
"uid": "85528017f1e6053b2253785c31047f44",
"css": "message",
"code": 59394,
"src": "fontawesome"
},
{
"uid": "3a00327e61b997b58518bd43ed83c3df",
"css": "login",
Expand Down
2 changes: 1 addition & 1 deletion vendor/fontello/css/fontello-codes.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

.icon-angle-double-right:before { content: '\e800'; } /* '' */
.icon-upload-cloud:before { content: '\e801'; } /* '' */
.icon-home:before { content: '\e802'; } /* '' */
.icon-message:before { content: '\e802'; } /* '' */
.icon-search:before { content: '\e803'; } /* '' */
.icon-facebook-squared:before { content: '\e804'; } /* '' */
.icon-user:before { content: '\e805'; } /* '' */
Expand Down
14 changes: 7 additions & 7 deletions vendor/fontello/css/fontello-embedded.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/fontello/css/fontello-ie7-codes.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

.icon-angle-double-right { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-upload-cloud { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-home { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-message { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-search { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-facebook-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-user { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
Expand Down
2 changes: 1 addition & 1 deletion vendor/fontello/css/fontello-ie7.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

.icon-angle-double-right { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-upload-cloud { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-home { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-message { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-search { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-facebook-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.icon-user { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
Expand Down
14 changes: 7 additions & 7 deletions vendor/fontello/css/fontello.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@font-face {
font-family: 'fontello';
src: url('../font/fontello.eot?10281179');
src: url('../font/fontello.eot?10281179#iefix') format('embedded-opentype'),
url('../font/fontello.woff?10281179') format('woff'),
url('../font/fontello.ttf?10281179') format('truetype'),
url('../font/fontello.svg?10281179#fontello') format('svg');
src: url('../font/fontello.eot?54576762');
src: url('../font/fontello.eot?54576762#iefix') format('embedded-opentype'),
url('../font/fontello.woff?54576762') format('woff'),
url('../font/fontello.ttf?54576762') format('truetype'),
url('../font/fontello.svg?54576762#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
Expand All @@ -14,7 +14,7 @@
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('../font/fontello.svg?10281179#fontello') format('svg');
src: url('../font/fontello.svg?54576762#fontello') format('svg');
}
}
*/
Expand Down Expand Up @@ -56,7 +56,7 @@

.icon-angle-double-right:before { content: '\e800'; } /* '' */
.icon-upload-cloud:before { content: '\e801'; } /* '' */
.icon-home:before { content: '\e802'; } /* '' */
.icon-message:before { content: '\e802'; } /* '' */
.icon-search:before { content: '\e803'; } /* '' */
.icon-facebook-squared:before { content: '\e804'; } /* '' */
.icon-user:before { content: '\e805'; } /* '' */
Expand Down
12 changes: 6 additions & 6 deletions vendor/fontello/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@
}
@font-face {
font-family: 'fontello';
src: url('./font/fontello.eot?93973252');
src: url('./font/fontello.eot?93973252#iefix') format('embedded-opentype'),
url('./font/fontello.woff?93973252') format('woff'),
url('./font/fontello.ttf?93973252') format('truetype'),
url('./font/fontello.svg?93973252#fontello') format('svg');
src: url('./font/fontello.eot?82966663');
src: url('./font/fontello.eot?82966663#iefix') format('embedded-opentype'),
url('./font/fontello.woff?82966663') format('woff'),
url('./font/fontello.ttf?82966663') format('truetype'),
url('./font/fontello.svg?82966663#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
Expand Down Expand Up @@ -303,7 +303,7 @@ <h1>
<div class="row">
<div title="Code: 0xe800" class="the-icons span3"><i class="demo-icon icon-angle-double-right">&#xe800;</i> <span class="i-name">icon-angle-double-right</span><span class="i-code">0xe800</span></div>
<div title="Code: 0xe801" class="the-icons span3"><i class="demo-icon icon-upload-cloud">&#xe801;</i> <span class="i-name">icon-upload-cloud</span><span class="i-code">0xe801</span></div>
<div title="Code: 0xe802" class="the-icons span3"><i class="demo-icon icon-home">&#xe802;</i> <span class="i-name">icon-home</span><span class="i-code">0xe802</span></div>
<div title="Code: 0xe802" class="the-icons span3"><i class="demo-icon icon-message">&#xe802;</i> <span class="i-name">icon-message</span><span class="i-code">0xe802</span></div>
<div title="Code: 0xe803" class="the-icons span3"><i class="demo-icon icon-search">&#xe803;</i> <span class="i-name">icon-search</span><span class="i-code">0xe803</span></div>
</div>
<div class="row">
Expand Down
Binary file modified vendor/fontello/font/fontello.eot
Binary file not shown.
2 changes: 1 addition & 1 deletion vendor/fontello/font/fontello.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/fontello/font/fontello.ttf
Binary file not shown.
Binary file modified vendor/fontello/font/fontello.woff
Binary file not shown.
9 changes: 5 additions & 4 deletions views/includes/toolbar.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.toolbar-ghost
.toolbar.clearfix
.share
a.icon-facebook-squared(href='#') <span class="hide-phone-tight">Share</span>
a.icon-twitter(href='#') <span class="hide-phone-tight">Tweet</span>
a.icon-tumblr(href='#') <span class="hide-phone-tight">Post</span>
a.icon-message(href='sms:&body=' + encodeURIComponent('Studying this right now:\n\n' + locals.url)) <span class="hide-phone-tight">Message</span>
block toolbar
.share
a.icon-facebook-squared(href='#') <span class="hide-phone-tight">Share</span>
a.icon-twitter(href='#') <span class="hide-phone-tight">Tweet</span>
a.icon-tumblr(href='#') <span class="hide-phone-tight">Post</span>

0 comments on commit acf57b2

Please sign in to comment.