mirror of https://github.com/twbs/bootstrap.git
scope th bottom vertical-align to only thead, update code styles to include more comments in less file and scrollable option for pre tag
This commit is contained in:
parent
c10661cf5d
commit
d7aefe67e3
Binary file not shown.
|
@ -374,8 +374,7 @@ ol {
|
||||||
li {
|
li {
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
}
|
}
|
||||||
ul.unstyled,
|
ul.unstyled, ol.unstyled {
|
||||||
ol.unstyled {
|
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
@ -499,6 +498,10 @@ pre code {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
.pre-scrollable {
|
||||||
|
max-height: 340px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
form {
|
form {
|
||||||
margin: 0 0 18px;
|
margin: 0 0 18px;
|
||||||
}
|
}
|
||||||
|
@ -1004,14 +1007,14 @@ table {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
.table th {
|
.table th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
vertical-align: bottom;
|
|
||||||
}
|
}
|
||||||
.table td {
|
.table thead th {
|
||||||
vertical-align: top;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
.table thead:first-child tr th, .table thead:first-child tr td {
|
.table thead:first-child tr th, .table thead:first-child tr td {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
|
|
|
@ -481,9 +481,6 @@ hr.soften {
|
||||||
/* Misc
|
/* Misc
|
||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
|
|
||||||
pre.prettyprint {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.browser-support {
|
.browser-support {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
|
@ -385,6 +385,7 @@ For example, <code>section</code> should be wrapped as inline.
|
||||||
</pre>
|
</pre>
|
||||||
</pre>
|
</pre>
|
||||||
<p><strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.</p>
|
<p><strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.</p>
|
||||||
|
<p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p>
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>Google Prettify</h2>
|
<h2>Google Prettify</h2>
|
||||||
|
|
|
@ -309,6 +309,7 @@
|
||||||
</pre>
|
</pre>
|
||||||
</pre>
|
</pre>
|
||||||
<p>{{_i}}<strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.{{/i}}</p>
|
<p>{{_i}}<strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.{{/i}}</p>
|
||||||
|
<p>{{_i}}You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.{{/i}}</p>
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>Google Prettify</h2>
|
<h2>Google Prettify</h2>
|
||||||
|
|
|
@ -248,6 +248,13 @@
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>Heads up!</strong> We're rewritten just about everything for our plugins, so head on over to <a href="./javascript.html">the Javascript page</a> to learn more.
|
<strong>Heads up!</strong> We're rewritten just about everything for our plugins, so head on over to <a href="./javascript.html">the Javascript page</a> to learn more.
|
||||||
</div>
|
</div>
|
||||||
|
<h3>Tooltips</h3>
|
||||||
|
<ul>
|
||||||
|
<li>The plugin method has been renamed from <code>twipsy()</code> to <code>tooltip()</code>, and the class name changed from <code>twipsy</code> to <code>tooltip</code>.</li>
|
||||||
|
<li>The <code>placement</code> option value that was <code>below</code> is now <code>bottom</code>, and <code>above</code> is now <code>top</code>.</li>
|
||||||
|
<li>The <code>animate</code> option was renamed to <code>animation</code>.</li>
|
||||||
|
<li>The <code>html</code> option was removed, as the tooltips default to allowing HTML now.</li>
|
||||||
|
</ul>
|
||||||
<h3>Popovers</h3>
|
<h3>Popovers</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Child elements now properly namespaced: <code>.title</code> to <code>.popover-title</code>, <code>.inner</code> to <code>.popover-inner</code>, and <code>.content</code> to <code>.popover-content</code>.</li>
|
<li>Child elements now properly namespaced: <code>.title</code> to <code>.popover-title</code>, <code>.inner</code> to <code>.popover-inner</code>, and <code>.content</code> to <code>.popover-content</code>.</li>
|
||||||
|
|
|
@ -11,12 +11,16 @@ pre {
|
||||||
color: @grayDark;
|
color: @grayDark;
|
||||||
.border-radius(3px);
|
.border-radius(3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Inline code
|
||||||
code {
|
code {
|
||||||
padding: 3px 4px;
|
padding: 3px 4px;
|
||||||
color: #d14;
|
color: #d14;
|
||||||
background-color: #f7f7f9;
|
background-color: #f7f7f9;
|
||||||
border: 1px solid #e1e1e8;
|
border: 1px solid #e1e1e8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Blocks of code
|
||||||
pre {
|
pre {
|
||||||
display: block;
|
display: block;
|
||||||
padding: (@baseLineHeight - 1) / 2;
|
padding: (@baseLineHeight - 1) / 2;
|
||||||
|
@ -44,3 +48,9 @@ pre {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable scrollable blocks of code
|
||||||
|
.pre-scrollable {
|
||||||
|
max-height: 340px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
|
@ -25,14 +25,15 @@ table {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
vertical-align: bottom;
|
|
||||||
}
|
}
|
||||||
td {
|
// Bottom align for column headings
|
||||||
vertical-align: top;
|
thead th {
|
||||||
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
// Remove top border from thead by default
|
// Remove top border from thead by default
|
||||||
thead:first-child tr th,
|
thead:first-child tr th,
|
||||||
|
|
Loading…
Reference in New Issue