SlideShare una empresa de Scribd logo
1 de 22
TWITTER BOOTSTRAP
         Darby Frey
    darbyfrey@gmail.com
        @darbyfrey
GRID : FLUID GRID : FIXED LAYOUT / FLUID
     LAYOUT RESPONSIVE DESIGN :
   TYPOGRAPHY : CODE VIEW TABLES :
   FORMS : BUTTONS : ICONS : BUTTON
GROUPS : TABS : PILLS : NAV LISTS : NAVBAR
  BREADCRUMBS : PAGINATION : PAGER :
 INLINE LABELS BADGES : PAGE HEADER
UNIT : HERO UNIT THUMBNAILS : ALERTS :
 PROGRESS BARS : WELLS CLOSE ICON :
  MODALS : DROPDOWNS : SCROLLSPY
TOGGLABLE TABS : TOOLTIPS : POPOVERS :
  COLLAPSE CAROUSEL : TYPEAHEAD
GRID : FLUID GRID : FIXED LAYOUT / FLUID
     LAYOUT RESPONSIVE DESIGN :
   TYPOGRAPHY : CODE VIEW TABLES :
   FORMS : BUTTONS : ICONS : BUTTON
GROUPS : TABS : PILLS : NAV LISTS : NAVBAR
  BREADCRUMBS : PAGINATION : PAGER :
 INLINE LABELS BADGES : PAGE HEADER
UNIT : HERO UNIT THUMBNAILS : ALERTS :
 PROGRESS BARS : WELLS CLOSE ICON :
  MODALS : DROPDOWNS : SCROLLSPY
TOGGLABLE TABS : TOOLTIPS : POPOVERS :
  COLLAPSE CAROUSEL : TYPEAHEAD
INSTALLATION
                        The Less Easy Way
• Download    jQuery & Bootstrap
 http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
 http://twitter.github.com/bootstrap/assets/bootstrap.zip

• Unzip file. Put CSS, Javascripts and Images in the correct
 folders.

• Add   <link> and <script> tags to your layout.
INSTALLATION
  The Less Easy Way
INSTALLATION
                                              The Easy Way (Rails)

• twitter-bootstrap-rails  gem
    https://github.com/seyhunak/twitter-bootstrap-rails

• In     your Gemfile: gem “twitter-bootstrap-rails”

• Installthe required JS & CSS files with:
    “rails g bootstrap:install”

• Generate     a layout with:
    rails g bootstrap:layout LAYOUT_NAME fixed/fluid
    i.e. “rails g boostrap:layout application fixed”
•   See Railscasts:
    http://railscasts.com/episodes/328-twitter-bootstrap-basics
    http://railscasts.com/episodes/329-more-on-twitter-bootstrap
GRID
• 12   column grid

• 940px   wide fixed layout

• Responsive

• Fixedor Fluid layouts defined with:
   class=”container” / class=”row”
   class=”container-fluid” / class=”row-fluid”

• Define columns with class=”span*” and class=”offset*”
 * = your column size
GRID
ICONS
• Glyphicons         - free to use

•2    sprite images (black & white)
     glyphicons-halflings.png
     glyphicons-halflings-white.png


• To use, just add the icon name as
 a class to an <i> tag.

• Example:
     <i class=”icon-star”></i>
     <i class=”icon-star icon-white”></i>


• Useful     for adding visual context to interactions.
ICONS
NAVBAR


• Navbar   / Fixed Navbar (top/bottom)

• Brand

• Nav   links

• Dropdown      menus

• Embedded      Forms
NAVBAR


 scaffold




 nav links
NAVBAR

  brand


 nav links
FORMS

• Automatic        for input elements

• Versatile     layout configurations

•4   layout options - Vertical, Inline, Search and Horizontal
 adding class to form tag sets the layout: class=“form-inline”, class=”form-horizontal”, etc.


• Witha little work you can create just about any form you
 need without much CSS
FORMS
BUTTONS

• Super   easy to make nice looking buttons

•3   sizes, 7 colors

• Can   be added to any <a>, <button> or <input> element.

• <button   class=”btn”>BUTTON</button>

• <button   class=”btn btn-primary”>BUTTON</button>
TOOLTIPS & POPOVERS



• Tooltips
         & Popovers provide 2 ways of adding contextual
 information within an interface.

• Content    included in <a> tag using the title or data attributes.
TOOLTIPS
POPOVERS
GRID : FLUID GRID : FIXED LAYOUT / FLUID
     LAYOUT RESPONSIVE DESIGN :
   TYPOGRAPHY : CODE VIEW TABLES :
   FORMS : BUTTONS : ICONS : BUTTON
GROUPS : TABS : PILLS : NAV LISTS : NAVBAR
  BREADCRUMBS : PAGINATION : PAGER :
 INLINE LABELS BADGES : PAGE HEADER
UNIT : HERO UNIT THUMBNAILS : ALERTS :
 PROGRESS BARS : WELLS CLOSE ICON :
  MODALS : DROPDOWNS : SCROLLSPY
TOGGLABLE TABS : TOOLTIPS : POPOVERS :
  COLLAPSE CAROUSEL : TYPEAHEAD
LINKS
• https://github.com/seyhunak/twitter-bootstrap-rails

• https://github.com/thomas-mcdonald/bootstrap-sass

• http://railscasts.com/episodes/328-twitter-bootstrap-basics

• http://railscasts.com/episodes/329-more-on-twitter-bootstrap

• http://bootswatch.com/   (free)

• http://wrapbootstrap.com/   (paid)

Más contenido relacionado

Similar a Twitter Bootstrap

London Tableau User Group November 2017 Presentation - How To Build Tableau T...
London Tableau User Group November 2017 Presentation - How To Build Tableau T...London Tableau User Group November 2017 Presentation - How To Build Tableau T...
London Tableau User Group November 2017 Presentation - How To Build Tableau T...Russell Spangler
 
Introduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersIntroduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersMelvin John
 
Web technologies-course 06.pptx
Web technologies-course 06.pptxWeb technologies-course 06.pptx
Web technologies-course 06.pptxStefan Oprea
 
Twitter Bootstrap 2.3.2
Twitter Bootstrap 2.3.2Twitter Bootstrap 2.3.2
Twitter Bootstrap 2.3.2Mark Gu
 
Cincinnati Tableau User Group - May 2018 - #spanglerlife
Cincinnati Tableau User Group - May 2018 - #spanglerlifeCincinnati Tableau User Group - May 2018 - #spanglerlife
Cincinnati Tableau User Group - May 2018 - #spanglerlifeRussell Spangler
 
BITM3730 9-26.pptx
BITM3730 9-26.pptxBITM3730 9-26.pptx
BITM3730 9-26.pptxMattMarino13
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4imdurgesh
 
Bootstrap - Web Development Framework
Bootstrap - Web Development FrameworkBootstrap - Web Development Framework
Bootstrap - Web Development FrameworkCindy Royal
 
Face/Off: APEX Templates & Themes
Face/Off: APEX Templates & ThemesFace/Off: APEX Templates & Themes
Face/Off: APEX Templates & Themescrokitta
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2EPAM Systems
 
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Acquia
 
HTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - IHTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - Ivincentleeuwen
 
BITM3730 9-27.pptx
BITM3730 9-27.pptxBITM3730 9-27.pptx
BITM3730 9-27.pptxMattMarino13
 
a11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for Developersa11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for DevelopersMonika Piotrowicz
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web DevelopmentNikhil Baby
 
Making your site printable: WordCamp Buffalo 2013
Making your site printable: WordCamp Buffalo 2013Making your site printable: WordCamp Buffalo 2013
Making your site printable: WordCamp Buffalo 2013Adrian Roselli
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Wahyu Putra
 

Similar a Twitter Bootstrap (20)

London Tableau User Group November 2017 Presentation - How To Build Tableau T...
London Tableau User Group November 2017 Presentation - How To Build Tableau T...London Tableau User Group November 2017 Presentation - How To Build Tableau T...
London Tableau User Group November 2017 Presentation - How To Build Tableau T...
 
Boot strap
Boot strapBoot strap
Boot strap
 
Introduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersIntroduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for Developers
 
Web technologies-course 06.pptx
Web technologies-course 06.pptxWeb technologies-course 06.pptx
Web technologies-course 06.pptx
 
Twitter Bootstrap 2.3.2
Twitter Bootstrap 2.3.2Twitter Bootstrap 2.3.2
Twitter Bootstrap 2.3.2
 
Material design
Material designMaterial design
Material design
 
boot camp proximus.pptx
boot camp proximus.pptxboot camp proximus.pptx
boot camp proximus.pptx
 
Cincinnati Tableau User Group - May 2018 - #spanglerlife
Cincinnati Tableau User Group - May 2018 - #spanglerlifeCincinnati Tableau User Group - May 2018 - #spanglerlife
Cincinnati Tableau User Group - May 2018 - #spanglerlife
 
BITM3730 9-26.pptx
BITM3730 9-26.pptxBITM3730 9-26.pptx
BITM3730 9-26.pptx
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
 
Bootstrap - Web Development Framework
Bootstrap - Web Development FrameworkBootstrap - Web Development Framework
Bootstrap - Web Development Framework
 
Face/Off: APEX Templates & Themes
Face/Off: APEX Templates & ThemesFace/Off: APEX Templates & Themes
Face/Off: APEX Templates & Themes
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2
 
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2
 
HTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - IHTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - I
 
BITM3730 9-27.pptx
BITM3730 9-27.pptxBITM3730 9-27.pptx
BITM3730 9-27.pptx
 
a11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for Developersa11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for Developers
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
 
Making your site printable: WordCamp Buffalo 2013
Making your site printable: WordCamp Buffalo 2013Making your site printable: WordCamp Buffalo 2013
Making your site printable: WordCamp Buffalo 2013
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
 

Último

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Último (20)

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

Twitter Bootstrap

  • 1. TWITTER BOOTSTRAP Darby Frey darbyfrey@gmail.com @darbyfrey
  • 2.
  • 3. GRID : FLUID GRID : FIXED LAYOUT / FLUID LAYOUT RESPONSIVE DESIGN : TYPOGRAPHY : CODE VIEW TABLES : FORMS : BUTTONS : ICONS : BUTTON GROUPS : TABS : PILLS : NAV LISTS : NAVBAR BREADCRUMBS : PAGINATION : PAGER : INLINE LABELS BADGES : PAGE HEADER UNIT : HERO UNIT THUMBNAILS : ALERTS : PROGRESS BARS : WELLS CLOSE ICON : MODALS : DROPDOWNS : SCROLLSPY TOGGLABLE TABS : TOOLTIPS : POPOVERS : COLLAPSE CAROUSEL : TYPEAHEAD
  • 4. GRID : FLUID GRID : FIXED LAYOUT / FLUID LAYOUT RESPONSIVE DESIGN : TYPOGRAPHY : CODE VIEW TABLES : FORMS : BUTTONS : ICONS : BUTTON GROUPS : TABS : PILLS : NAV LISTS : NAVBAR BREADCRUMBS : PAGINATION : PAGER : INLINE LABELS BADGES : PAGE HEADER UNIT : HERO UNIT THUMBNAILS : ALERTS : PROGRESS BARS : WELLS CLOSE ICON : MODALS : DROPDOWNS : SCROLLSPY TOGGLABLE TABS : TOOLTIPS : POPOVERS : COLLAPSE CAROUSEL : TYPEAHEAD
  • 5. INSTALLATION The Less Easy Way • Download jQuery & Bootstrap http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js http://twitter.github.com/bootstrap/assets/bootstrap.zip • Unzip file. Put CSS, Javascripts and Images in the correct folders. • Add <link> and <script> tags to your layout.
  • 6. INSTALLATION The Less Easy Way
  • 7. INSTALLATION The Easy Way (Rails) • twitter-bootstrap-rails gem https://github.com/seyhunak/twitter-bootstrap-rails • In your Gemfile: gem “twitter-bootstrap-rails” • Installthe required JS & CSS files with: “rails g bootstrap:install” • Generate a layout with: rails g bootstrap:layout LAYOUT_NAME fixed/fluid i.e. “rails g boostrap:layout application fixed” • See Railscasts: http://railscasts.com/episodes/328-twitter-bootstrap-basics http://railscasts.com/episodes/329-more-on-twitter-bootstrap
  • 8. GRID • 12 column grid • 940px wide fixed layout • Responsive • Fixedor Fluid layouts defined with: class=”container” / class=”row” class=”container-fluid” / class=”row-fluid” • Define columns with class=”span*” and class=”offset*” * = your column size
  • 10. ICONS • Glyphicons - free to use •2 sprite images (black & white) glyphicons-halflings.png glyphicons-halflings-white.png • To use, just add the icon name as a class to an <i> tag. • Example: <i class=”icon-star”></i> <i class=”icon-star icon-white”></i> • Useful for adding visual context to interactions.
  • 11. ICONS
  • 12. NAVBAR • Navbar / Fixed Navbar (top/bottom) • Brand • Nav links • Dropdown menus • Embedded Forms
  • 14. NAVBAR brand nav links
  • 15. FORMS • Automatic for input elements • Versatile layout configurations •4 layout options - Vertical, Inline, Search and Horizontal adding class to form tag sets the layout: class=“form-inline”, class=”form-horizontal”, etc. • Witha little work you can create just about any form you need without much CSS
  • 16. FORMS
  • 17. BUTTONS • Super easy to make nice looking buttons •3 sizes, 7 colors • Can be added to any <a>, <button> or <input> element. • <button class=”btn”>BUTTON</button> • <button class=”btn btn-primary”>BUTTON</button>
  • 18. TOOLTIPS & POPOVERS • Tooltips & Popovers provide 2 ways of adding contextual information within an interface. • Content included in <a> tag using the title or data attributes.
  • 21. GRID : FLUID GRID : FIXED LAYOUT / FLUID LAYOUT RESPONSIVE DESIGN : TYPOGRAPHY : CODE VIEW TABLES : FORMS : BUTTONS : ICONS : BUTTON GROUPS : TABS : PILLS : NAV LISTS : NAVBAR BREADCRUMBS : PAGINATION : PAGER : INLINE LABELS BADGES : PAGE HEADER UNIT : HERO UNIT THUMBNAILS : ALERTS : PROGRESS BARS : WELLS CLOSE ICON : MODALS : DROPDOWNS : SCROLLSPY TOGGLABLE TABS : TOOLTIPS : POPOVERS : COLLAPSE CAROUSEL : TYPEAHEAD
  • 22. LINKS • https://github.com/seyhunak/twitter-bootstrap-rails • https://github.com/thomas-mcdonald/bootstrap-sass • http://railscasts.com/episodes/328-twitter-bootstrap-basics • http://railscasts.com/episodes/329-more-on-twitter-bootstrap • http://bootswatch.com/ (free) • http://wrapbootstrap.com/ (paid)

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n