From 63dfa8277fd807920dd516cc8848bd4d2a133bc1 Mon Sep 17 00:00:00 2001 From: Severyn Kozak Date: Sun, 8 Jun 2014 12:59:25 -0400 Subject: [PATCH] Clean up style rules, improve positioning. Add: static/sass/about.sass -Clean up existing style rules. -Add rules for the about sections' text. templates/about.html -Integrate with `templates/layout.html`, the project's global HTML template. --- static/js/about.js | 3 --- static/sass/about.sass | 37 ++++++++++++++++----------- templates/about.html | 68 +++++++++++++++++++++----------------------------- 3 files changed, 51 insertions(+), 57 deletions(-) diff --git a/static/js/about.js b/static/js/about.js index b83ca89..46eba67 100644 --- a/static/js/about.js +++ b/static/js/about.js @@ -6,9 +6,6 @@ function parallax(){ $(".bg").each(function(){ $(this).css("top", parseFloat($(this).css("top")) - delta * 1.35 + "px"); }); - $(".bg#img-1").each(function(){ - console.log($(this).css("top")); - }); lastVertPos = currVertPos; } diff --git a/static/sass/about.sass b/static/sass/about.sass index 9d82b42..7555e94 100644 --- a/static/sass/about.sass +++ b/static/sass/about.sass @@ -1,8 +1,7 @@ -body - // background-color: red +@import variables .bg - $img-height: 600px + $img-height: 650px position: fixed width: 100% @@ -12,26 +11,34 @@ body &#img-1 background: url("../img/about/bg1.png") no-repeat background-size: cover - height: $img-height + height: 400px top: 0px &#img-2 background: url("../img/about/bg2.png") no-repeat - height: $img-height + 200 - top: $img-height + height: $img-height + top: 480px &#img-3 background: url("../img/about/bg3.png") no-repeat background-size: cover - height: $img-height + 100 - top: 2 * $img-height + 200 + height: $img-height + 200 + top: 1200px div.section background-color: white - color: black - height: 250px - font-family: arial - margin-bottom: 35px - margin-top: 365px - line-height: 20px - font-size: 16px + border: 1px solid $baseColor2 + height: 300px + margin-top: 300px + padding: 20px + + &#top + margin-top: 0px + + div.centered + margin-left: auto + margin-right: auto + width: 50% + + h1 + color: $baseColor1 diff --git a/templates/about.html b/templates/about.html index 0caf4b6..5b481c4 100644 --- a/templates/about.html +++ b/templates/about.html @@ -1,45 +1,35 @@ - - += extends "layout.html" - - - - bitshift « - = filter lower - = block title - = endblock - = endfilter - += block head + {{ assets.tag("lib/jquery.min.js") }} + {{ assets.tag("main.css") }} + {{ assets.tag("about.css") }} + {{ assets.tag("about.js") }} += endblock - - - - += block after_body +
+
+
- {{ assets.tag("lib/jquery.min.js") }} - {{ assets.tag("main.css") }} - {{ assets.tag("about.css") }} - {{ assets.tag("about.js") }} - - = block head - = endblock - - -
-
-
- -
-

Section one

- Having done this, our code is complete. If you test the file you’ll see it working. To change the speed, we need to change the fraction in the function; smaller fractions reduce the speed and higher fractions increase it. You can see the final result of this code in this pen I created. +
+
+

What?

+ Lorizzle dolor sit fo shizzle my nizzle, consectetuer adipiscing gizzle. Nullizzle sapizzle velizzle, dizzle dang, the bizzle dang, doggy own yo', dawg. Pellentesque egizzle tortizzle. Fo shizzle mah nizzle fo rizzle, mah home g-dizzle eros. Away hizzle dolizzle dapibus izzle tempizzle tempizzle. Maurizzle pellentesque nibh et turpis. Sure ass fo shizzle. Pellentesque eleifend rhoncus nisi. In rizzle i saw beyonces tizzles and my pizzle went crizzle break it down dictumst. Donec dapibizzle. Curabitizzle tellus sizzle, pretizzle gizzle, mattizzle , we gonna chung vitae, nunc. Sure suscipizzle. Integizzle owned velit check out this yo mamma.
-
-

Section two

- Having done this, our code is complete. If you test the file you’ll see it working. To change the speed, we need to change the fraction in the function; smaller fractions reduce the speed and higher fractions increase it. You can see the final result of this code in this pen I created. +
+ +
+
+

How?

+ Curabitizzle et dizzle that's the shizzle nisi fo mollizzle. Fo shizzle potenti. Morbi odio. Crackalackin neque. Izzle ma nizzle. You son of a bizzle mauris rizzle, ma nizzle, feugiat doggy amizzle, phat in, pede. Pellentesque fo shizzle mah nizzle fo rizzle, mah home g-dizzle. Vestibulizzle shut the shizzle up mi, volutpat in, yo mamma sizzle, adipiscing sempizzle, velizzle. Crizzle hizzle ipsizzle. Gangster volutpizzle felis vizzle fo shizzle. Shizzlin dizzle for sure justo in fo shizzle sodales fizzle. Own yo' venenatis my shizz check out this i'm in the shizzle. Nunc funky fresh. Suspendisse venenatis fo shizzle boom shackalack. Curabitur fo shizzle ante. Nunc shut the shizzle up, fo shizzle eu ass hendrerizzle, dawg felizzle elementizzle sizzle, fizzle aliquizzle magna felis luctus pede. Nam a pot. Class fo shizzle taciti shizzle my nizzle crocodizzle ad litora for sure bizzle conubia fizzle, dang inceptos shit. Aliquam interdizzle, nizzle nizzle elementizzle nonummy, da bomb fo shizzle stuff leo, shizzlin dizzle semper shiznit arcu crazy sem.
-
-

Section three

- Having done this, our code is complete. If you test the file you’ll see it working. To change the speed, we need to change the fraction in the function; smaller fractions reduce the speed and higher fractions increase it. You can see the final result of this code in this pen I created. +
+ +
+
+

Who?

+ Praesent gangster fo shizzle sizzle maurizzle posuere funky fresh. Aliquam lacinia viverra fo shizzle my nizzle. Crizzle crazy dawg leo sodales shizzlin dizzle. Fo shizzle mah nizzle fo rizzle, mah home g-dizzle crackalackin, crunk vitae boofron convallizzle, nulla ligula shizzlin dizzle metizzle, gangsta venenatis augue dui izzle arcu. Shut the shizzle up gravida lacizzle izzle bling bling. Vivamus arcu magna, cool ghetto, faucibizzle mah nizzle, placerat izzle, maurizzle. Sizzle vehicula laorizzle my shizz. Bow wow wow erizzle dizzle, hendrerizzle pizzle, condimentizzle ac, shiz away, arcu. Morbi aliquizzle placerat nulla. Maecenas uhuh ... yih! funky fresh mammasay mammasa mamma oo sa da bomb. Fusce metus sizzle, egestas eu, get down get down quizzle, elementum eget, we gonna chung. Shizznit dawg nunc a for sure shizzle my nizzle crocodizzle go to hizzle. Fusce sagittizzle, nulla eget sollicitudin mollis, lacizzle quam tellivizzle erizzle, vitae vehicula boofron we gonna chung vitae arcu. Phat vehicula gangster. Shiz sizzle mi. Pizzle eu turpis. Vestibulum a magna. Away fizzle erat, tellivizzle funky fresh, tempizzle fo shizzle, facilisizzle in, pede. For sure tellizzle. Black nisi erizzle, crazy mammasay mammasa mamma oo sa amizzle, ultricies izzle, dope nizzle, augue.
- - +
+= endblock