From f28d76906b92be41c31db5ad06b711ae9cafd063 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Wed, 9 Oct 2019 11:42:09 +0200 Subject: [PATCH] SONAR-12519 More consistent colors for mandatory fields asterisk --- .../src/main/js/app/styles/init/forms.css | 2 +- server/sonar-web/src/main/js/app/theme.js | 30 ++++++++++++++----- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/server/sonar-web/src/main/js/app/styles/init/forms.css b/server/sonar-web/src/main/js/app/styles/init/forms.css index 94d5b98d922..9371a097fb2 100644 --- a/server/sonar-web/src/main/js/app/styles/init/forms.css +++ b/server/sonar-web/src/main/js/app/styles/init/forms.css @@ -181,7 +181,7 @@ select { } em.mandatory { - color: #990000; + color: var(--mandatoryFieldColor); font-style: italic; } diff --git a/server/sonar-web/src/main/js/app/theme.js b/server/sonar-web/src/main/js/app/theme.js index a45577553f8..0914dde4bb6 100644 --- a/server/sonar-web/src/main/js/app/theme.js +++ b/server/sonar-web/src/main/js/app/theme.js @@ -29,18 +29,13 @@ module.exports = { darkBlue: '#236a97', veryDarkBlue: '#0E516F', green: '#00aa00', - lineCoverageGreen: '#b4dd78', lightGreen: '#b0d513', veryLightGreen: '#f5f9fc', yellow: '#eabe06', orange: '#ed7d20', red: '#d4333f', - lineCoverageRed: '#a4030f', purple: '#9139d4', - conciseIssueRed: '#d18582', - conciseIssueRedSelected: '#a4030f', - gray94: '#efefef', gray80: '#cdcdcd', gray71: '#b4b4b4', @@ -59,22 +54,33 @@ module.exports = { barBackgroundColorHighlight: '#f8f8f8', barBorderColor: '#e6e6e6', + globalNavBarBg: '#262626', + + // fonts baseFontColor: '#444', secondFontColor: '#777', + // forms + mandatoryFieldColor: '#a4030f', + + // leak leakColor: '#fbf3d5', leakColorHover: '#f0e7c4', leakBorderColor: '#eae3c7', - globalNavBarBg: '#262626', - snippetFontColor: '#f0f0f0', - //issues + // issues issueBgColor: '#f2dede', hotspotBgColor: '#eeeff4', issueLocationSelected: '#f4b1b0', issueLocationHighlighted: '#e1e1f2', + conciseIssueRed: '#d18582', + conciseIssueRedSelected: '#a4030f', + + // codeviewer + lineCoverageRed: '#a4030f', + lineCoverageGreen: '#b4dd78', // alerts warningIconColor: '#e2bf41', @@ -99,6 +105,14 @@ module.exports = { alertTextInfo: '#0e516f', alertIconInfo: '#0271b9', + // alm + azure: '#0078d7', + bitbucket: '#0052CC', + github: '#e1e4e8', + + // code/pre + codeBackground: '#e6e6e6', + // sonarcloud sonarcloudOrange500: '#fd6a00', sonarcloudOrange600: '#e26003', -- 2.39.5