From a9b0b7f4c31e8dfe4dd76f6ede6c4b6e796a022d Mon Sep 17 00:00:00 2001 From: misund Date: Thu, 11 Sep 2014 11:08:46 +0200 Subject: [PATCH] Changing layout in 'Bestill bord' section, and adjusting background. --- index.html | 6 ------ js/oktoberfest.js | 11 ++++++++++- scss/_layout.scss | 8 ++++++-- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index e291ead..c894b79 100755 --- a/index.html +++ b/index.html @@ -190,8 +190,6 @@
  • Kr. 2990,-
  • - -

    Pakke B

      @@ -201,8 +199,6 @@
    • Kr. 4990,-
    -
    -

    Pakke C

      @@ -213,8 +209,6 @@
    • Kr. 5990,-
    -
    -

    Pakke D

      diff --git a/js/oktoberfest.js b/js/oktoberfest.js index a77b925..8d5afb8 100644 --- a/js/oktoberfest.js +++ b/js/oktoberfest.js @@ -8,5 +8,14 @@ function scrollTo(ev, element, highlight) { if (highlight) $(element).animate({ backgroundColor: $.Color('transparent') }, "slow"); }); ev.preventDefault(); -} +} +/** + * Parallax. + */ +$(function() { + $(document).scroll(function() { + $('body').css( 'background-position', '0px -' + $('body').scrollTop()/20 + 'px' ); +console.log( $('body').scrollTop()/2 + ' 0px'); + }); +}); diff --git a/scss/_layout.scss b/scss/_layout.scss index 56ed6ba..ff53a5f 100755 --- a/scss/_layout.scss +++ b/scss/_layout.scss @@ -1,7 +1,7 @@ body { padding-top: 70px; padding-bottom: 70px; - background:url('../img/liten_tile.png'); + background:url('../img/liten_tile.png') fixed; } .navbar-fixed-top { @@ -139,6 +139,10 @@ body { .col { @extend .col-sm-12; - @extend .col-sm-4; + @extend .col-md-8; + + &:first-of-type { + @extend .col-sm-4; + } } }