Quellcode durchsuchen

More styling.

pull/24/head
Ben Kurtovic vor 10 Jahren
Ursprung
Commit
d549429766
2 geänderte Dateien mit 15 neuen und 5 gelöschten Zeilen
  1. +12
    -2
      static/api.css
  2. +3
    -3
      templates/api.mako

+ 12
- 2
static/api.css Datei anzeigen

@@ -15,10 +15,12 @@ table.parameters {
margin: 1em 0;
}

table.parameters th {
table.parameters td, table.parameters th {
padding: 0.2em 0.5em;
}

table.parameters td {
table.parameters th {
background-color: #F0F0F0;
}

table.parameters tr:first-child {
@@ -29,3 +31,11 @@ table.parameters tr:first-child {
table.parameters td:first-child {
font-family: monospace;
}

table.parameters tr:nth-child(2n + 3) {
background-color: #E0E0E0;
}

table.parameters tr:nth-child(2n + 4) {
background-color: #F0F0F0;
}

+ 3
- 3
templates/api.mako Datei anzeigen

@@ -35,7 +35,7 @@
<tr>
<td>format</td>
<td><span class="code">json</span>, <span class="code">jsonfm</span></td>
<td>No (default: <span class="code">json</span>)</td>
<td>No&nbsp;(default:&nbsp;<span class="code">json</span>)</td>
<td>The default output format is <a href="http://json.org/">JSON</a>. <span class="code">jsonfm</span> mode produces the same output, but renders it as a formatted HTML document for debugging.</td>
</tr>
<tr>
@@ -70,7 +70,7 @@
<tr>
<td>title</td>
<td>string</td>
<td>Yes (either <span class="code">title</span> or <span class="code">oldid</span>)</td>
<td>Yes&nbsp;(either&nbsp;<span class="code">title</span>&nbsp;or&nbsp;<span class="code">oldid</span>)</td>
<td>The title of the page or article to make a comparison against. Namespace must be included if the page isn't in the mainspace.</td>
</tr>
<tr>
@@ -111,7 +111,7 @@
<tr>
<td>title</td>
<td>string</td>
<td>Yes (either <span class="code">title</span> or <span class="code">oldid</span>)</td>
<td>Yes&nbsp;(either&nbsp;<span class="code">title</span>&nbsp;or&nbsp;<span class="code">oldid</span>)</td>
<td>The title of the page or article to make a check against. Namespace must be included if the page isn't in the mainspace.</td>
</tr>
<tr>


Laden…
Abbrechen
Speichern