SlideShare ist ein Scribd-Unternehmen logo
1 von 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
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
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
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)

• https://github.com/gabetax/twitter-bootstrap-kaminari-views

Weitere ähnliche Inhalte

Ähnlich wie Twitter Bootstrap (spring)

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
 
Web technologies-course 06.pptx
Web technologies-course 06.pptxWeb technologies-course 06.pptx
Web technologies-course 06.pptxStefan Oprea
 
Introduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersIntroduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersMelvin John
 
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
 
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
 
a11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for Developersa11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for DevelopersMonika Piotrowicz
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4imdurgesh
 
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
 
boot camp proximus.pptx
boot camp proximus.pptxboot camp proximus.pptx
boot camp proximus.pptxAakashkumar350944
 
BITM3730 9-26.pptx
BITM3730 9-26.pptxBITM3730 9-26.pptx
BITM3730 9-26.pptxMattMarino13
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2EPAM Systems
 
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
 
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
 
Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryTodd Zaki Warfel
 
Learning from Happy Lager
Learning from Happy LagerLearning from Happy Lager
Learning from Happy Lageralexroper
 
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
 

Ähnlich wie Twitter Bootstrap (spring) (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
 
Web technologies-course 06.pptx
Web technologies-course 06.pptxWeb technologies-course 06.pptx
Web technologies-course 06.pptx
 
Material design
Material designMaterial design
Material design
 
Introduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for DevelopersIntroduction to Bootstrap: Design for Developers
Introduction to Bootstrap: Design for Developers
 
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
 
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
 
a11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for Developersa11yTO - Web Accessibility for Developers
a11yTO - Web Accessibility for Developers
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
 
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
 
boot camp proximus.pptx
boot camp proximus.pptxboot camp proximus.pptx
boot camp proximus.pptx
 
BITM3730 9-26.pptx
BITM3730 9-26.pptxBITM3730 9-26.pptx
BITM3730 9-26.pptx
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT 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
 
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
 
Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQuery
 
Learning from Happy Lager
Learning from Happy LagerLearning from Happy Lager
Learning from Happy Lager
 
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
 

KĂźrzlich hochgeladen

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 

KĂźrzlich hochgeladen (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

Twitter Bootstrap (spring)

  • 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 le. 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 Gemle: gem “twitter-bootstrap-rails” • Installthe required JS & CSS les with: “rails g bootstrap:install” • Generate a layout with: rails g bootstrap:layout LAYOUT_NAME xed/fluid i.e. “rails g boostrap:layout application xed” • 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 xed layout • Responsive • Fixedor Fluid layouts dened with: class=”container” / class=”row” class=”container-fluid” / class=”row-fluid” • Dene columns with class=”span*” and class=”offset*” * = your column size
  • 10. NAVBAR • Navbar / Fixed Navbar (top/bottom) • Brand • Nav links • Dropdown menus • Embedded Forms
  • 12. NAVBAR brand nav links
  • 13. FORMS • Automatic for input elements • Versatile layout congurations •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
  • 14. FORMS
  • 15. 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>
  • 16. 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.
  • 19. 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.
  • 20. ICONS
  • 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) • https://github.com/gabetax/twitter-bootstrap-kaminari-views

Hinweis der Redaktion

  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