From 77bb406a9344eb669bf33b951e6156de62094b58 Mon Sep 17 00:00:00 2001 From: B Mathis Date: Wed, 21 Oct 2009 11:39:53 -0500 Subject: [PATCH] improved layout styling, added about page, added archive page link to footer --- source/_layouts/default.haml | 10 +- source/about.haml | 12 +++ source/images/rss.png | Bin 0 -> 6905 bytes source/index.haml | 7 +- source/stylesheets/partials/main/_layout.sass | 95 ++++++++++++------ source/stylesheets/partials/main/_theme.sass | 21 ++-- 6 files changed, 103 insertions(+), 42 deletions(-) create mode 100644 source/about.haml create mode 100644 source/images/rss.png diff --git a/source/_layouts/default.haml b/source/_layouts/default.haml index 77bd29e..ceadff3 100644 --- a/source/_layouts/default.haml +++ b/source/_layouts/default.haml @@ -17,10 +17,14 @@ root_url: #header .page_width %a.title(href="/")=page.blog_title - %ul#header_nav.nav + #nav + .page_width + %ul %li.alpha - %a(href="#{page.root_url}/archives") Archives + %a(href="#{page.root_url}/") Blog %li.omega + %a(href="#{page.root_url}/about") About + %li.subscribe %a(href="#{page.root_url}/atom.xml") Subscribe #page .page_width @@ -35,4 +39,4 @@ root_url: #footer .page_width = "Copyright © #{Time.now.strftime('%Y')} - #{page.blog_title} | " - %span.credit Powered by Jekyll & Octopress \ No newline at end of file + %span.credit Powered by Octopress \ No newline at end of file diff --git a/source/about.haml b/source/about.haml new file mode 100644 index 0000000..bc272eb --- /dev/null +++ b/source/about.haml @@ -0,0 +1,12 @@ +--- +layout: default +title: About Me +--- +:markdown + # About Me + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum. + + Ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt. + + Dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent. \ No newline at end of file diff --git a/source/images/rss.png b/source/images/rss.png new file mode 100644 index 0000000000000000000000000000000000000000..723559bc4bf35a481342c96a11c5e5ca258f641b GIT binary patch literal 6905 zcmV4Tx0C)lIT4h{R-`3t|nqlbfp}VA0x&@@9rMpX{OA(ZiPy{J42qi>HP`VWm zL=llt0YOnQ5s7=y*Z;j=?x*+t_PRfudCuBv_C7P~H+wy^)&qcmpL0-<9|8d29}pH| zrmI1;wy`B*p8*m;09b$mkh5!Okh-a<5$y6`#RS3Kx0FWu{ zKmD`5U_&V2J}9;pz#m&kR2UhC0B_I{-Gpdtg-E+(TUf;JXU@ z_`8L=`UAjE3-3qp_YZ{U1&FX+z%?iYey@NYjCl^eJNOkIp&bAy@xZL~w($f4K!ygO{U&}!R4FJ&d`}?2y0Knz|uzP-g|L2wc z{oM)xkaGZZ`MHLNMEvrFg9Z;Yzyk_E3zz^q;06Lf6dVF_KnbV;ZD0UQfCaDtj=&Xo z0e=tzPJkGY2u_2uARFX^LQo2>f+|o8Zi5!k0lL8e7zGnx8q9)4ungA0NAMN=gdhkD z5g=-a5n_jUAz?@ol800wZO9NZgKQut$OH0+!l4)_8A^w8pi59WR0-8Xtxy*<1WiCQ z&?2-3Z9>}!1cDSni(p0YBE%4K2sMNO!W?0b@IVA1P9l;K8HkIBazqWH3DJodK|Dq* zAl4CI5c^0xk`75k3M1u^8ptC^8>Blj2pNMsgUmygA#Wnvkp0L>pwdwVsOzXZs2M033x8N0^S7gj*r3T;H&Um_^0^yq-at$QfX2{QdiPw(p=IS(q7W%q@M`{ z0uMojU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D$B6nJWGhF2(j21YFL}p@-t{DOrp!JF>6~QvU&>T5 zj#6?6LuATxD8BqIEXRRYa1dSk0O87Is7Ia$%KKqfFCb`b!jxv{c!97R93r1Cqcj4; zt;9d%!^IE$PEZ>+D4~BJ*SoR$0*zRXS`q_77hH!*}u@5$Hj<)VkZ-Q!E!G z)$u)BmiSSNf2fR)9myt7y4T{6#LD~EthEvN(NcV2IHeFkg(o)Fnx8f{_~eS*uxZ50 zZL&onqac0@#e1$1k!xQsMRs^HK6o(w-w6B#GRVU-%UbKL00000NkvXXu0mjfRgh@v literal 0 HcmV?d00001 diff --git a/source/index.haml b/source/index.haml index 12afdcf..a244f7e 100644 --- a/source/index.haml +++ b/source/index.haml @@ -4,5 +4,8 @@ title: Blog --- .blog - site.posts.sort_by(&:date).reverse[0..9].each_with_index do |post,index| - %h2= link_to(post.title, post.url, {:class=>"title"}) - .article= post.content \ No newline at end of file + .article + %h2= link_to(post.title, post.url, {:class=>"title"}) + = post.content + .footer + %a(href="/archives.html" title="archives") « Blog Archives \ No newline at end of file diff --git a/source/stylesheets/partials/main/_layout.sass b/source/stylesheets/partials/main/_layout.sass index 0b6bf27..3fbb3f9 100644 --- a/source/stylesheets/partials/main/_layout.sass +++ b/source/stylesheets/partials/main/_layout.sass @@ -1,4 +1,5 @@ !page_width = 560px +!sidebar_width = 0 !pad = 15px !default_border_radius = 4px @@ -8,23 +9,63 @@ html body a color= !link_color +#footer a + color= #ddd + &:hover + color = #fff #header background-color= !header_bg border-bottom= "1px solid" !header_border - padding: 20px 0 + padding: 30px 0 a.title - font-size= !h3 + font-size= !h1 +heading-font display: inline-block - color= !header_nav + color= !title_color text-decoration: none - #header_nav - float: right + +#nav + +clearfix + position: relative + z-index: 1 + padding: 6px 0 + background: + color= !nav_bg + image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4)) + image: -moz-linear-gradient(left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4)) + border: + top= "1px solid" !nav_border_top + bottom= "1px solid" !nav_border_bottom + ul + position: relative +horizontal-list - a - color: #ccc - li.alpha a - color: #f2f2f2 + margin: 0 auto + overflow: visible + li + padding: 0 15px + border-left: 1px solid #d3d3d3 + border-right: 1px solid #f4f4f4 + &.alpha + border-left: none + padding-left: 0 + &.omega + border-right: 0 + &.subscribe + position: absolute + right: 0 + //left= !page_width - 25px + border: none + a + display: inline-block + padding-left: 28px + background: url("/images/rss.png") left top no-repeat + a + display: inline-block + color= !nav_color + line-height: 150% + text-decoration: none + &:hover + color= !nav_color_hover .page_width width= !page_width @@ -35,31 +76,27 @@ html body #page background-color= !page_bg - border-top= "1px solid" !page_border - padding: 25px 0 .page_width - background-color= !page_bg + padding: + top: 25px + bottom: 25px + background-color= !content_bg + +box-shadow(#ccc) + .article + padding= !base_font_size * 1.5 0 !base_font_size * 1.5 + border-bottom= "1px solid" !article_border + &:first-child + padding-top: 0 + .blog .footer + padding-top= !base_font_size -#subnav - +clearfix - margin: -25px 0 25px - padding: 10px 0 - background-color= !subnav_bg - border-bottom= "1px solid" !subnav_border - font-size: 85% - #account - float: right - a - color= !subnav_logout_color - display: inline-block - padding-left: 10px - margin-left: 8px - border-left= "1px solid" #aaa #footer + position: relative + z-index: 2 font-size= !base_font_size_small clear: both - padding: 15px 0 + padding= !base_font_size * 1.5 0 color= !footer_color +h-linear-gradient(darken(!body_bg, 25), !body_bg) - border-top= "4px solid" !footer_bg \ No newline at end of file + border-top= "14px solid" !footer_bg \ No newline at end of file diff --git a/source/stylesheets/partials/main/_theme.sass b/source/stylesheets/partials/main/_theme.sass index 6d70f79..2feff31 100644 --- a/source/stylesheets/partials/main/_theme.sass +++ b/source/stylesheets/partials/main/_theme.sass @@ -1,19 +1,24 @@ // Main Section Colors !body_color = #333 !body_bg = #323232 -!test = darken(!body_bg, 20) + !header_bg = #323232 !header_border = #181818 -!header_nav = #ddd -!header_nav_hover = #fff +!title_color = #ddd + +!nav_color = #555 +!nav_color_hover = #000 +!nav_bg = #e8e8e8 +!nav_border_top = #fff +!nav_border_bottom = #aaa + !page_border = #fff -!page_bg = #ececec +!page_bg = #f0f0f0 +!article_border = #eee +!content_bg = #fff + !footer_color = #999 !footer_bg = #444 -!subnav_bg = #fff -!subnav_border = #ccc -!subnav_link_color = #333 -!subnav_logout_color = #777 // Link Colors !link_color = #165B94