Commit 4f68651b by tady

pdf image style

parent 2b94977d
# Desc
# .mod-image-style以下のimgタグにstyle用のclassをつける
# Usage:
# Example:
$ ->
$('.mod-image-style').find('img').addClass('img-thumbnail')
$('.mod-image-style').find('img').parent('a')
.append("""<button type="button" class="btn btn-info btn-lg">
<span class="glyphicon glyphicon-share"></span> Open in New Tab
</button>""")
.mod-image-style {
a {
position: relative;
}
a button {
position: absolute;
top: 50%;
left: 50%;
margin-left: -105px;
margin-top: -23px;
background: white;
}
}
// Place all the styles related to the watchings controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
......@@ -4,7 +4,7 @@
.panel-heading
h3.panel-title
a href=post_path(@post) = @post.title
.panel-body.viewer.github
.panel-body.viewer.github.mod-image-style
= MarkdownRenderer.new(@post.body).render
.col-xs-3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment