GithubHelp home page GithubHelp logo

tp-bootstrap3's Introduction

Bootstrap for Web Designers

https://webdesign.tutsplus.com/courses/bootstrap-3-for-web-design/

Twitter's Bootstrap is an excellent set of carefully crafted user interface elements, layouts and JavaScript tools, easily available to use in your next web design project. This course takes you through Bootstrap, from top to bottom.

News

Notes

The Grid System

  • The containing element requiered by Bootstrap must be div.container, div.container-fluid. It wraps the site contents and houses the grid system. It is not nestable! .container - responsive fixed width container .container-fluid - full width container, spanning the entire width of the viewport.

  • if you go over 12 columns the layouts makes a break

  • you can move cols around with an offset-class, e.g. col-lg-offset-2

  • Nesting: The rule of 12 columns applies for nested divs too. They use up the space given by their parent.

  • What are the breakpoints?

deconstructing the column-class
  • col-lg-2 -> type (column); viewportsize (lg - large, md - middle, sm - small, xs - extra small)
  • the column numbers for a certain size, defines the size of bigger sizes too, if no specific value is given. ie. if you have col-sm-2 and no specific class for middle and large they are also 2.

Buttons and Icons

  • warum muss die Klasse "btn bt-default" heissen? Warum reicht nicht "btn-default"?
  • classes for button colors: default, primary, success, info, warning, danger, link
  • classes for button sizes: btn-lg, btn-sm, btn-xs
  • buttonable elements: a, button (type: button, submit, reset), input (type: submit)

Forms

  • Classes introduced in this chapter

    • input-sm, input-lg - the size of input fields
    • sr-only - only shown for screenreader
    • help-block - special formatting for a paragraph that describes the expected content of the input
    • has-classes: has-error, has-warning, has-feedback, has-success
  • Add glyphicon to an input field - div.form-group needs to have the class has-feedback and contains a span.glyphicon.glyphicon-ok.form-control-feedback

  • control the width of input fields with the column-sizes of the grid system. wrap an input.formcontrol in a div.col-sm-3 (as example).

Dropdowns

Was genau ist die Funktion von data-toggle="dropdown"? Wird von JavaScript verwendet. The data-toggle=dropdown attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it.

Tabs

Navbar

  • There are some classes to give elements the right alignment in the Navbar: navbar-btn, navbar-text

List groups

  • There is an ul and a div version of the list group element

Panels

Modal Windows

  • tabindex="-1" - this prevents, that the content is reached while tabbing through the side. Mostly used for initially invisible content like modal windows

  • role="xxx" - used for accessibility reasons. Whatever that means.

Collapse

Modification: How to make the full area of the header clickable: http://stackoverflow.com/questions/19236717/how-to-make-bootstrap-accordion-collapse-when-clicking-div

Carousel

List of bootswatch theme names

themes = ["cerulean", "cosmo", "cyborg", "darkly", "flatly", "journal", "lumen", "paper", "readable", "sandstone", "simplex", "slate", "spacelab", "superhero", "united", "yeti"]

Todo

  • publish on gh-pages

  • make a cool navigation for all the tutorial files

  • bring kuler color-schemes and bootstrap custom build together.

  • a glyph-icon gallery that works on a mobile phone

  • on bootstrap3-docs-overview.html: let the structure be generated (Plain JS or Handlebars.js?). Add Filter-Script like https://github.com/DeuxHuitHuit/quicksearch

  • use bower and grunt on the project?

tp-bootstrap3's People

Contributors

staeff avatar

Stargazers

Nguyen Viet Manh avatar

Watchers

James Cloos avatar

Forkers

gtechsltn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.