From 7632ea11da5a8cc5ed06fee69d20ea0de99db1b3 Mon Sep 17 00:00:00 2001 From: John Donmoyer Date: Fri, 29 Apr 2016 11:25:00 -0500 Subject: [PATCH 1/2] reducing link width so the full border shows --- regulations/static/regulations/css/less/module/drawer.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regulations/static/regulations/css/less/module/drawer.less b/regulations/static/regulations/css/less/module/drawer.less index b76918c19..8685c4a7e 100644 --- a/regulations/static/regulations/css/less/module/drawer.less +++ b/regulations/static/regulations/css/less/module/drawer.less @@ -187,7 +187,7 @@ currently these are TOC, History, and Search .close & { display: block; border-right: none; - width: 40px; + width: 39px; } /* Fall back to PNG images for drawer icons when @font-face isn't supported */ From cd43a2ad8b4140b649ea661875a2f28b2239f39d Mon Sep 17 00:00:00 2001 From: John Donmoyer Date: Mon, 2 May 2016 12:27:31 -0400 Subject: [PATCH 2/2] adding variable width --- regulations/static/regulations/css/less/base-variables.less | 6 ++++++ regulations/static/regulations/css/less/module/drawer.less | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/regulations/static/regulations/css/less/base-variables.less b/regulations/static/regulations/css/less/base-variables.less index b28c0fa95..ab01ee092 100644 --- a/regulations/static/regulations/css/less/base-variables.less +++ b/regulations/static/regulations/css/less/base-variables.less @@ -43,3 +43,9 @@ variables.less contains all theme variable / variable overrides */ @body_font: Georgia, serif; + +/* +Layout Variables +*/ + +@closed_drawer_width: 40px; diff --git a/regulations/static/regulations/css/less/module/drawer.less b/regulations/static/regulations/css/less/module/drawer.less index 8685c4a7e..fc48d1b8a 100644 --- a/regulations/static/regulations/css/less/module/drawer.less +++ b/regulations/static/regulations/css/less/module/drawer.less @@ -119,7 +119,7 @@ Panel Slide Button display: block; height: 34px; /* match height of main header */ line-height: 34px; - width: 40px; + width: @closed_drawer_width; float: right; cursor: pointer; text-align: center; @@ -187,7 +187,7 @@ currently these are TOC, History, and Search .close & { display: block; border-right: none; - width: 39px; + width: @closed_drawer_width - 1; } /* Fall back to PNG images for drawer icons when @font-face isn't supported */ @@ -236,7 +236,7 @@ currently these are TOC, History, and Search .close & { position: absolute; - width: 40px; + width: @closed_drawer_width; top: 33px; border-top: 1px solid @medium_gray; right: 0;