Browse Source

CSS tweaks.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
a73d080625
2 changed files with 12 additions and 3 deletions
  1. +10
    -0
      static/sass/docs.sass
  2. +2
    -3
      templates/docs.html

+ 10
- 0
static/sass/docs.sass View File

@@ -35,6 +35,16 @@ span
color: $baseColor1
font-weight: bold

table.code-example
width: 100% !important

td.linenos
width: 20px
padding-left: 10px

td.code
padding-left: 10px

li#sec3 span#gasp
color: $baseColor2 * 0.8
font-style: italic

+ 2
- 3
templates/docs.html View File

@@ -224,7 +224,7 @@
The following example Python 2 code searches for a given Python
function definition and prints the URL of the first result:
</p>
<table class="highlighttable">
<table class="highlighttable code-example">
<tr>
<td class="linenos">
<div class="linenodiv">
@@ -269,8 +269,7 @@

<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">&quot;__main__&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">argv</span><span class="p">)</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span>
<span class="n">get_function</span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
</pre>
<span class="n">get_function</span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span></pre>
</div>
</td>
</tr>


Loading…
Cancel
Save