Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getting-started.mustache « pages « templates « docs - github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5e1407436c22538c87dadddffdaaf8e74eae7ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
  <h1>{{_i}}Getting started{{/i}}</h1>
  <p class="lead">{{_i}}Overview of the project, it's contents, and how to get started with a simple template.{{/i}}</p>
</header>

<div class="row">
  <div class="span3 bs-docs-sidebar">
    <ul class="nav nav-list bs-docs-sidenav">
      <li><a href="#prerequisites">{{_i}}Prerequisites{{/i}} <i class="icon-chevron-right"></i></a></li>
      <li><a href="#file-structure">{{_i}}File structure{{/i}} <i class="icon-chevron-right"></i></a></li>
      <li><a href="#contents">{{_i}}What's included{{/i}} <i class="icon-chevron-right"></i></a></li>
      <li><a href="#html-template">{{_i}}HTML template{{/i}} <i class="icon-chevron-right"></i></a></li>
    </ul>
  </div>
  <div class="span9">


    <section id="prerequisites">
      <div class="page-header">
        <h1>{{_i}}Prerequisites{{/i}}</h1>
      </div>
      <p>{{_i}}Before getting started, you need the following:{{/i}}</p>
      <ul>
        <li>{{_i}}An unzipped copy of the <a href="https://github.com/twitter/bootstrap/zipball/master">latest version of Bootstrap</a> (which includes all CSS, JavaScript, and images).{{/i}}</li>
        <li>{{_i}}An editor of your choice for writing code (I recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>).{{/i}}</li>
        <li>{{_i}}Some working knowledge of HTML and CSS.{{/i}}</li>
      </ul>
      <p>{{_i}}When ready, proceed to the next section, <a href="#file-structure">File structure</a>.{{/i}}</p>
    </section>



    <section id="file-structure">
      <div class="page-header">
        <h1>{{_i}}File structure{{/i}}</h1>
      </div>
      <p>{{_i}}Once unzipped, the structure of Bootstrap&rsquo;s files looks like this:{{/i}}</p>
      <ul>
        <li>bootstrap/
          <ul>
            <li>css/
              <ul>
                <li>bootstrap.css</li>
                <li>bootstrap.min.css</li>
              </ul>
            </li>
            <li>js/
              <ul>
                <li>bootstrap.js</li>
                <li>bootstrap.min.js</li>
              </ul>
            </li>
            <li>img/
              <ul>
                <li>glyphicons-halflings.png</li>
                <li>glyphicons-halflings-white.png</li>
              </ul>
            </li>
            <li>README.md</li>
          </ul>
        </li>
      </ul>
      <p>{{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.{{/i}}</p>
    </section>



    <section id="contents">
      <div class="page-header">
        <h1>{{_i}}What's included{{/i}}</h1>
      </div>
      <p>{{_i}}Bootstrap comes equipped with CSS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>:{{/i}}</p>
      <ul>
        <li><strong><a href="http://twitter.github.com/bootstrap/scaffolding.html">Scaffolding:</a></strong> Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.</li>
        <li><strong><a href="http://twitter.github.com/bootstrap/base-css.html">Base CSS:</a></strong> Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.</li>
        <li><strong><a href="http://twitter.github.com/bootstrap/components.html">Components:</a></strong> Basic styles for common interface components like tabs and pills, navbar, page headers, and more.</li>
        <li><strong><a href="http://twitter.github.com/bootstrap/javascript.html">Javascript plugins:</a></strong> Similar to the Components section, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.</li>
      </ul>
      <p>Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:</p>
      <ul>
        <li>Button groups</li>
        <li>Button dropdowns</li>
        <li>Navigational tabs, pills, and lists</li>
        <li>Navbar</li>
        <li>Labels</li>
        <li>Badges</li>
        <li>Page headers and hero unit</li>
        <li>Thumbnails</li>
        <li>Alerts</li>
        <li>Progress bars</li>
        <li>Modals</li>
        <li>Dropdowns</li>
        <li>Tooltips</li>
        <li>Popovers</li>
        <li>Accordion</li>
        <li>Carousel</li>
        <li>Typeahead</li>
      </ul>
      <p>{{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}</p>
    </section>



    <section id="html-template">
      <div class="page-header">
        <h1>{{_i}}Basic HTML template{{/i}}</h1>
      </div>
      <p>{{_i}}Now that we&rsquo;ve got the basic information on Bootstrap out of the way, we can focus on getting started. To do that, we&rsquo;ll utilize a basic HTML template that includes everything we&rsquo;ve mentioned in the <a href="#file-structure">File structure</a>.{{/i}}</p>
      <p>{{_i}}As previously mentioned, we won&rsquo;t cover the basics of writing HTML and CSS here. Instead, we&rsquo;ll leapfrog through various points in web development complexity to give you the broadest and most complete overview.{{/i}}</p>
      <p>{{_i}}Now, here&rsquo;s a look at a <strong>typical HTML file</strong>:{{/i}}</p>
  <pre class="prettyprint linenums">
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Hello, world!&lt;/h1&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </pre>
      <p>{{_i}}To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:{{/i}}</p>
  <pre class="prettyprint linenums">
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
      &lt;!-- Bootstrap --&gt;
      &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
      &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Hello, world!&lt;/h1&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </pre>
      <p>{{_i}}And you&rsquo;re set. With those two files added, you can begin to write Bootstrap-friendly HTML, CSS, and JS to build any site or application you like. Head to the Bootstrap docs for information, examples, and even code snippets for the Bootstrap grid system, base HTML styles, components, and even responsive features.{{/i}}</p>
    </section>



  </div>
</div>