base-css.mustache 51.74 KiB
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
  <h1>{{_i}}Base CSS{{/i}}</h1>
  <p class="lead">{{_i}}On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.{{/i}}</p>
  <div class="subnav">
    <ul class="nav pills">
      <li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
      <li><a href="#tables">{{_i}}Tables{{/i}}</a></li>
      <li><a href="#forms">{{_i}}Forms{{/i}}</a></li>
      <li><a href="#buttons">{{_i}}Buttons{{/i}}</a></li>
      <li><a href="#icons">{{_i}}Icons by Glyphicons{{/i}}</a></li>
    </ul>
  </div>
</header>
<!-- Typography
================================================== -->
<section id="typography">
  <div class="page-header">
    <h1>{{_i}}Typography <small>Headings, paragraphs, lists, and other inline type elements</small>{{/i}}</h1>
  </div>
  <h2>{{_i}}Headings &amp; body copy{{/i}}</h2>
  <!-- Headings & Paragraph Copy -->
  <div class="row">
    <div class="span4">
      <h3>{{_i}}Typographic scale{{/i}}</h3>
      <p>{{_i}}The entire typographic grid is based on two Less variables in our preboot.less file: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height.{{/i}}</p>
      <p>{{_i}}We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.{{/i}}</p>
    </div>
    <div class="span4">
      <h3>{{_i}}Example body text{{/i}}</h3>
      <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
      <p>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui.</p>
    </div>
    <div class="span4">
      <div class="well">
        <h1>h1. {{_i}}Heading 1{{/i}}</h1>
        <h2>h2. {{_i}}Heading 2{{/i}}</h2>
        <h3>h3. {{_i}}Heading 3{{/i}}</h3>
        <h4>h4. {{_i}}Heading 4{{/i}}</h4>
        <h5>h5. {{_i}}Heading 5{{/i}}</h5>
        <h6>h6. {{_i}}Heading 6{{/i}}</h6>
      </div>
    </div>
  </div>
  <!-- Misc Elements -->
  <h2>{{_i}}Emphasis, address, and abbreviation{{/i}}</h2>
  <table class="table table-bordered table-striped">
    <thead>
      <tr>
        <th>{{_i}}Element{{/i}}</th>
        <th>{{_i}}Usage{{/i}}</th>
        <th>{{_i}}Optional{{/i}}</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>
          <code>&lt;strong&gt;</code>
        </td>
        <td>
          {{_i}}For emphasizing a snippet of text with <strong>important</strong>{{/i}}
        </td>
        <td>
          <span class="muted">{{_i}}None{{/i}}</span>
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
</td> </tr> <tr> <td> <code>&lt;em&gt;</code> </td> <td> {{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}} </td> <td> <span class="muted">{{_i}}None{{/i}}</span> </td> </tr> <tr> <td> <code>&lt;abbr&gt;</code> </td> <td> {{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}} </td> <td> {{_i}}Include optional <code>title</code> for expanded text{{/i}} </td> </tr> <tr> <td> <code>&lt;address&gt;</code> </td> <td> {{_i}}For contact information for its nearest ancestor or the entire body of work{{/i}} </td> <td> {{_i}}Preserve formatting by ending all lines with <code>&lt;br&gt;</code>{{/i}} </td> </tr> </tbody> </table> <div class="row"> <div class="span4"> <h3>{{_i}}Using emphasis{{/i}}</h3> <p><a href="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p> <p>{{_i}}<strong>Note:</strong> Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5, but their usage has changed a bit. <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.{{/i}}</p> </div> <div class="span4"> <h3>{{_i}}Example addresses{{/i}}</h3> <p>{{_i}}Here are two examples of how the <code>&lt;address&gt;</code> tag can be used:{{/i}}</p> <address> <strong>Twitter, Inc.</strong><br> 795 Folsom Ave, Suite 600<br> San Francisco, CA 94107<br> <abbr title="Phone">P:</abbr> (123) 456-7890 </address> <address> <strong>{{_i}}Full Name{{/i}}</strong><br> <a href="mailto:#">{{_i}}first.last@gmail.com{{/i}}</a> </address> </div> <div class="span4"> <h3>{{_i}}Example abbreviations{{/i}}</h3> <p>{{_i}}Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.{{/i}}</p> <p>{{_i}}<abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.{{/i}}</p> <p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p> </div> </div> <!-- Blockquotes --> <h2>{{_i}}Blockquotes{{/i}}</h2> <table class="table table-bordered table-striped">