shrink that header

This commit is contained in:
danielvincent 2010-06-19 00:53:42 -07:00
parent 1223011a4f
commit d1630b6c45
5 changed files with 78 additions and 65 deletions

View file

@ -6,10 +6,6 @@
= link_to "glimpse", "#" = link_to "glimpse", "#"
of what all your friends are doing. of what all your friends are doing.
.span-6.last .span-6.last
%div{ :style => "padding: 1em" } %div{ :style => "padding: 1em" }
%div.big_text %div.big_text
@ -17,10 +13,6 @@
%img{:src=>"/images/bp.jpeg", :id => "profile_image"} %img{:src=>"/images/bp.jpeg", :id => "profile_image"}
%div.big_text %div.big_text
requests requests

View file

@ -20,6 +20,13 @@
#huge_star * #huge_star *
%a#diaspora_text{:href => root_path} %a#diaspora_text{:href => root_path}
/%img{:src => '/images/diaspora_white.png'} /%img{:src => '/images/diaspora_white.png'}
%ul.nav
%li= link_to "home", root_path
%li= link_to "users", users_path
%li= link_to "status messages", status_messages_path
%li= link_to "friends", friends_path
%li= link_to "bookmarks", bookmarks_path
%li= link_to "blogs", blogs_path
#session_action #session_action
- if user_signed_in? - if user_signed_in?
@ -27,13 +34,7 @@
- else - else
= link_to "login", new_user_session_path = link_to "login", new_user_session_path
/%ul.nav #header_below
/%li= link_to "home", root_path
/%li= link_to "users", users_path
/%li= link_to "status messages", status_messages_path
/%li= link_to "friends", friends_path
/%li= link_to "bookmarks", bookmarks_path
/%li= link_to "blogs", blogs_path
.container .container
- if show_title? - if show_title?

View file

@ -1,5 +1,4 @@
%sp.from %sp.message
= post.owner %sp.from= post.owner
%sp{:style => "opacity: 0.7"} said = post.message
%sp.message= post.message

View file

@ -1,3 +1,6 @@
body {
font-family: "helvetica", "arial", "sans-serif"; }
a { a {
color: #cc1e14; color: #cc1e14;
text-decoration: none; text-decoration: none;
@ -49,31 +52,46 @@ h4 {
margin: 0; } margin: 0; }
#header { #header {
padding-top: 1em; min-height: 35px;
padding-bottom: 5em;
color: white; color: white;
font-size: 120%; font-size: 110%;
background-color: #1a1a21; background-color: #1a1a21;
border-bottom: 170px solid #e6eff7; } border-bottom: 1px solid white; }
#header #huge_star { #header #huge_star {
position: absolute; position: absolute;
font-size: 300px; font-size: 80px;
top: -103px; } top: -25px; }
#header #diaspora_text { #header #diaspora_text {
border: none; } border: none; }
#header #session_action { #header #session_action {
display: none;
float: right; } float: right; }
#header ul.nav { #header ul.nav {
padding: 0; padding: 0;
margin: 0; margin: 0;
margin-top: 6px;
display: block; display: block;
font-size: 130%; font-size: 130%;
bottom: 0; } float: right; }
#header ul.nav li { #header ul.nav li {
display: inline; display: inline;
margin-right: 1em; } margin-right: 1em; }
#header ul.nav li:last-child {
margin: 0; }
#header ul.nav a { #header ul.nav a {
border-bottom: none; } border-bottom: none;
color: #999999; }
#header ul.nav a:hover {
color: #cccccc; }
#header_below {
background-color: #e6eff7;
min-height: 150px;
line-height: 150px;
border-bottom: 0;
position: relative;
text-align: right;
z-index: -2; }
#left_pane { #left_pane {
background-color: #e6eff7; background-color: #e6eff7;
@ -87,22 +105,15 @@ ul#stream {
ul#stream > li { ul#stream > li {
list-style: none; list-style: none;
padding: 2em; padding: 2em;
-webkit-box-shadow: 0 4px 5px -5px black; } -webkit-box-shadow: 0 4px 5px -5px #999999; }
ul#stream > li:first-child { ul#stream > li:first-child {
padding-top: 0; } padding-top: 0; }
sp.message { sp.message {
font-size: 150%; font-size: 110%;
letter-spacing: 0.13em; }
sp.from {
font-size: 120%;
display: block;
color: #999999;
letter-spacing: 0.1em; } letter-spacing: 0.1em; }
sp.message sp.from {
body { color: #999999; }
font-family: "helvetica", "arial", "sans-serif"; }
div.big_text { div.big_text {
font-size: 24px; font-size: 24px;
@ -118,7 +129,7 @@ div.big_text {
border: none; } border: none; }
#info_top { #info_top {
margin-top: -140px; margin-top: -130px;
margin-bottom: 50px; } margin-bottom: 50px; }
#publish input { #publish input {

View file

@ -1,3 +1,7 @@
body
:font
:family 'helvetica', 'arial', 'sans-serif'
a a
:color #CC1E14 :color #CC1E14
:text :text
@ -54,51 +58,66 @@ h4
:margin 0 :margin 0
#header #header
:padding :min-height 35px
:top 1em
:bottom 5em
:color #fff :color #fff
:font :font
:size 120% :size 110%
:background :background
:color #1A1A21 :color #1A1A21
:border :border
:bottom 170px solid #e6eff7 :bottom 1px solid #fff
#huge_star #huge_star
:position absolute :position absolute
:font :font
:size 300px :size 80px
//:background //:background
//:color #ff3378 //:color #ff3378
:top -103px :top -25px
#diaspora_text #diaspora_text
:border none :border none
#session_action #session_action
:display none
:float right :float right
ul.nav ul.nav
:padding 0 :padding 0
:margin 0 :margin 0
:margin-top 6px
:display block :display block
:font :font
:size 130% :size 130%
:bottom 0 :float right
li li
:display inline :display inline
:margin :margin
:right 1em :right 1em
li:last-child
:margin 0
a a
:border :border
:bottom none :bottom none
:color #999
&:hover
:color #ccc
#header_below
:background
:color #e6eff7
:min-height 150px
:line-height 150px
:border-bottom 0
:position relative
:text-align right
:z-index -2
#left_pane #left_pane
:background :background
@ -114,28 +133,19 @@ ul#stream
> li > li
:list-style none :list-style none
:padding 2em :padding 2em
:-webkit-box-shadow 0 4px 5px -5px #000 :-webkit-box-shadow 0 4px 5px -5px #999
> li:first-child > li:first-child
:padding-top 0 :padding-top 0
sp.message sp.message
:font :font
:size 150% :size 110%
:letter-spacing 0.13em
sp.from
:font
:size 120%
:display block
:color #999
:letter-spacing 0.1em :letter-spacing 0.1em
sp.from
:color #999
body
:font
:family 'helvetica', 'arial', 'sans-serif'
div.big_text div.big_text
:font :font
@ -157,7 +167,7 @@ div.big_text
#info_top #info_top
:margin :margin
:top -140px :top -130px
:bottom 50px :bottom 50px
#publish #publish