aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-07-01 16:51:59 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-07-01 16:52:08 +0600
commitad00ab5176e0f8fc112ed022603c9ceb5d1f6579 (patch)
treed03ab5209e2406de50b820c26a39f6608c588940 /sonar-server
parent85445db60e417c23237e38715256449839efbb4b (diff)
downloadsonarqube-ad00ab5176e0f8fc112ed022603c9ceb5d1f6579.tar.gz
sonarqube-ad00ab5176e0f8fc112ed022603c9ceb5d1f6579.zip
SONAR-5209 Increase saturation of code color palette
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/less/component-viewer-source-colorizer.less10
-rw-r--r--sonar-server/src/main/less/component-viewer.less7
-rw-r--r--sonar-server/src/main/webapp/fonts/sourcecodepro-semibold.woffbin0 -> 16120 bytes
3 files changed, 12 insertions, 5 deletions
diff --git a/sonar-server/src/main/less/component-viewer-source-colorizer.less b/sonar-server/src/main/less/component-viewer-source-colorizer.less
index 9a6858dc035..4b23fbbc88c 100644
--- a/sonar-server/src/main/less/component-viewer-source-colorizer.less
+++ b/sonar-server/src/main/less/component-viewer-source-colorizer.less
@@ -21,13 +21,13 @@
/* keyword */
.code .k {
- color: @darkBlue;
- font-weight: normal;
+ color: saturate(@darkBlue, 50%);
+ font-weight: 600;
}
/* string */
.code .s {
- color: darken(@red, 10%);
+ color: saturate(@red, 0%);
font-weight: normal;
}
@@ -37,7 +37,7 @@
}
.sym {
- color: darken(@green, 10%);
+ color: darken(saturate(@green, 10%), 15%);
}
-} \ No newline at end of file
+}
diff --git a/sonar-server/src/main/less/component-viewer.less b/sonar-server/src/main/less/component-viewer.less
index 40f8274c075..8127a4c6de8 100644
--- a/sonar-server/src/main/less/component-viewer.less
+++ b/sonar-server/src/main/less/component-viewer.less
@@ -732,3 +732,10 @@
font-weight: normal;
font-style: normal;
}
+
+@font-face {
+ font-family: 'Source Code Pro';
+ src: url('../fonts/sourcecodepro-semibold.woff') format('woff');
+ font-weight: 600;
+ font-style: normal;
+}
diff --git a/sonar-server/src/main/webapp/fonts/sourcecodepro-semibold.woff b/sonar-server/src/main/webapp/fonts/sourcecodepro-semibold.woff
new file mode 100644
index 00000000000..2a99bab755b
--- /dev/null
+++ b/sonar-server/src/main/webapp/fonts/sourcecodepro-semibold.woff
Binary files differ