Browse code

improved layout flexibility

B Mathis authored on 10/03/2010 at 19:59:18
Showing 27 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 #footer
2
-  .page_width
2
+  .content
3 3
     Copyright © #{Time.now.strftime('%Y')} - #{page.blog_title} -
4 4
     %span.credit Powered by <a href="http://octopress.org">Octopress</a>
5 5
 
... ...
@@ -1,6 +1,7 @@
1
-.page_width
2
-  %a.title(href="/")=page.blog_title
3
-  - if page.respond_to? :google_custom_search_id
1
+.content
2
+  %h1
3
+    %a.title(href="/")=page.blog_title
4
+  - if page.respond_to?(:google_custom_search_id) && page.google_custom_search_id
4 5
     #search
5 6
       %form(action="http://www.google.com/cse" id="cse-search-box")
6 7
         %input(type="hidden" name="cx" value="#{page.google_custom_search_id}")
... ...
@@ -1,4 +1,4 @@
1
-.page_width
1
+.content
2 2
   %ul
3 3
     %li.alpha
4 4
       %a(href="/") Blog
... ...
@@ -25,8 +25,8 @@ google_analytics_tracking_id:
25 25
     #header= include "header.haml"
26 26
     #nav= include "navigation.haml"
27 27
     #page
28
-      .page_width
28
+      #content
29 29
         #main
30
-          .blog= include "post.haml"
30
+          .blog.content= include "post.haml"
31 31
         #sidebar= include "sidebar.haml"
32 32
     = include "footer.haml"
33 33
\ No newline at end of file
... ...
@@ -25,7 +25,8 @@ google_analytics_tracking_id:
25 25
     #header= include "header.haml"
26 26
     #nav= include "navigation.haml"
27 27
     #page
28
-      .page_width
29
-        #main= preserve rp(content)
28
+      #content
29
+        #main
30
+          .content= preserve rp(content)
30 31
         #sidebar= include "sidebar.haml"
31 32
     = include "footer.haml"
32 33
\ No newline at end of file
... ...
@@ -1,5 +1,6 @@
1 1
 ---
2 2
 title: Hello World! I'm Octopress!
3
+updated: March 10th, 2010
3 4
 ---
4 5
 
