From dfef3c1ff196db7c96653472ffd6622ea94bf674 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 7 Feb 2016 12:10:02 +1030 Subject: [PATCH] Slightly widen index sidebar, overflow buttons properly First half of #349 fix. Supersedes #734 (190px wide instead of 200px, correctly modify margin-left of .sideNavOffset, more descriptive commit message) --- less/forum/IndexPage.less | 3 +-- less/lib/Button.less | 2 ++ less/lib/sideNav.less | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/less/forum/IndexPage.less b/less/forum/IndexPage.less index eac4eccc9..01f2939b9 100644 --- a/less/forum/IndexPage.less +++ b/less/forum/IndexPage.less @@ -6,8 +6,7 @@ margin-bottom: 20px; .Button { - display: block; - width: 100%; + .Button--block(); } } } diff --git a/less/lib/Button.less b/less/lib/Button.less index bb89d4e85..fe70d7543 100755 --- a/less/lib/Button.less +++ b/less/lib/Button.less @@ -192,6 +192,8 @@ .Button--block { display: block; width: 100%; + overflow: hidden; + text-overflow: ellipsis; // Vertically space out multiple block buttons + .Button--block { diff --git a/less/lib/sideNav.less b/less/lib/sideNav.less index 971f8921c..ebc1caee2 100755 --- a/less/lib/sideNav.less +++ b/less/lib/sideNav.less @@ -95,7 +95,7 @@ float: left; &, > ul { - width: 175px; + width: 190px; } > ul { margin-top: 30px; @@ -119,6 +119,6 @@ @media @desktop-up { .sideNavOffset { margin-top: 30px; - margin-left: 225px; + margin-left: 240px; } }