1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-25 14:30:46 +02:00

update form shadows and tweak prettyprint styles

This commit is contained in:
Mark Otto
2012-01-07 01:03:26 -08:00
parent bcf1136f2c
commit d6a1402f2a
5 changed files with 29 additions and 16 deletions

View File

@@ -21,10 +21,22 @@ pre.prettyprint {
padding: 8px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
-webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
-moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin: 0 0 0 40px; } /* IE indents via margin-left */
ol.linenums li { color: #bebec5; line-height: 18px; text-shadow: 0 1px 0 #fff; }
ol.linenums {
margin: 0 0 0 33px; /* IE indents via margin-left */
}
ol.linenums li {
padding-left: 7px;
color: #bebec5;
line-height: 18px;
text-shadow: 0 1px 0 #fff;
}
/* Alternate shading for lines */
li.L1, li.L3, li.L5, li.L7, li.L9 { }
li.L1, li.L3, li.L5, li.L7, li.L9 {
}

View File

@@ -1009,8 +1009,9 @@
<hr>
<h3>Form validation</h3>
<p>It also includes validation styles for errors, warnings, and success. To use, add the a class to the surrounding <code>.control-group</code>.</p>
<pre class="prettyprint">
&lt;fieldset class="control-group error"&gt;
<pre class="prettyprint linenums">
&lt;fieldset
class="control-group error"&gt;
...
&lt;/fieldset&gt;
</pre>