aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-05 17:33:49 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-05 17:33:55 +0200
commit92b2757f6fadeef2a288bc20f2bd2a9feb52ec52 (patch)
tree95823082eda04d70ae94ed523eaf92ac01dfd777
parent517b93aed563b5f3c68c06c70c9feeefba0bb07d (diff)
downloadsonarqube-92b2757f6fadeef2a288bc20f2bd2a9feb52ec52.tar.gz
sonarqube-92b2757f6fadeef2a288bc20f2bd2a9feb52ec52.zip
SONAR-5250 Fix display of ul/li in API descriptions
-rw-r--r--sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs2
-rw-r--r--sonar-server/src/main/less/api-documentation.less10
2 files changed, 10 insertions, 2 deletions
diff --git a/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs b/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs
index dba6f1b05d9..0fa9d3d0f3f 100644
--- a/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs
+++ b/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs
@@ -21,7 +21,7 @@
{{#if possibleValues}}
<p>
<em>Possible values:</em>
- <ul>
+ <ul class="possible-values">
{{#each possibleValues}}
<li><code>{{this}}</code></li>
{{/each}}
diff --git a/sonar-server/src/main/less/api-documentation.less b/sonar-server/src/main/less/api-documentation.less
index 9c42d26a0d7..8ca4c3b4747 100644
--- a/sonar-server/src/main/less/api-documentation.less
+++ b/sonar-server/src/main/less/api-documentation.less
@@ -96,11 +96,19 @@
margin: 5px;
vertical-align: top;
- ul {
+ ul {
+ li {
+ list-style: square;
+ margin-left: 2em;
+ }
+ }
+
+ ul.possible-values {
display: inline;
li {
display: inline;
+ margin: 0;
&:before {
content: ', '