aboutsummaryrefslogtreecommitdiff
path: root/stylesheets/_layout.sass
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2009-11-13 10:15:39 -0600
committerB Mathis <brandon@imathis.com>2009-11-13 10:15:39 -0600
commit0f31b5b9e271ac5fe613217a8beb88b17a415c77 (patch)
tree333f88196ee61ac9d60f1019bdfbd86f5fe4de3d /stylesheets/_layout.sass
parent3e69c6be8bca045b432ca20211b4aadd7df8dd5d (diff)
downloadmy_new_personal_website-0f31b5b9e271ac5fe613217a8beb88b17a415c77.tar.xz
my_new_personal_website-0f31b5b9e271ac5fe613217a8beb88b17a415c77.zip
fixed search positioning, made layout calculations better
Diffstat (limited to '')
-rw-r--r--stylesheets/_layout.sass19
1 files changed, 6 insertions, 13 deletions
diff --git a/stylesheets/_layout.sass b/stylesheets/_layout.sass
index 348c1a92..4f792728 100644
--- a/stylesheets/_layout.sass
+++ b/stylesheets/_layout.sass
@@ -1,6 +1,8 @@
!page_width = 900px
-!sidebar_width = 250px
+!main_width = 620px
+!page_pad = 30px
!sidebar_margin = 30px
+!sidebar_width = !page_width - !main_width - !sidebar_margin
!pad = 15px
!default_border_radius = 4px
@@ -69,21 +71,12 @@ html body
width= !page_width
margin: 0 auto
padding:
- left: 30px
- right: 30px
+ left= !page_pad
+ right= !page_pad
#page
+clearfix
background-color= !page_bg
- &.collapsed
- .page_width
- width= !page_width - !sidebar_width
- #main
- width: 100%
- .pre_expander
- display: none
- #sidebar
- float: none
.page_width
+clearfix
position: relative
@@ -96,7 +89,7 @@ html body
left= "1px solid" !page_border_sides
right= "1px solid" !page_border_sides
#main
- width= !page_width - !sidebar_width - !sidebar_margin
+ width= !main_width
float: left
&.expanded
width: 100%