mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 02:24:19 +02:00
updated docs, fixed language, added copy-code js for selecting text on focus
This commit is contained in:
@@ -89,7 +89,7 @@ div.quickstart div.row {
|
||||
}
|
||||
div.quickstart div.columns {
|
||||
width: 285px;
|
||||
height: 100px;
|
||||
height: 117px;
|
||||
margin-left: 0;
|
||||
padding: 17px 20px 26px;
|
||||
border-left: 1px solid #eee;
|
||||
@@ -114,15 +114,11 @@ div.quickstart h6 {
|
||||
div.quickstart form textarea {
|
||||
display: block;
|
||||
width: 275px;
|
||||
height: 21px;
|
||||
height: auto;
|
||||
margin: 0 0 9px;
|
||||
line-height: 21px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
border-color: #ddd;
|
||||
-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
|
||||
-moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
|
||||
box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
|
||||
}
|
||||
#footer {
|
||||
margin-top: 80px;
|
||||
|
@@ -35,6 +35,15 @@ $(document).ready(function(){
|
||||
});
|
||||
|
||||
|
||||
// Copy code blocks in docs
|
||||
$(".copy-code").focus(function() {
|
||||
$(this).select();
|
||||
});
|
||||
$(".copy-code").mouseup(function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
|
||||
// scroll spyer
|
||||
var activeTarget,
|
||||
$window = $(window),
|
||||
|
@@ -42,27 +42,12 @@
|
||||
<div id="masthead">
|
||||
<div class="inner">
|
||||
<div class="container">
|
||||
<!--
|
||||
<div class="row">
|
||||
<div class="span11 columns">
|
||||
-->
|
||||
<h1>Twitter Bootstrap</h1>
|
||||
<p class="lead">
|
||||
Bootstrap is a toolkit from Twitter designed to kickstart development of websites and apps.<br />
|
||||
It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.<br />
|
||||
</p>
|
||||
<p><strong>Nerd alert:</strong> Bootstrap is <a href="#less" title="Read about using Bootstrap with LESS">built with LESS</a> and was designed to work out of the gate with only modern browsers in mind.</p>
|
||||
<!--
|
||||
</div>
|
||||
<div class="span5 columns">
|
||||
<a href="" class="btn large primary">Download Bootstrap ZIP »</a>
|
||||
<small>
|
||||
<a href="">Visit project page on Github »</a><br />
|
||||
(Current version: 1.0.0)
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<h1>Twitter Bootstrap</h1>
|
||||
<p class="lead">
|
||||
Bootstrap is a toolkit from Twitter designed to kickstart development of websites and apps.<br />
|
||||
It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.<br />
|
||||
</p>
|
||||
<p><strong>Nerd alert:</strong> Bootstrap is <a href="#less" title="Read about using Bootstrap with LESS">built with LESS</a> and was designed to work out of the gate with only modern browsers in mind.</p>
|
||||
</div> <!-- /container -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -74,15 +59,15 @@
|
||||
<h6>Hotlink the CSS</h6>
|
||||
<p>For the quickest and easiest start, just copy this snippet into your webpage.</p>
|
||||
<form>
|
||||
<textarea><link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css</textarea>
|
||||
<textarea class="copy-code" rows="1"><link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css</textarea>
|
||||
</form>
|
||||
</div>
|
||||
<div class="span5 columns">
|
||||
<h6>Use it with LESS</h6>
|
||||
<p>A fan of using LESS.js? No problem, just clone the repo and add these lines:</p>
|
||||
<form>
|
||||
<textarea><link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css
|
||||
<link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css</textarea>
|
||||
<textarea class="copy-code" rows="2"><link rel="stylesheet/less" type="text/css" href="http://twitter.github.com/bootstrap.less>
|
||||
<script src="less.js"></script></textarea>
|
||||
</form>
|
||||
</div>
|
||||
<div class="span5 columns">
|
||||
|
Reference in New Issue
Block a user