small hack to add some feedback when links are tapped on the mobile site.
This commit is contained in:
parent
55bee713e9
commit
348ae0b61d
4 changed files with 15 additions and 10 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
-# licensed under the Affero General Public License version 3 or later. See
|
-# licensed under the Affero General Public License version 3 or later. See
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
|
.message
|
||||||
= markdownify(post.message, :youtube_maps => post[:youtube_titles])
|
= markdownify(post.message, :youtube_maps => post[:youtube_titles])
|
||||||
|
|
||||||
- if photos.count > 0
|
- if photos.count > 0
|
||||||
|
|
|
||||||
|
|
@ -25,5 +25,9 @@ $(document).ready(function() {
|
||||||
$("a.paginate").live("click", function() {
|
$("a.paginate").live("click", function() {
|
||||||
$(document).trigger("retrieve.infscr");
|
$(document).trigger("retrieve.infscr");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('a').live('tap',function(){
|
||||||
|
$(this).addClass('tapped');
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,6 @@ var Mobile = {
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
$("abbr.timeago").timeago();
|
$("abbr.timeago").timeago();
|
||||||
$('#main_stream + .pagination').hide();
|
$('#main_stream + .pagination').hide();
|
||||||
$('#aspect_picker').change(Mobile.changeAspect);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
changeAspect: function() {
|
|
||||||
Mobile.windowLocation('/aspects/' + $('#aspect_picker option:selected').val());
|
|
||||||
},
|
|
||||||
|
|
||||||
windowLocation: function(url) {
|
|
||||||
window.location = url;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,12 @@ a.ui-link-inherit
|
||||||
:-moz-box-shadow 0 1px 3px #ccc
|
:-moz-box-shadow 0 1px 3px #ccc
|
||||||
:box-shadow 0 1px 3px #ccc
|
:box-shadow 0 1px 3px #ccc
|
||||||
|
|
||||||
|
.tapped
|
||||||
|
:background
|
||||||
|
:color rgba(100, 103, 103, .2)
|
||||||
|
:border-radius 5px
|
||||||
|
a
|
||||||
|
:padding 2px
|
||||||
.alpha-warning
|
.alpha-warning
|
||||||
@include mobile-box
|
@include mobile-box
|
||||||
|
|
||||||
|
|
@ -58,6 +64,9 @@ a.ui-link-inherit
|
||||||
label
|
label
|
||||||
:font-weight bold
|
:font-weight bold
|
||||||
|
|
||||||
|
.message
|
||||||
|
:padding
|
||||||
|
:left 2px
|
||||||
.stream_element,
|
.stream_element,
|
||||||
.comment
|
.comment
|
||||||
:position relative
|
:position relative
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue