Introduction to Twitter Bootstrap 3.0.3

18
Introduction to Twitter Bootstrap 3.0.3 林良軒 2013/12/24 @ NCU – RECAST Email : [email protected]

description

Brief introduction to Twitter Bootstrap 3.0.3

Transcript of Introduction to Twitter Bootstrap 3.0.3

Page 1: Introduction to Twitter Bootstrap 3.0.3

Introduction to Twitter Bootstrap

3.0.3

林良軒 2013/12/24 @ NCU – RECAST

Email : [email protected]

Page 2: Introduction to Twitter Bootstrap 3.0.3

Outline

Introduction to Twitter Bootstrap

Scaffolding

Base CSS

Components

Javascript Plugin

1

Page 3: Introduction to Twitter Bootstrap 3.0.3

What is Bootstrap?

Sleek, intuitive, and powerful mobile first front-

end framework for faster and easier web

development.

2

Page 4: Introduction to Twitter Bootstrap 3.0.3

Categories

Scaffolding Base CSS

Grid System

Layout …

Table

Form

Button …

Components Javascript Plugin

Glyphicons

Dropdowns

Button Dropdowns

Navbar

Pagination …

Modal

Scrollspy

Button

Carousel …

3

Page 5: Introduction to Twitter Bootstrap 3.0.3

Scaffolding

Up to 12 columns

Offsetting columns <div class=“col-md-offset-3”>

Responsive design – can adapt to user device

Nesting columns

Column ordering

4

Page 6: Introduction to Twitter Bootstrap 3.0.3

Grid System

5

Page 7: Introduction to Twitter Bootstrap 3.0.3

Base CSS

Headings

Emphasis

Blackquotes

6

Page 8: Introduction to Twitter Bootstrap 3.0.3

Base CSS

Tables – Hover Rows, Contextual Classes, etc.

Forms – Inline Form, Horizontal Form, etc.

7

Page 9: Introduction to Twitter Bootstrap 3.0.3

Base CSS

Buttons <button type=“button” class=“btn btn-primary btn-lg”>Primary</button>

<button type=“button” class=“btn btn-success”>Success</button>

<button type=“button” class=“btn btn-info btn-sm”>Info</button>

<button type=“button” class=“btn btn-warning btn-xm”>Warning</button>

Images <img class=“img-rounded”>

<img class=“img-circle”>

<img class=“img-thumbnail”>

8

Page 10: Introduction to Twitter Bootstrap 3.0.3

Base CSS Responsive Utilities

9

Page 11: Introduction to Twitter Bootstrap 3.0.3

Components

Glyphicons <span class=“glyphicon glyphicon-star”></span>

<span class=“glyphicon glyphicon-search”></span>

<span class=“glyphicon glyphicon-question-sign”></span>

<span class=“glyphicon glyphicon-remove”></span>

Dropdowns

10

Page 12: Introduction to Twitter Bootstrap 3.0.3

Components

Button Dropdowns

Navbars

:w

11

Page 13: Introduction to Twitter Bootstrap 3.0.3

Components

Labels

Alerts

Progress bars

12

Page 14: Introduction to Twitter Bootstrap 3.0.3

Compoments

Lists

Panels

13

Page 15: Introduction to Twitter Bootstrap 3.0.3

Javascript

Models(model.js) – popup message box

Dropdown(dropdown.js) – for dropdown menu

ScrollSpy(scrollspy.js)

– automatically updating on scroll position

14

Page 16: Introduction to Twitter Bootstrap 3.0.3

Javascript

Tooltips(tooltip.js) – show tips when hover over

Popovers(popover.js) – show tips when click

Buttons(button.js) – Checkbox, Radio

15

Page 17: Introduction to Twitter Bootstrap 3.0.3

Javascript Collapse(collapse.js) – collapse components

Carousel(carousel.js) – slideshow

16