From: Stas Vilchik Date: Fri, 23 May 2014 15:26:11 +0000 (+0200) Subject: SONAR-5333 Improve UI of the sidebar, make it sticky X-Git-Tag: 4.4-RC1~856 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c1372adcae7ac485f77bfd9df589285bc9764324;p=sonarqube.git SONAR-5333 Improve UI of the sidebar, make it sticky --- diff --git a/sonar-server/src/main/less/layout.less b/sonar-server/src/main/less/layout.less index f244be899df..a87f1902f7c 100644 --- a/sonar-server/src/main/less/layout.less +++ b/sonar-server/src/main/less/layout.less @@ -179,15 +179,15 @@ body, a { margin: 50px 180px 0; } -#body { - /* position: relative;*/ -} - #footer { padding: 4px 0; clear: both; } +#body { + position: relative; +} + .with_sidebar { margin: 0 0 0 160px; padding: 10px; @@ -198,11 +198,13 @@ body, a { } #sidebar { + position: absolute; + top: 0; left: 10px; width: 150px; - float: left; - margin: 0 0 0 10px; - top: 0; - left: 0; + + &.sticky { + position: fixed; + } } ul.sidebar { @@ -216,12 +218,9 @@ ul.sidebar li { padding: 3px 10px; } -ul.sidebar li a { - text-decoration: none; -} - -ul.sidebar li a:hover { - text-decoration: underline; +ul.sidebar li > a { + .highlighted-link; + .chevron-link; } ul.sidebar li.active { @@ -298,10 +297,12 @@ ul.sidebar select, ul.sidebar input { } .blue-sidebar { + height: 100%; + border-left: 1px solid @blue; + border-right: 1px solid @blue; + border-bottom: 1px solid @blue; background-color: @lightBlue; color: @baseFontColor; - border: 1px solid @blue; - border-top: none; } .nolayout { diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb index 9cdc6835cd2..a06448d2507 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb @@ -30,5 +30,12 @@