Commit 098e7022 by Tom Giannattasio

simpler sidebar width setting

parent 925caac6
...@@ -35,7 +35,8 @@ class @DiscussionThreadListView extends Backbone.View ...@@ -35,7 +35,8 @@ class @DiscussionThreadListView extends Backbone.View
sidebar.removeClass('fixed'); sidebar.removeClass('fixed');
sidebar.css('top', '0'); sidebar.css('top', '0');
sidebarWidth = .32 * $(".discussion-body").width() - 10; # sidebarWidth = .32 * $(".discussion-body").width() - 10;
sidebarWidth = .31 * $(".discussion-body").width();
sidebar.css('width', sidebarWidth + 'px'); sidebar.css('width', sidebarWidth + 'px');
sidebarHeight = windowHeight - Math.max(discussionsBodyTop - scrollTop, @sidebar_padding) sidebarHeight = windowHeight - Math.max(discussionsBodyTop - scrollTop, @sidebar_padding)
......
...@@ -551,7 +551,7 @@ body.discussion { ...@@ -551,7 +551,7 @@ body.discussion {
.sidebar { .sidebar {
float: left; float: left;
@include box-sizing(border-box); @include box-sizing(border-box);
width: 32%; width: 31%;
height: 550px; height: 550px;
border: 1px solid #aaa; border: 1px solid #aaa;
box-shadow: 0 1px 2px rgba(0, 0, 0, .05); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment