$this.resize();
});
- $(document).on('click', '.mview[data-menu="article"] .print', function () {
+ $(document).on('click touchend', '.mview[data-menu="article"] .articlesPrint', function () {
var a = $(this).closest('article').attr('data-id');
var print_window = window.open('', 'print_article', 'height=400,width=600');
print_window.document.write($this.fluidbook.settings.articlesList[a].print);
}, 1000);
return false;
});
+
+ $(document).on('click touchend', '.mview[data-menu="article"] .articlesShare', function () {
+ $(".mview").remove();
+ $this.fluidbook.menu.openView('share', 'article:'+$(this).attr('data-id'), 'article');
+ return false;
+ });
},
openArticle: function (url, callback) {
$("#view").html('<div class="mview" data-menu="article">' + this.fluidbook.menu.closeButton() + view + '</div>');
this.fluidbook.silentChangePage(article.page);
+ this.resize();
callback();
},
},
resize: function () {
-
+ $(".mview article").each(function () {
+ var w = $(this).width();
+ var aw = $(this).find('.actions').outerWidth();
+ $(this).find('h3').eq(0).css('width', w - aw);
+ });
},
}
\ No newline at end of file
font-weight: 300;
text-align: left;
- .print {
+ .actions {
position: absolute;
top: 55px;
right: 45px;
color: @articles-title-color;
- svg {
- fill:currentColor;
+ a {
width: 20px;
+ height: 20px;
+ margin-left: 10px;
+ display: inline-block;
+
+ svg {
+ fill: currentColor;
+ width: 20px;
+ }
}
}
+
h3 {
color: #fff;
font-size: 14px;
padding: 5px 10px;
font-weight: 300;
text-transform: uppercase;
- width: ~"calc(100% - 30px)";
}
h2 {