]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5498 Make all links consistent
authorStas Vilchik <vilchiks@gmail.com>
Fri, 8 Aug 2014 06:16:32 +0000 (12:16 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 8 Aug 2014 06:16:32 +0000 (12:16 +0600)
server/sonar-web/src/main/less/component-viewer.less
server/sonar-web/src/main/less/dashboard.less
server/sonar-web/src/main/less/layout.less
server/sonar-web/src/main/less/navigator/config.less
server/sonar-web/src/main/less/select-list.less
server/sonar-web/src/main/less/style.less
server/sonar-web/src/main/less/ui.less
server/sonar-web/src/main/webapp/WEB-INF/app/views/components/index.html.erb

index b1268b39243c9696be628a47fd6183a0bab20df8..58ee62b571de28ce73130c2ffe2b2d7a06b30cf6 100644 (file)
 
 .component-viewer-header-time-changes {
   padding: 10px;
-
-  & > a { .link-no-underline; }
 }
 
 .component-viewer-header-sqale-rating {
index 65987d2f5ec258ace11fdf46fee53486d7b8eb41..27fee9ba006d8db36574644ee251474f297f5228 100644 (file)
 }
 
 #dashboard .widget_props {
-  background-color: #FFF6BF;
-  border: 1px solid #FFD324;
-  margin-bottom: 10px;
+  background-color: #FFFBE2;
+  border: 1px solid #FCE174;
+  margin: 5px;
   padding: 5px;
-  border-radius: 0 0 3px 3px;
-  -moz-border-radius: 0 0 3px 3px;
-  -webkit-border-radius: 0 0 3px 3px;
 }
 
 #dashboard .widget-title {
   font-size: 14px;
   font-weight: 400;
   text-transform: uppercase;
-}
 
-#dashboard .widget-title a {
-  .link-no-underline;
+  a { .link-no-underline; }
 }
 
 /*CONFIGURATION*/
 }
 
 #dashboard #widget_defs, #dashboard #edit-layout {
-  background-color: #FFF6BF;
-  border: 2px solid #FFD324;
-  padding: 3px;
-  border-radius: 3px;
-  -moz-border-radius: 3px;
-  -webkit-border-radius: 3px;
+  background-color: #FFFBE2;
+  border: 1px solid #FCE174;
+  padding: 5px;
   overflow-x: hidden;
 }
 
 #dashboard .widget_def {
   display: inline-block;
   vertical-align: top;
-  border: 1px solid #FFD324;
+  border: 1px solid #FCE174;
   padding: 5px;
-  margin: 3px;
+  margin: 5px;
   white-space: normal;
   width: 250px;
   min-height: 100px;
 
 #dashboard .widget-header {
   line-height: 16px;
-  padding: 3px 5px;
+  padding: 3px 5px 5px;
   background-color: #efefef;
   border: 1px solid #ddd;
   border-bottom: 0;
 
 #dashboard .widget-actions {
   float: right;
-  overflow: hidden; /* clears float for most browsers */
-  zoom: 1;
 }
 
 #dashboard .widget-actions a {
index 75579aa28af83797f078061a6e13625f839e5949..fa1c19ab380c8d7358dbde06a4668ef095b29e85 100644 (file)
@@ -73,7 +73,7 @@ body, a {
   color: #fff;
   .link-no-underline;
 
-  &.selected { color: @blue; }
+  &.selected, &:hover, &:focus { color: @blue; }
 }
 
 #nav-left {
index 55da018b1de98c370a3b8dbe005f304081874589..a973cbdebb8d95bf61a70ae55bc7aa0dbd5aba4a 100644 (file)
@@ -22,7 +22,7 @@
 @navigatorBorderColor: @barBorderColor;
 @navigatorBorderLightColor: @barBorderColor;
 
