]> source.dussan.org Git - sonarqube.git/commitdiff
Make dropdown arrows clickable
authorStas Vilchik <vilchiks@gmail.com>
Mon, 7 Apr 2014 11:25:26 +0000 (17:25 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 7 Apr 2014 11:25:26 +0000 (17:25 +0600)
sonar-server/src/main/less/layout.less
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_user.html.erb

index 0e1378104c7339e9ee9d1f5c46a8042c5e088275..0accd3340819efd700916e9062db5bac70f0955e 100644 (file)
@@ -64,14 +64,13 @@ body, a {
 #hd a {
   color: #FFF;
   text-decoration: none;
-}
-
-#hd a.selected {
-  color: #4B9FD5;
-}
 
-#hd a:focus, #hd a:hover {
-  text-decoration: underline;
+  &:focus, &:hover { text-decoration: underline; }
+  &.selected { color: #4B9FD5; }
+  &.with-icon:hover {
+    text-decoration: none;
+    span { text-decoration: underline; }
+  }
 }
 
 #nav-left {
index 4ca9adece89382f4043349ceece33e7d904f8ef2..b5ba999b004fa2b3c908f783bed661112ef2d222 100644 (file)
@@ -5,8 +5,10 @@
 </script>
 
 <li>
-  <a href="#" onclick="if (sonarRecentHistory) { sonarRecentHistory.populateRecentHistoryPanel(); }; showDropdownMenu('projects-menu'); return false;"><%= message('layout.projects') -%></a>
-  <i class="icon-dropdown"></i>
+  <a href="#" class="with-icon" onclick="if (sonarRecentHistory) { sonarRecentHistory.populateRecentHistoryPanel(); }; showDropdownMenu('projects-menu'); return false;">
+    <span><%= message('layout.projects') -%></span>
+    <i class="icon-dropdown"></i>
+  </a>
 
   <div id="projects-menu" class="dropdown-menu" style="max-width: none; display: none;">
     <div id="recent-history" style="border-bottom: 1px solid #ccc; padding-bottom: 10px;">
index 8241758dc2fcafadaf60784f2a538d21f1ba581c..76ce2320193c25c291dd4910affd4200ea3d049a 100644 (file)
@@ -1,6 +1,9 @@
 <li>
-  <a href="#" onclick="showDropdownMenu('user-panel'); return false;"><%= h current_user.name -%></a>
-  <i class="icon-dropdown"></i>
+  <a href="#" class="with-icon" onclick="showDropdownMenu('user-panel'); return false;">
+    <span><%= h current_user.name -%></span>
+    <i class="icon-dropdown"></i>
+  </a>
+
   
   <div id="user-panel" class="dropdown-menu" style="display: none">
     <ul>