-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed merge conflict in application.html, added link to atom feed in …
…page header
- Loading branch information
Showing
8 changed files
with
101 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,109 @@ | ||
@mixin no-list { | ||
list-style: none; | ||
margin-left: 0; | ||
} | ||
|
||
#wrapper { | ||
@include container; | ||
// @include susy-grid-background; | ||
// @include debug-vertical-alignment; | ||
|
||
@include at-breakpoint($mobile-layout) { // ; | ||
@include at-breakpoint($full-break) { | ||
@include set-container-width; | ||
// @include susy-grid-background; | ||
// @include debug-vertical-alignment; | ||
} | ||
} //#wrapper | ||
|
||
|
||
|
||
header#page_header { | ||
@include span-columns(12); | ||
h1 { | ||
@include span-columns(10); | ||
@include span-columns(4); | ||
@include adjust-font-size-to(20px); | ||
@include at-breakpoint($full-break) { | ||
@include span-columns(10, $full-break); | ||
@include adjust-font-size-to(36px); | ||
} | ||
} //h1 | ||
.feed { | ||
@include span-columns(2 omega); | ||
line-height:40px; | ||
@include at-breakpoint($full-break) { | ||
@include span-columns(2 omega); | ||
} | ||
margin:10px auto; | ||
text-align:right; | ||
} //.feed | ||
} //header#page_header | ||
|
||
|
||
section#main { | ||
@include span-columns(12); | ||
|
||
@include span-columns($total-columns); | ||
.hero-unit { | ||
float:left; | ||
width:90%; | ||
padding:10px 5%; | ||
position:relative; | ||
a#learn-more { | ||
float:left; | ||
display:block; | ||
@include margin-leader(0.5); | ||
@include margin-trailer(0.5); | ||
@extend .btn; | ||
@extend .btn-primary; | ||
@extend .btn-large; | ||
} //a#learn_more | ||
|
||
h1 { | ||
@include adjust-font-size-to(24px); | ||
} //h1 | ||
|
||
.bird { | ||
padding-left:120px; | ||
float:left; | ||
clear: both; | ||
width:120px; | ||
height:100px; | ||
@include sprites-sprite(twitter_newbird_blue); | ||
@include margin-trailer(0.5); | ||
position:relative; | ||
p { | ||
padding:20px; | ||
width:120px; | ||
@include adjust-font-size-to(16px); | ||
margin-bottom:0; | ||
position:absolute; | ||
left:130px; | ||
top:-30px; | ||
} //p | ||
} //.bird | ||
|
||
span.shared-smiles-count { | ||
@extend .label; | ||
@extend .label-info; | ||
position:absolute; | ||
right:10px; | ||
bottom:10px; | ||
} //span.shared-smiles-count | ||
|
||
} //.hero-unit | ||
|
||
#smiles-list { | ||
@include no-list; | ||
@include span-columns(12); | ||
@include span-columns($total-columns); | ||
li { | ||
@include span-columns(3,12); | ||
@include span-columns(3); | ||
&.two, &.four { | ||
@include omega; | ||
} //&.two | ||
@include at-breakpoint($full-break) { | ||
@include span-columns(3,$total-columns); | ||
&.two { | ||
@include remove-omega; | ||
} //&.two | ||
} | ||
height:380px; | ||
@include margin-trailer(1); | ||
background-color:$grayLighter; | ||
&.four { | ||
@include omega; | ||
} //&.four | ||
|
||
&.one, &.three { | ||
background-color:$grayLighter; | ||
} //&.two, &.four | ||
} //li | ||
} //#smiles-list | ||
} //section#main | ||
|
||
@mixin close-button { | ||
@include sprites-sprite(close); | ||
position:absolute; | ||
left:5px; top:5px; | ||
cursor:pointer; | ||
height:35px; | ||
width:35px; | ||
background-color:transparent; | ||
} | ||
|
||
#overlay { | ||
display:none; | ||
padding:35px; | ||
@include border-radius(10px); | ||
outline:none; | ||
.close { | ||
@include close-button; | ||
} //.close | ||
} //.overlay | ||
|
||
.click_to_ajax_overlay { | ||
cursor:pointer; | ||
} //.click_to_ajax_overlay |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@mixin no-list { | ||
list-style: none; | ||
margin-left: 0; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@mixin close-button { | ||
@include sprites-sprite(close); | ||
position:absolute; | ||
left:5px; top:5px; | ||
cursor:pointer; | ||
height:35px; | ||
width:35px; | ||
background-color:transparent; | ||
} | ||
|
||
#overlay { | ||
display:none; | ||
padding:35px; | ||
@include border-radius(10px); | ||
outline:none; | ||
.close { | ||
@include close-button; | ||
} //.close | ||
} //.overlay | ||
|
||
.click_to_ajax_overlay { | ||
cursor:pointer; | ||
} //.click_to_ajax_overlay |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
//----------------------------------------- | ||
// Variables - set before importing anything so that defaults from bootstrap | ||
// so that default vars from bootstrap can be overriden | ||
// Imports | ||
//----------------------------------------- | ||
|
||
// My vars | ||
|
||
// override bootstrap vars | ||
|
||
@import "bootstrap"; | ||
@import "bootstrap-responsive"; | ||
@import "susy"; | ||
@import "compass/typography/vertical_rhythm"; | ||
|
||
//----------------------------------------- | ||
// Susy Grid vars (http://susy.oddbird.net/) | ||
//----------------------------------------- | ||
$total-columns : 12; | ||
$total-columns : 6; | ||
$column-width : 4em; | ||
$gutter-width : 1em; | ||
$grid-padding : $gutter-width; | ||
|
||
$mobile-layout : 7; | ||
$full-break: 12; | ||
|
||
$container-style: fluid; | ||
|
||
//----------------------------------------- | ||
// Imports | ||
//----------------------------------------- | ||
@import "bootstrap"; | ||
@import "bootstrap-responsive"; | ||
@import "susy"; | ||
// compass vars for vertical rhythm based on bootstrap default vars | ||
$base-font-size:$baseFontSize; //14px | ||
$base-line-height:$baseLineHeight; //20px | ||
|
||
// mixins first (or anything used by following files, so sprites too) | ||
@import "mixins"; | ||
@import "sprites/*.png"; | ||
|
||
@import "main"; | ||
@import "main"; | ||
@import "overlay"; | ||
|
||
body { | ||
@include establish-baseline; // establish compass vertical rhythm | ||
} //body |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
%header#page_header | ||
%h1= link_to rubyfriends_app.title, root_path | ||
.feed | ||
= link_to image_tag('twitter_icon_grey.png'), | ||
twitter_url | ||
= link_to image_tag('twitter_icon_grey.png'), twitter_url | ||
= link_to image_tag('feed_icon_grey.png'), tweets_url(format: :atom) |
This file contains 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
This file contains 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