diff --git a/index.html b/index.html index c62f7e86aa..6274b8c314 100644 --- a/index.html +++ b/index.html @@ -55,6 +55,9 @@
Baseline is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.
+Baseline is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.
Use this option if you want all the styles of Baseline, but none of the extra power of LESS.
-<link type="text/css" href="css/Baseline.css" media="all" />+
<link type="text/css" href="css/baseline.css" media="all" />
Use this option to make full use of Baseline's LESS variables, mixins, and nesting in CSS.
-<link rel="stylesheet/less" type="text/css" href="less/Baseline.less" media="all" /> +<link rel="stylesheet/less" type="text/css" href="less/baseline.less" media="all" /> <script type="text/javascript" src="js/less-1.0.41.min.js"></script>
Bootstrap is a super awesome pack of mixins and variables to be used in conjunction with LESS, a CSS preprocessor for faster and easier web development.
+Bootstrap is a super awesome pack of mixins and variables to be used in conjunction with LESS, a CSS preprocessor for faster and easier web development, that we used to build Baseline.
Here's a rundown of what's included in Twitter Baseline as part of Bootstrap. Head over to the Bootstrap website or Github project page to download and learn more.
+Here are some of the highlights of what's included in Twitter Baseline as part of Bootstrap. Head over to the Bootstrap website or Github project page to download and learn more.
Variables in LESS are perfect for maintaining and updating your CSS. When you want to change a color value, update it in one spot and you're set.
+Variables in LESS are perfect for maintaining and updating your CSS headache free. When you want to change a color value or a frequently used value, update it in one spot and you're set.
// Links @link-color: #0069d6; @@ -145,15 +148,20 @@ @orange: #f89406; @pink: #c3325f; @purple: #7a43b6; + +// Baseline +@baseline: 20px;-
LESS also provides another style of commenting in addition to CSS's normal /* ... */
syntax.
// This is a comment -/* No, this is a comment */ +/* This is also a comment */
Mixins are basically includes or partials for CSS, allowing you to combine a block of code into one. They're great for vendor prefixed properties like box-shadow
, cross-browser gradients, font stacks, and more. Below is a sample of the mixins that are included with Bootstrap in Baseline.
// Font Stacks .font(@weight: normal, @size: 14px, @lineheight: 20px) { @@ -202,8 +210,10 @@ }-
Get fancy and perform some match to generate flexible and powerful mixins like the one below.
+// Roll your own grid system @grid_columns: 16; @grid_column_width: 40px; @grid_gutter_width: 20px; @@ -224,26 +234,26 @@ -+ -Customizable Grid System Rock the standard 940px or roll your own
+Grid system Rock the standard 940px or roll your own
-Default Grid
+Default grid
The default grid system provided as part of Baseline is a 940px wide 16-column grid. It's a flavor of the popular 960 grid system, but without the additional margin/padding on the left and right sides.
-@@ -322,8 +332,24 @@ -Example grid markup
-As shown here, a basic layout can be created with two "columns," each spanning a number of the 16 foundational columns we defined as part of our grid system. See the examples below for more variations.
+Example grid markup
+As shown here, a basic layout can be created with two "columns," each spanning a number of the 16 foundational columns we defined as part of our grid system. See the examples below for more variations.
<div class="row"> -<div class="span6 columns"> -... -</div> -<div class="span10 columns"> -... -</div> + <div class="span6 columns"> + ... + </div> + <div class="span10 columns"> + ... + </div> </div>- ++ + + + +++Layouts Basic templates to create webpages
++++ +++ +++ @@ -440,7 +466,7 @@Typography Headings, paragraphs, lists, and other inline type elements
-Ordered lists
+<ol>
Ordered
<ol>
- Jeremy Bixby
- Robert Dezure
@@ -461,7 +487,7 @@-Description lists
+dl
Description
dl
- Description lists
- A description list is perfect for defining terms.
@@ -477,8 +503,8 @@ -- ++ @@ -629,7 +655,7 @@ -Tables For, you guessed it, tabular data
+ - -Forms and buttons
++Forms
+-All forms are given default styles to present them in a readable and scalable way.
+Default styles
+All forms are given default styles to present them in a readable and scalable way. Styles are provided for text inputs, select lists, textareas, radio buttons and checkboxes, and buttons.
+ +++++Stacked forms
+Add
+.form-stacked
to your form's HTML and you'll have labels on top of their fields instead of to their left. This works great if your forms are short or you have two columns of inputs for heavier forms.+ ++Buttons
@@ -854,8 +944,8 @@ --