diff options
author | Grégoire Aubert <gregaubert@users.noreply.github.com> | 2017-03-09 16:38:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 16:38:39 +0100 |
commit | 40ea1006ae443bc90ed5ffe9fcaf1ff425837aa0 (patch) | |
tree | 95204ca38982a9a0a7769b9e604267e60286253f /server/sonar-web/src/main/less/components | |
parent | 221d50c8bd944179a9ab17534816d5ae9578096a (diff) | |
download | sonarqube-40ea1006ae443bc90ed5ffe9fcaf1ff425837aa0.tar.gz sonarqube-40ea1006ae443bc90ed5ffe9fcaf1ff425837aa0.zip |
SONAR-8815 Improve rating facets style (#1764)
Diffstat (limited to 'server/sonar-web/src/main/less/components')
-rw-r--r-- | server/sonar-web/src/main/less/components/search-navigator.less | 77 |
1 files changed, 75 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/less/components/search-navigator.less b/server/sonar-web/src/main/less/components/search-navigator.less index 197bdfef290..08d9a90c69a 100644 --- a/server/sonar-web/src/main/less/components/search-navigator.less +++ b/server/sonar-web/src/main/less/components/search-navigator.less @@ -114,8 +114,8 @@ vertical-align: middle; width: 100%; margin: 0 0 1px 0; - padding: 3px 5px; - border: 1px solid transparent; + padding: 4px 6px; + border: none; border-radius: 2px; box-sizing: border-box; background-color: @barBackgroundColor; @@ -127,6 +127,12 @@ &:hover { border: 1px solid @blue; + padding: 3px 5px; + + .facet-stat { + top: -1px; + right: -1px; + } } .facet-name { @@ -186,6 +192,7 @@ &.active { border: 1px solid @blue; + padding: 3px 5px; background-color: @lightBlue; text-decoration: none; @@ -196,6 +203,8 @@ .facet-stat { border-color: @blue; background-color: @lightBlue; + top: -1px; + right: -1px; &:before { background-image: linear-gradient(to right, fade(@lightBlue, 0%), @lightBlue 75%); @@ -221,6 +230,70 @@ } } +.search-navigator-facet-highlight-under { + margin-bottom: 0; + + &:hover, &.active { + border-bottom: none; + padding-bottom: 4px; + border-radius: 2px 2px 0 0; + + & ~ .search-navigator-facet { + padding-left: 5px; + padding-right: 5px; + border-left: 1px solid @blue; + border-right: 1px solid @blue; + border-radius: 0; + + .facet-stat { + right: -1px; + } + + &:last-of-type { + padding-bottom: 3px; + border-bottom: 1px solid @blue; + border-radius: 0 0 2px 2px; + } + } + + &:last-of-type { + padding-bottom: 3px; + border-bottom: 1px solid @blue; + border-radius: 2px; + } + } + + .selectFacet(@bgColor) { + background-color: @bgColor; + text-decoration: none; + + .facet-name { + background-color: @bgColor; + } + + .facet-stat { + border-color: @blue; + background-color: @bgColor; + + &:before { + background-image: linear-gradient(to right, fade(@bgColor, 0%), @bgColor 75%); + } + } + + .facet-toggle { + display: inline; + } + } + + &.active ~ .search-navigator-facet { + .selectFacet(@lightBlue); + + &:hover, &:hover ~ .search-navigator-facet { + .selectFacet(darken(@lightBlue, 10%)); + } + } +} + .search-navigator-facet-header { display: block; padding: 6px 10px; |