-@navigatorHeaderColor: darken(@blue, 10%);
+@navigatorHeaderColor: @baseFontColor;
 
 @navigatorFacetStatColor: @secondFontColor;
 @navigatorFacetInactiveBackground: lighten(@barBackgroundColor, 4%);
index 90f9d64f5944f9029dfff11dbc8fe59ac30bbd72..d608d665000d4f628a4d038f7d42e60069c7291a 100644 (file)
@@ -1,3 +1,6 @@
+@import (reference) 'variables';
+@import (reference) 'mixins';
+
 .select-list-container {
   min-width: 500px;
   -moz-box-sizing: border-box;
   width: 110px;
   height: 27px;
   line-height: 25px;
-  box-sizing: border-box;
-  -moz-box-sizing: border-box;
+  .box-sizing(border-box);
   border: 1px solid #bfbfbf;
+  color: @baseFontColor;
   text-align: center;
   cursor: pointer;
   transition: background-color 0.2s ease;
 
 .select-list-control-button:hover {
   background-color: #f6f6f6;
+  color: @baseFontColor;
 }
 
 .select-list-control-button:active,
 .select-list-control-button.active {
   z-index: 2;
   background-color: #efefef;
+  color: @baseFontColor;
 }
 
 .select-list-control-button + .select-list-control-button {
index db1329484a05189537df90ca9d495e133fd65a83..edccb7b69f9939a1377643ca64b1669d7079dbd2 100644 (file)
@@ -210,34 +210,24 @@ a.external {
 
 /* ------------------- PAGE ------------------- */
 h1, .h1 {
-  color: #444;
+  color: @baseFontColor;
   font-size: 16px;
 }
 
-h1 a {
-  color: #444;
-  text-decoration: none;
-  border-bottom: 1px dotted #2B547D;
-}
-
 h2, .h2 {
-  color: #2B547D;
+  color: @baseFontColor;
   font-size: 16px;
   font-weight: normal;
 }
 
-h2 a {
-  color: #2B547D;
-  text-decoration: none;
-  border-bottom: 1px dotted #2B547D;
-}
-
 h3, .h3 {
+  color: @baseFontColor;
   font-size: 100%;
   font-weight: bold;
 }
 
 h4, .h4 {
+  color: @baseFontColor;
   font-size: 85%;
   color: #777;
 }
@@ -340,6 +330,10 @@ h1 img, .h1 img, h2 img, .h2 img, h3 img, .h3 img, h4 img, .h4 img {
   padding: 3px 0 10px;
 }
 
+#login_form a {
+  border-bottom-color: @blue;
+}
+
 #login_form .desc {
   font-size: 85%;
   font-weight: normal;
@@ -813,6 +807,7 @@ th.operations, td.operations {
   margin: 0;
   font-size: 12px;
   padding: 0 0 10px 0;
+  .trans(border-color);
 
   .error {
     line-height: normal;
index 374bb140db215b7896c67ab7e306d294a6b4a761..a2e1b2f161dad8a6b471935df54f7a0d89f4dd7a 100644 (file)
@@ -139,7 +139,7 @@ select::-moz-focus-inner, input::-moz-focus-inner, button::-moz-focus-inner {
   }
 }
 
-.link-no-underline() {
+.link-no-underline {
   border-bottom: none;
 }
 
index f24a454aa4629235c4e78adec68a3148c568eefc..20683976b1f6dcf5af8cf53376a747a278b4a6e9 100644 (file)
@@ -45,7 +45,7 @@
                     <%= link_to_favourite(project) -%>
                   <% end %>
                   <% if snapshot.display_dashboard? %>
-                    <%= link_to image_tag('zoom.png'), {:controller => 'dashboard', :id => snapshot.project.id} %>
+                    <%= link_to image_tag('zoom.png'), {:controller => 'dashboard', :id => snapshot.project.id}, :class => 'link-no-underline' %>
                   <% else %>
                     <%= link_to_resource(project, '<i class="icon-detach"></i>') %>
                   <% end %>