5 6
 **Octopress is a blogging framework designed for hackers**, based on [Jekyll](http://github.com/mojombo/jekyll) the blog aware static site generator powering [Github pages](http://pages.github.com/).
... ...
@@ -17,7 +17,7 @@ function addExpander(div){
17 17
 function toggleExpander(expander){
18 18
   var html = '';
19 19
   var expanderPos = expander.getPosition().y;
20
-  if($('main').toggleClass('expanded').hasClass('expanded'))
20
+  if($('page').toggleClass('expanded').hasClass('expanded'))
21 21
     html = '&laquo; contract';
22 22
   else
23 23
     html = 'expand &raquo;';
... ...
@@ -1,20 +1,52 @@
1
-!page_width = 900px
2
-!main_width = 620px
3 1
 !page_pad = 30px
4
-!sidebar_margin = 30px
5
-!sidebar_width = !page_width - !main_width - !sidebar_margin
6
-!pad = 15px
2
+!page_width = 980px
3
+!sidebar_margin = 25px
4
+!sidebar_width = 250px
7 5
 !default_border_radius = 4px
8 6
 
9 7
 html body
10
-  background-color= !body_bg
11
-  color= !body_color
8
+  background-color: #{!body_bg}
9
+  color: #{!body_color}
12 10
   a
13
-    color= !link_color
11
+    color: #{!link_color}
12
+    &:hover, &:focus
13
+      color: #{saturate(darken(!link_color, 15), 20)}
14
+    &:visited
15
+      color: #{darken(adjust_hue(!link_color, 70), 10)}
14 16
 
15
-.page_width
16
-  width= !page_width
17
+#header, #footer, #nav
18
+  .content
19
+    position: relative
20
+    margin: 0 auto
21
+    width: #{!page_width - !page_pad}
22
+    padding: 0 #{!page_pad/2}
23
+
24
+#page, #header, #footer, #nav
25
+  min-width: #{!page_width}
26
+  
27
+#page, #content, .content
28
+  +pie-clearfix
29
+#content
17 30
   margin: 0 auto
18
-  padding:
19
-    left= !page_pad
20
-    right= !page_pad
21 31
\ No newline at end of file
32
+  width: #{!page_width - !sidebar_width - !page_pad/2}
33
+  padding: 0 #{!sidebar_width} 0 #{!page_pad/2}
34
+#main
35
+  float: left
36
+  width: 100%
37
+  .content
38
+    padding-right: #{!sidebar_margin}
39
+
40
+#sidebar
41
+  float: left
42
+  width: #{!sidebar_width - !page_pad}
43
+  margin: 0 -100% 0 0
44
+  padding: #{!page_pad} 0 #{!page_pad} #{!page_pad}
45
+
46
+#page.expanded
47
+  #content
48
+    width: #{!page_width}
49
+    padding: 0
50
+  #sidebar
51
+    float: none
52
+    margin: 0
53
+    padding: 0 0 #{!page_pad}
22 54
\ No newline at end of file
... ...
@@ -1,10 +1,7 @@
1
+@import compass/utilities
1 2
 @import compass/css3
3
+
2 4
 @import library/reset.sass
3
-@import library/clearfix.sass
4
-@import library/border_radius.sass
5
-@import library/easy_box_shadow.sass
6 5
 @import library/list_borders.sass
7 6
 @import library/typography.sass
8
-@import library/link_colors.sass
9
-@import library/gradient.sass
10
-@import library/button_style.sass
11 7
\ No newline at end of file
8
+@import library/link_colors.sass
12 9
\ No newline at end of file
... ...
@@ -20,10 +20,12 @@
20 20
 
21 21
 !page_border_sides = #ccc
22 22
 !page_bg = #f0f0f0
23
+!sidebar_bg = #fcfcfc
24
+!sidebar_border = #eee
23 25
 
24 26
 // Blog 
25 27
 !article_border = #eee
26
-!blog_bg = #fff
28
+!main_bg = #fff
27 29
 
28 30
 !footer_color = #999
29 31
 !footer_bg = #444
30 32
deleted file mode 100644
... ...
@@ -1,47 +0,0 @@
1
-!default_border_radius ||= 5px
2
-
3
-// Round all borders by amount
4
-=border-radius(!radius = !default_border_radius)
5
-  border-radius= !radius
6
-  -moz-border-radius= !radius
7
-  -webkit-border-radius= !radius
8
-
9
-// Round radius at position by amount.
10
-// values for !vert: "top", "bottom"
11
-// values for !horz: "left", "right
12
-=border-corner-radius(!vert, !horz, !radius = !default_border_radius)
13
-  border-#{!vert}-#{!horz}-radius= !radius
14
-  -moz-border-radius-#{!vert}#{!horz}= !radius
15
-  -webkit-border-#{!vert}-#{!horz}-radius= !radius
16
-  
17
-=border-top-left-radius(!radius = !default_border_radius)
18
-  +border-corner-radius("top", "left", !radius)
19
-
20
-=border-top-right-radius(!radius = !default_border_radius)
21
-  +border-corner-radius("top", "right", !radius)
22
-
23
-=border-bottom-left-radius(!radius = !default_border_radius)
24
-  +border-corner-radius("bottom", "left", !radius)
25
-
26
-=border-bottom-right-radius(!radius = !default_border_radius)
27
-  +border-corner-radius("bottom", "right", !radius)
28
-
29
-// Round top corners by amount
30
-=border-top-radius(!radius = !default_border_radius)
31
-  +border-top-left-radius(!radius)
32
-  +border-top-right-radius(!radius)
33
-
34
-// Round right corners by amount
35
-=border-right-radius(!radius = !default_border_radius)
36
-  +border-top-right-radius(!radius)
37
-  +border-bottom-right-radius(!radius)
38
-
39
-// Round bottom corners by amount
40
-=border-bottom-radius(!radius = !default_border_radius)
41
-  +border-bottom-left-radius(!radius)
42
-  +border-bottom-right-radius(!radius)
43
-
44
-// Round left corners by amount
45
-=border-left-radius(!radius = !default_border_radius)
46
-  +border-top-left-radius(!radius)
47
-  +border-bottom-left-radius(!radius)
48 1
\ No newline at end of file
49 2
deleted file mode 100644
... ...
@@ -1,45 +0,0 @@
1
-=btn-border-color(!color)
2
-  border-color= darken(!color, 25)
3
-
4
-=btn-text-shadow(!color)
5
-  !text_shadow = darken(!color, 25)
6
-  text-shadow= !text_shadow  "1px 1px 1px"
7
-
8
-=btn-style(!color)
9
-  !color1 = lighten(!color, 30)
10
-  !color2 = darken(!color, 20)
11
-  +h-linear-gradient(!color1, !color2)
12
-  background-color= !color
13
-  +btn-border-color(!color)
14
-  +btn-text-shadow(!color)
15
-
16
-=btn-style-hover(!color)
17
-  !color = lighten(!color, 8)
18
-  !color1 = lighten(!color, 22)
19
-  !color2 = darken(!color, 38)
20
-  +h-linear-gradient(!color1, !color2)
21
-  background-color= !color
22
-  +btn-border-color(!color)
23
-  +btn-text-shadow(!color)
24
-
25
-=btn-style-active(!color)
26
-  !color = darken(!color, 5)
27
-  !color1 = lighten(!color, 25)
28
-  !color2 = darken(!color, 35)
29
-  +h-linear-gradient(!color1, !color2)
30
-  background-color= !color
31
-  +btn-border-color(!color)
32
-  +btn-text-shadow(!color)
33
-
34
-=btn-structure(!font_size, !border_width, !line_height = !font_size *1.2)
35
-  !v_padding = floor(!font_size/2.5)
36
-  !h_padding = floor(!font_size)
37
-  !v_padding_active = !v_padding - 1px
38
-  !h_padding_active = !h_padding - 1px
39
-  border-width= !border_width
40
-  font-size= !font_size
41
-  padding= !v_padding !h_padding
42
-  line-height= !line_height
43
-  &:active
44
-    border-width= !border_width + 1px
45
-    padding= !v_padding_active !h_padding_active
46 1
\ No newline at end of file
47 2
deleted file mode 100644
... ...
@@ -1,24 +0,0 @@
1
-// based on compass clearfix
2
-
3
-@import _hacks.sass
4
-
5
-// Extends the element to enclose any floats it contains.
6
-// This basic method is preferred for the usual case, when positioned content will not show outside the bounds of the container.
7
-// Recommendations include using this in conjunction with a width:
8
-// http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html
9
-=clearfix
10
-  :overflow hidden
11
-  +has-layout
12
-
13
-// Extends the element to enclose any floats it contains.
14
-// This older "Easy Clearing" method has the advantage of allowing positioned elements to hang outside the bounds of the container, at the expense of more tricky CSS.
15
-// http://www.positioniseverything.net/easyclearing.html
16
-=pie-clearfix
17
-  &:after
18
-    :content " "
19
-    :display block
20
-    :height 0
21
-    :clear both
22
-    :overflow hidden
23
-    :visibility hidden
24
-  +has-layout
25 1
\ No newline at end of file
26 2
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-!default_box_shadow_color = #333
2
-!default_box_shadow_x_offset = 1px
3
-!default_box_shadow_y_offset = 1px
4
-!default_box_shadow_blur_radius = 8px
5
-
6
-=box-shadow(!color = !default_box_shadow_color, !blur_radius = !default_box_shadow_blur_radius, !x_offset = !default_box_shadow_x_offset, !y_offset = !default_box_shadow_y_offset, !inset = "")
7
-  box-shadow= !inset !x_offset !y_offset !blur_radius !color
8
-  -webkit-box-shadow= !inset !x_offset !y_offset !blur_radius !color
9
-  -moz-box-shadow= !inset !x_offset !y_offset !blur_radius !color
10
-
11
-=inset-box-shadow(!color = !default_box_shadow_color, !blur_radius = !default_box_shadow_blur_radius, !x_offset = !default_box_shadow_x_offset, !y_offset = !default_box_shadow_y_offset)
12
-  +box-shadow(!color, !blur_radius, !x_offset, !y_offset, "inset")
13 1
\ No newline at end of file
14 2
deleted file mode 100644
... ...
@@ -1,15 +0,0 @@
1
-=linear-gradient(!from_coord, !to_coord, !color_start, !color_end, !color_stop1 = 0, !color_stop1_pos = .3, !color_stop_2 = 0, !color_stop2_pos = .9)
2
-  !gradient = "#{!from_coord}, #{!to_coord}, from(#{!color_start}), to(#{!color_end})"
3
-  //@if !color_stop1 != 0
4
-  //  !gradient += "color-stop(#{!color_stop1_pos}, #{!color_stop1})"
5
-  background= "-webkit-gradient(linear, #{!gradient})"
6
-  background= "-moz-linear-gradient(#{!gradient})"
7
-
8
-=h-linear-gradient(!color1, !color2)
9
-  +linear-gradient("left top", "left bottom", !color1, !color2)
10
-
11
-=v-linear-gradient(!color1, !color2)
12
-  +linear-gradient("left top", "right top", !color1, !color2)
13
-
14
-//=h-three-color-gradient(!color1, !color2, !color3, !color3_pos = .5)
15
-//  +linear-gradient("left top", "left bottom", !color1, !color2, !color3, !color3_pos)
16 1
\ No newline at end of file
17 2
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-// based on compass hacks
2
-
3
-=has-layout
4
-  // This makes ie6 get layout
5
-  :display inline-block
6
-  // and this puts it back to block
7
-  &
8
-    :display block
9 1
\ No newline at end of file
10 2
deleted file mode 100644
... ...
@@ -1,18 +0,0 @@
1
-//**
2
-  Provides cross-browser css opacity.
3
-  @param !opacity
4
-    A number between 0 and 1, where 0 is transparent and 1 is opaque.
5
-=opacity(!opacity)
6
-  :opacity= !opacity
7
-  :-moz-opacity= !opacity
8
-  :-khtml-opacity= !opacity
9
-  :-ms-filter= "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + round(!opacity*100) + ")"
10
-  :filter= "alpha(opacity=" + round(!opacity*100) + ")"
11
-
12
-// Make an element completely transparent.
13
-=transparent
14
-  +opacity(0)
15
-
16
-// Make an element completely opaque.
17
-=opaque
18
-  +opacity(1)
19 1
deleted file mode 100644
... ...
@@ -1,4 +0,0 @@
1
-=sprite-column-hover-row(!col, !row_hover=2, !width=!sprite_default_size, !height=!sprite_default_size, !margin=!sprite_default_margin)
2
-  +sprite-position(!col, 1, !width, !height, !margin)
3
-  &:hover
4
-    +sprite-position(!col, !row_hover, !width, !height, !margin)
5 1
\ No newline at end of file
6 2
deleted file mode 100644
... ...
@@ -1,52 +0,0 @@
1
-//**
2
-  Example 1:
3
-  a.twitter
4
-    +sprite-img("icons-32.png", 1)
5
-  a.facebook
6
-    +sprite-img("icons-32png", 2)
7
-  ...
8
-  Example 2:
9
-  a
10
-    +sprite-background("icons-32.png")
11
-    a.twitter
12
-      +sprite-column(1)
13
-    a.facebook
14
-      +sprite-row(2)
15
-    ...
16
- 
17
-!sprite_default_size  ||= 32px
18
-!sprite_default_margin ||= 0px
19
-!sprite_image_default_width ||= !sprite_default_size
20
-!sprite_image_default_height ||= !sprite_default_size
21
- 
22
- 
23
-// Sets all the rules for a sprite from a given sprite image to show just one of the sprites.
24
-// To reduce duplication use a sprite-bg mixin for common properties and a sprite-select mixin for positioning.
25
-=sprite-img(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
26
-  +sprite-background(!img, !width, !height)
27
-  +sprite-position(!col, !row, !width, !height, !margin)
28
- 
29
-// Sets rules common for all sprites, assumes you want a square, but allows a rectangular region.
30
-=sprite-background(!img, !width = !sprite_default_size, !height = !width)
31
-  +sprite-background-rectangle(!img, !width, !height)
32
- 
33
-// Sets rules common for all sprites, assumes a rectangular region.
34
-=sprite-background-rectangle(!img, !width = !sprite_image_default_width, !height = !sprite_image_default_height)
35
-  :background= image_url(!img) "no-repeat"
36
-  :width= !width
37
-  :height= !height
38
-  :overflow hidden
39
- 
40
-// Allows horizontal sprite positioning optimized for a single row of sprites.
41
-=sprite-column(!col, !width = !sprite_image_default_width, !margin = !sprite_default_margin)
42
-  +sprite-position(!col, 1, !width, 0px, !margin)
43
- 
44
-// Allows vertical sprite positioning optimized for a single column of sprites.
45
-=sprite-row(!row, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
46
-  +sprite-position(1, !row, 0px, !height, !margin)
47
- 
48
-// Allows vertical and horizontal sprite positioning from a grid of equal dimensioned sprites.
49
-=sprite-position(!col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
50
-  !x = ((!col - 1) * -!width) - ((!col - 1) * !margin)
51
-  !y = ((!row - 1) * -!height) - ((!row - 1) * !margin)
52
-  :background-position= !x !y
53 1
\ No newline at end of file
... ...
@@ -2,12 +2,12 @@
2 2
 !small ||= floor(!base_font_size * .85)
3 3
 !big ||= floor(!base_font_size * 1.25)
4 4
 !base_font_color ||= #333
5
-!h6 = ceil(!base_font_size*1.3)
6
-!h5 = ceil(!base_font_size*1.4)
7
-!h4 = ceil(!base_font_size*1.7)
8
-!h3 = ceil(!base_font_size*1.9)
9
-!h2 = ceil(!base_font_size*2.2)
10
-!h1 = ceil(!base_font_size*2.5)
5
+!h6 = ceil(!base_font_size*1)
6
+!h5 = ceil(!base_font_size*1)
7
+!h4 = ceil(!base_font_size*1.2)
8
+!h3 = ceil(!base_font_size*1.8)
9
+!h2 = ceil(!base_font_size*2.8)
10
+!h1 = ceil(!base_font_size*3.2)
11 11
 
12 12
 =heading-font 
13 13
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
... ...
@@ -29,8 +29,8 @@
29 29
   !h5 = ceil(!font_size*1)
30 30
   !h4 = ceil(!font_size*1.2)
31 31
   !h3 = ceil(!font_size*1.8)
32
-  !h2 = ceil(!font_size*3)
33
-  !h1 = ceil(!font_size*3.5)
32
+  !h2 = ceil(!font_size*2.8)
33
+  !h1 = ceil(!font_size*3.2)
34 34
   h1, h2, h3, h4
35 35
     &:first-child
36 36
       margin-top: 0
... ...
@@ -7,12 +7,12 @@
7 7
     &:hover
8 8
       text-decoration: underline
9 9
   .article
10
-    padding= !base_font_size * 1.5 0 !base_font_size * 1.5
11
-    border-bottom= "1px solid" !article_border
10
+    padding: #{!base_font_size * 1.5 0} #{!base_font_size * 1.5}
11
+    border-bottom: 1px solid #{!article_border}
12 12
     &:first-child
13 13
       padding-top: 0
14 14
   #disqus_thread
15
-    padding-top= !base_font_size
15
+    padding-top: #{!base_font_size}
16 16
   .meta
17 17
     +sans-font
18 18
     border-bottom: 1px dashed #ddd
... ...
@@ -21,4 +21,6 @@
21 21
     padding: 8px 0 5px
22 22
     margin-bottom: 1.5em
23 23
     font-size: 75%
24
-    letter-spacing: 1px
25 24
\ No newline at end of file
25
+    letter-spacing: 1px
26
+  .footer
27
+    padding-top: 15px
26 28
\ No newline at end of file
... ...
@@ -1,13 +1,12 @@
1 1
 #footer
2
+  +linear-gradient(color_stops(darken(!body_bg, 5), !body_bg))
3
+  font-size: #{!base_font_size_small}
4
+  color: #{!footer_color}
5
+  border-top: 10px solid #{!footer_bg}
6
+  padding: 15px 0
2 7
   position: relative
3 8
   z-index: 2
4
-  font-size= !base_font_size_small
5
-  clear: both
6
-  padding= !base_font_size * 1.5 0
7
-  color= !footer_color
8
-  +h-linear-gradient(darken(!body_bg, 25), !body_bg)
9
-  border-top= "14px solid" !footer_bg
10 9
   a
11
-    color= #ddd
10
+    color: #ddd
12 11
     &:hover
13
-      color = #fff
14 12
\ No newline at end of file
13
+      color: #fff
15 14
\ No newline at end of file
... ...
@@ -1,12 +1,11 @@
1 1
 #header
2
-  background-color= !header_bg
3
-  border-bottom= "1px solid" !header_border
4
-  padding: 30px 0
5
-  .page_width
6
-    position: relative
7
-  a.title
8
-    font-size= !h1
9
-    +heading-font
2
+  background-color: {!header_bg}
3
+  border-bottom: 1px solid #{!header_border}
4
+  padding: 25px 0
5
+  h1
10 6
     display: inline-block
11
-    color= !title_color
12
-    text-decoration: none
13 7
\ No newline at end of file
8
+    margin: 0
9
+    a.title
10
+      font-weight: normal
11
+      color: #{!title_color}
12
+      text-decoration: none
14 13
\ No newline at end of file
... ...
@@ -2,23 +2,20 @@
2 2
   +clearfix
3 3
   position: relative
4 4
   z-index: 1
5
-  padding: 6px 0
6
-  background:
7
-    color= !nav_bg
8
-    image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4))
9
-    image: -moz-linear-gradient(left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4))
5
+  background-color: #{!nav_bg}
6
+  +linear-gradient(color_stops(#fcfcfc, #f4f4f4 .3, #ddd))
10 7
   border:
11
-    top= "1px solid" !nav_border_top
12
-    bottom= "1px solid" !nav_border_bottom
8
+    top: 1px solid #{!nav_border_top}
9
+    bottom: 1px solid #{!nav_border_bottom}
13 10
   ul
14 11
     position: relative
15 12
     +horizontal-list
16 13
     margin: 0 auto
17
-    overflow: visible
14
+    padding: 6px 0
18 15
     li
19 16
       padding: 0 15px
20
-      border-left= "1px solid" !nav_border_left
21
-      border-right= "1px solid" !nav_border_right
17
+      border-left: 1px solid #{!nav_border_left}
18
+      border-right: 1px solid #{!nav_border_right}
22 19
       &.alpha
23 20
         border-left: none
24 21
         padding-left: 0
... ...
@@ -26,7 +23,7 @@
26 26
         border-right: 0
27 27
       &.subscribe
28 28
         position: absolute
29
-        left= !page_width - !sidebar_width - !sidebar_margin/2
29
+        left: #{!page_width - !sidebar_width - !sidebar_margin/2}
30 30
         border: none
31 31
         a
32 32
           display: inline-block
... ...
@@ -34,8 +31,8 @@
34 34
           background: url("/images/rss.png") left top no-repeat
35 35
       a
36 36
         display: inline-block
37
-        color= !nav_color
37
+        color: #{!nav_color}
38 38
         line-height: 150%
39 39
         text-decoration: none
40 40
         &:hover
41
-          color= !nav_color_hover
42 41
\ No newline at end of file
42
+          color: #{!nav_color_hover}
43 43
\ No newline at end of file
... ...
@@ -1,19 +1,8 @@
1 1
 #page
2
-  +clearfix
3
-  background-color= !page_bg
4
-  .page_width
5
-    +clearfix
6
-    position: relative
7
-    padding:
8
-      top: 25px
9
-      bottom: 25px
10
-    background-color= !blog_bg
11
-    +box-shadow(#ccc)
12
-    border:
13
-      left= "1px solid" !page_border_sides
14
-      right= "1px solid" !page_border_sides
2
+  background-color: #{!main_bg}
15 3
 #main
16
-  width= !main_width
17
-  float: left
18
-  &.expanded
19
-    width: 100%
20 4
\ No newline at end of file
5
+  background-color: #{!main_bg}
6
+  border-right: 1px solid #{!sidebar_border}
7
+  padding:
8
+    top: 25px
9
+    bottom: 25px
21 10
\ No newline at end of file
... ...
@@ -1,7 +1,7 @@
1 1
 #search
2 2
   position: absolute
3
-  left= !page_width + !sidebar_margin - !sidebar_width
4
-  top= 10%
3
+  left: #{!page_width + !sidebar_margin - !sidebar_width}
4
+  top: #{30%}
5 5
   form
6 6
     background: url(/images/search_bg.png) no-repeat
7 7
     padding: 0
... ...
@@ -1,16 +1,17 @@
1 1
 #sidebar
2
-  float: left
3
-  width= !sidebar_width
4
-  margin-left= !sidebar_margin
5
-  font-size: 80%
6
-  line-height: 1.625em
7
-  h4
8
-    margin: 20px 0 0
2
+  line-height: 1.45em
3
+  font-size: 90%
4
+  h3
5
+    font-size: #{!h4+2}
6
+    margin: 20px -15px 10px
7
+    padding: 12px 15px
8
+    background: #fff
9
+    border-bottom: 1px solid #e5e5e5
10
+    border-top: 1px solid #e5e5e5
9 11
     &:first-child
10
-      margin-top: 10px
11
-    .small
12
-      +sans-font
13
-      font-size: 50%
12
+      margin-top: 0
13
+  h4
14
+    font-size: #{!h5}
14 15
       
15 16
 #twitter, #delicious
16 17
   +border-radius