Skip to content

Instantly share code, notes, and snippets.

@gabrieldance
Forked from kennelliott/hide-header.html
Last active December 21, 2015 01:38

Revisions

  1. gabrieldance revised this gist Nov 12, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions hide-header.html
    Original file line number Diff line number Diff line change
    @@ -93,8 +93,8 @@
    }

    var moveHeaders = function() {
    var $mainArticleInfo = $('#main-article-info');
    $('#gia-standin').append($('h1', $mainArticleInfo)).append($('p', $mainArticleInfo));
    $('#gia-standin').append( $('#main-article-info h1') );
    $('#gia-standin').append( '<p>' + $('#main-article-info #stand-first').html() + '</p>' );
    }

    moveSocial();
  2. @kennelliott kennelliott revised this gist Feb 20, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion hide-header.html
    Original file line number Diff line number Diff line change
    @@ -56,7 +56,8 @@
    }

    #gia-header h1 {
    margin-bottom: 8px;
    margin-top: 14px;
    margin-bottom: 12px;
    font-family: Georgia, Times, serif;
    font-size: 36px;
    line-height: 1.1em;
  3. @kennelliott kennelliott revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion hide-header.html
    Original file line number Diff line number Diff line change
    @@ -66,7 +66,7 @@
    #gia-header p {
    font-size: 15px;
    font-family: Arial, sans-serif;
    line-height: 1.4em;
    line-height: 1.5em;
    text-align: center;
    }
    </style>
  4. @kennelliott kennelliott revised this gist Feb 20, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions hide-header.html
    Original file line number Diff line number Diff line change
    @@ -65,6 +65,7 @@

    #gia-header p {
    font-size: 15px;
    font-family: Arial, sans-serif;
    line-height: 1.4em;
    text-align: center;
    }
  5. @kennelliott kennelliott created this gist Jan 29, 2013.
    101 changes: 101 additions & 0 deletions hide-header.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,101 @@
    <style type="text/css">
    #gia-header div,
    #gia-header h1,
    #gia-header p,
    #gia-header ul,
    #gia-header li {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    }

    body {
    line-height: 1;
    font-family: Arial, sans-serif;
    }

    #article-header {
    display: none;
    }

    #gia-header {
    width: 780px;
    margin: 0 auto 30px auto;
    }

    #gia-header .clearfix {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    }

    #gia-header #social-tools-container {
    display: block;
    width: 420px;
    min-height: 20px;
    margin: 0 auto;
    padding-top: 20px;
    }

    #gia-header #social-tools-container ul#content-actions {
    float: none;
    width: 420px;
    }

    #gia-header #social-tools-container ul#content-actions li {
    display: block;
    float: left;
    width: 100px;
    margin: 0 20px;
    }

    #gia-header h1 {
    margin-bottom: 8px;
    font-family: Georgia, Times, serif;
    font-size: 36px;
    line-height: 1.1em;
    text-align: center;
    }

    #gia-header p {
    font-size: 15px;
    line-height: 1.4em;
    text-align: center;
    }
    </style>

    <div id="gia-header">
    <div id="social-tools-container">
    <!--this is where your social buttons will show up-->
    </div>

    <div id="gia-standin">
    <!--this is where your headline and chatter will show up-->
    </div>
    </div>

    <script type="text/javascript">
    (function($) {
    var moveSocial = function() {
    var $contentActions = $('#content-actions');

    $contentActions.appendTo('#social-tools-container');
    $('.google-plus', $contentActions).remove();
    $('.linked-in', $contentActions).remove();
    }

    var moveHeaders = function() {
    var $mainArticleInfo = $('#main-article-info');
    $('#gia-standin').append($('h1', $mainArticleInfo)).append($('p', $mainArticleInfo));
    }

    moveSocial();
    moveHeaders();
    })(jQuery);
    </script>