This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| background-color: #FFF; | |
| color: #333; | |
| font: 15px Helvetica, arial, freesans, clean, sans-serif; | |
| word-wrap: break-word; | |
| line-height: 1.7; | |
| padding: 0 20px 20px 20px; | |
| max-width: 722px; | |
| margin: auto; | |
| -webkit-font-smoothing: antialiased; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // taken from ink eb website, our-partners pages. parent-count is a class added just to count the number of elements. | |
| $(window).load(function () { | |
| for (var i = $('.parent-count').length; i >= 0; i--) { | |
| var parentHeight = $('#parent-' + i).height(); | |
| var childHeight = $('#child-' + i).height(); | |
| $('#child-' + i).css('margin-top', (parentHeight - childHeight) / 2); | |
| }; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ul { | |
| list-style: none; | |
| margin-left: 0; | |
| li { | |
| background: url('/_/img/custom-bullet.png') no-repeat 0 0; | |
| padding-left: 17px; | |
| margin-bottom: 10px; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .no-link-styles(@color: inherit) { | |
| color: @color; | |
| &:hover { | |
| text-decoration: none; | |
| color: @color; | |
| } | |
| } | |
| .no-link-styles-with-underline(@color: inherit) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $encoded_url = urlencode('http://' . 'www.' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); | |
| $text = "&text=" . "here's a great link:"; | |
| $twitter_string = $encoded_url . $text; | |
| ?> | |
| <!-- Note that .dev domains will not be linked to in twitter, but changing to something like '.com' will work --> | |
| <div id="custom-tweet-button"> | |
| <a href="https://twitter.com/share?url=<?php echo $twitter_string; ?>" onclick="return !window.open(this.href, '_blank', 'width=500,height=500')">Tweet</a> |