4. Why do I need SASS?
It´s easy to write CSS, and to maintain it
It prevents code duplication
Include Variables, Nesting, Mixins
Many useful Funcitons for manipulating values
Advanced features like control directives for libraries
Remember: It´s only CSS!
61. Color functions + Other Functions
percentage {$value;}
ceil {$value;}
floor {$value;}
OTHER FUNCTIONS: http://sass-lang.com/documentation/Sass/Script/Functions.html
78. INTRO
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile first projects on the web.
HTML and CSS based design templates for typography, forms, buttons, navigation and other interface
components, as well as optional JavaScript extensions.
Bootstrap is completely free to download and use!
http://getbootstrap.com/
79. FEATURES
Bootstrap is compatible with the latest versions of the Google Chrome, Firefox, Internet Explorer, Opera,
and Safari browsers, although some of these browsers are not supported on all platforms
Since version 2.0 it also supports responsive web design. This means the layout of web pages adjusts
dynamically, taking into account the characteristics of the device used (desktop, tablet, mobile phone).
Starting with version 3.0, Bootstrap adopted a mobile first design philosophy, emphasizing responsive
design by default.
The version 4.0 alpha release added Sass and Flexbox support
Bootstrap is open source and available on GitHub Developers are encouraged to participate in the project
and make their own contributions to the platform.
80. DOWNLOAD
3 diferents ways to download Bootstrap
1-Bootstrap
Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.
2-Source code
Source Less, JavaScript, and font files, along with our docs. Requires a Less compiler and some setup.
3-Sass
Bootstrap ported from Less to Sass for easy inclusion in Rails, Compass, or Sass-only projects.
http://getbootstrap.com/getting-started/#download
Other options like Install with Bower, Install with npm, Installing Grunt and some
templates of examples.
81. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<h1>Hello, world!</h1>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
BASIC TEMPLATE
82. Bootstrap includes a responsive, mobile first fluid grid system based on 12 columns.
Rows and columns that house your content
GRID SYSTEM
84. CONTAINERS
2 types of containers
<div class="container">
</div>
Use .container for a responsive fixed width container.
<div class="container-fluid">
</div>
Use .container-fluid for a full width container, spanning the entire width of your viewport.
85. ROWS
Rows must be placed within a .container (fixed-width) or .container-fluid (full-
width) for proper alignment and padding.
Use rows to create horizontal groups of columns.
<div class="container-fluid">
<div class="row">
<div class="col-md-8">.col-md-8</div>
<div class="col-md-4">.col-md-4</div>
</div>
</div>
86. COLUMNS
Grid columns are created by specifying the number of twelve available columns
you wish to span. For example, three equal columns would use three .col-xs-4.
<div class="row">
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
<div class="col-md-1">.col-md-1</div>
</div>
<div class="row">
<div class="col-md-8">.col-md-8</div>
<div class="col-md-4">.col-md-4</div>
</div>
<div class="row">
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4">.col-md-4</div>
</div>
<div class="row">
<div class="col-md-6">.col-md-6</div>
<div class="col-md-6">.col-md-6</div>
</div>
87. MOBILE, TABLET, DESKTOP
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-8">.col-xs-12 .col-sm-6 .col-md-8</div>
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>
<div class="row">
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
<!-- Optional: clear the XS cols if their content doesn't match in height -->
<div class="clearfix visible-xs-block"></div>
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
</div>
Diferences between XS SM MD LG
88.
89. CSS CLASSES FOR VISUAL ELEMENTS
Bootstrap have a lot of predefined css classes for a visual elements like buttons,
tables, forms, typography, images, dropdowns, menus, alerts, badges…
90. BUTTONS
<!-- Standard button -->
<button type="button" class="btn btn-default">Default</button>
<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary">Primary</button>
<!-- Indicates a successful or positive action -->
<button type="button" class="btn btn-success">Success</button>
<!-- Contextual button for informational alert messages -->
<button type="button" class="btn btn-info">Info</button>
<!-- Indicates caution should be taken with this action -->
<button type="button" class="btn btn-warning">Warning</button>
<!-- Indicates a dangerous or potentially negative action -->
<button type="button" class="btn btn-danger">Danger</button>
<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
<button type="button" class="btn btn-link">Link</button>
92. RESPONSIVE UTILITIES
For faster mobile-friendly development, use these utility classes for showing and
hiding content by device via media query. Also included are utility classes for
toggling content when printed.
93. GLYPHICONS
Includes over 250 glyphs in font
format from the Glyphicon Halflings
set.
<button type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-star" aria-
hidden="true"></span> Star
</button>
94. JAVASCRIPT
Bring Bootstrap's components to life with over a dozen custom jQuery plugins.
Easily include them all, or one by one.
Overview
Transitions
Modal
Dropdown
Scrollspy
Tab
Tooltip
Popover
Alert
Button
Collapse
Carousel
Affix
99. DIFERENCES BETWEEN BOOTSTRAP 3 AND
BOOTSTRAP 4
Bootstrap 3
LESS
px
4 tier grid system (xs, sm, md, lg)
Glyphicon
Bootstrap 4
SCSS
rem or em
5 tier grid system (xs, sm, md, lg, xl).
Fontawesome