Skip to content

Commit

Permalink
Добавлено в footer автоматическое включение bootstrap tooltip, если в…
Browse files Browse the repository at this point in the history
…друг найдутся в тексте
  • Loading branch information
Nikolay Mikheev committed Mar 8, 2015
1 parent ae6f9e2 commit 2083d9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
<script src="{{ "/js/jquery-2.1.3.min.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/js/bootstrap.min.js" | prepend: site.baseurl }}"></script>

<script type="text/javascript">
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
Expand Down
5 changes: 5 additions & 0 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ img {
margin-bottom: 0;
}
}

div.tooltip-inner {
max-width: 350px;
width: 350px;
}

0 comments on commit 2083d9e

Please sign in to comment.