diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-08-08 10:44:41 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-08-14 11:44:44 +0200 |
commit | 6c3d97c42970c63b308ecac90f12b1bb01e8b429 (patch) | |
tree | 2650ca0bf301dd7f5439af4bc010d38602de957f /server/sonar-web/src/main/less | |
parent | d1fc4335bdb4a8ac2fb016f8350245484478f47c (diff) | |
download | sonarqube-6c3d97c42970c63b308ecac90f12b1bb01e8b429.tar.gz sonarqube-6c3d97c42970c63b308ecac90f12b1bb01e8b429.zip |
SONAR-9608 SONAR-9636 Add treemap legend on project measures page
Diffstat (limited to 'server/sonar-web/src/main/less')
-rw-r--r-- | server/sonar-web/src/main/less/components/graphics.less | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/less/components/graphics.less b/server/sonar-web/src/main/less/components/graphics.less index 8df1fcb6b70..619e7a4ebdc 100644 --- a/server/sonar-web/src/main/less/components/graphics.less +++ b/server/sonar-web/src/main/less/components/graphics.less @@ -263,7 +263,11 @@ text-anchor: end; } -.color-ratings-legend { +/* + * Legends + */ + +.color-box-legend { display: flex; justify-content: center; @@ -271,7 +275,7 @@ margin-left: 24px; } - .color-ratings-legend-rect { + .color-box-legend-rect { display: inline-block; vertical-align: top; margin-top: 1px; @@ -279,12 +283,33 @@ border: 1px solid; } - .color-ratings-legend-rect-inner { + .color-box-legend-rect-inner { display: block; width: 8px; height: 8px; opacity: 0.2; } + + &.color-box-full .color-box-legend-rect-inner { + opacity: 1; + } +} + +.gradient-legend-text, +.gradient-legend-na { + text-anchor: middle; + fill: @secondFontColor; + font-size: 10px; +} + +.gradient-legend-text { + &:first-of-type { + text-anchor: start; + } + + &:last-of-type { + text-anchor: end; + } } /* |