mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
refactored share button code a bit
This commit is contained in:
parent
2ec7311d0a
commit
8d0cf9b83a
2 changed files with 7 additions and 43 deletions
|
@ -155,42 +155,6 @@
|
|||
color:$light-text;
|
||||
font-size:36px;
|
||||
line-height:50px;
|
||||
// @include background(linear-gradient(/*right top,*/ #f6f6f6, #e3e3e3));
|
||||
// @include box-shadow(inset 0 1px 0 white, 0 1px 1px black(0.15));
|
||||
// background:#fffce6;
|
||||
// &.medium{
|
||||
// background-color:red(0.05);
|
||||
// }
|
||||
// &.hot{
|
||||
// background-color:red(0.2);
|
||||
// }
|
||||
// &.superhot{
|
||||
// background-color:red(0.3);
|
||||
// }
|
||||
// &.megahot{
|
||||
// background-color:red(0.5);
|
||||
// }
|
||||
// &.gigahot{
|
||||
// background-color:red(0.8);
|
||||
// }
|
||||
// &.low{
|
||||
// color:red(0.2);
|
||||
// }
|
||||
// &.medium{
|
||||
// color:red(0.3);
|
||||
// }
|
||||
// &.hot{
|
||||
// color:red(0.4);
|
||||
// }
|
||||
// &.superhot{
|
||||
// color:red(0.6);
|
||||
// }
|
||||
// &.megahot{
|
||||
// color:red(0.8);
|
||||
// }
|
||||
// &.gigahot{
|
||||
// color:red(1);
|
||||
// }
|
||||
&.edit-link{
|
||||
color:$red;
|
||||
}
|
||||
|
|
|
@ -101,14 +101,14 @@ Template.post_item.events = {
|
|||
trackEvent("post upvoted", {'_id': post._id});
|
||||
});
|
||||
}
|
||||
|
||||
, 'click .share-link': function(e){
|
||||
var $this = $(e.target);
|
||||
var $this = $(e.target).parents('.post-share').find('.share-link');
|
||||
var $share = $this.parents('.post-share').find('.share-options');
|
||||
e.preventDefault();
|
||||
$(".share-link").not($this).next().addClass("hidden");
|
||||
$this.next().toggleClass("hidden");
|
||||
console.log($this);
|
||||
$this.next().find('.share-replace').sharrre(SharrreOptions);
|
||||
// $(".overlay").toggleClass("hidden");
|
||||
$('.share-link').not($this).removeClass("active");
|
||||
$(".share-options").not($share).addClass("hidden");
|
||||
$this.toggleClass("active");
|
||||
$share.toggleClass("hidden");
|
||||
$share.find('.share-replace').sharrre(SharrreOptions);
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue