Created by Jim Birch
jimbir.ch/presentations/bootstrap
@thejimbirch
Xeno Media, Inc.
Bootstrap is an open source project that can be used by front end developers and site builders in a wide variety of ways, from beginner to advanced.
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
Originally developed at Twitter by @mdo and @fat to document and share common design patterns and assets within the company.
And about 10 million more! BuiltWith.com
The Bootstrap contributed Drupal theme is the second most popular theme on Drupal.org with over 110,000 installs almost 700,000 downloads!
Love it or Hate it, Bootstrap is Winning the Web - August 12, 2015
Lorem ipsum...
Sed ut perspiciatis...
Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
Replaces wells, thumbnails, and panels
Bring Bootstrap's components to life with jQuery plugins. Easily include them all, or one by one.
Every feature of Bootstrap is documented. This documentation is always available online, and can be easily set up in local, development, and staging environments.
/starterkits/cdn/
folder to /sites/all/themes/
starterkit.cdn
to YOURNEWTHEMENAME.info
starterkits/cdn/
folder to /themes/custom/
THEMENAME.theme
to YOURNEWTHEMENAME.theme
THEMENAME.starterkit.yml
to YOURNEWTHEMENAME.info.yml
THEMENAME.libraries.yml
to YOURNEWTHEMENAME.libraries.yml
config/install/THEMENAME.settings.yml
to config/install/YOURNEWTHEMENAME.settings.yml
config/schema/THEMENAME.schema.yml
to config/schema/YOURNEWTHEMENAME.schema.yml
YOURNEWTHEMENAME.info.yml
config/schema/YOURNEWTHEMENAME.schema.yml
and rename - THEMENAME.settings:
and "THEMETITLE settings"
/css/style.css
to add your custom style overridestheme/modules/core
and add to your new theme./THEMENAME/bootstrap/
/THEMENAME/css/styles.css
/THEMENAME/less/variable-overrides.less
- Allows you to override the variables provided by the Bootstrap Framework/THEMENAME/less/bootstrap.less
- A copy of the Bootstrap Framework's file, with the addition of including variable-overrides.less/THEMENAME/less/overrides.less
- Contains overrides to properly integrate Drupal with the Bootstrap Framework/THEMENAME/less/style.less
- The glue that combines the bootstrap.less and overrides.less files together. Generally, you will not need to modify this file.Once you have compiled, all of the mixing will be run, and the less files will be concatenated into one css file.
/THEMENAME/css/styles.css
Radix is another base theme for Drupal. It has Bootstrap, Sass, Gulp, BrowserSync and Font Awesome built-in.
There are also currently 171 themes with the word Bootstrap in them on Drupal.org
BADcamp 2015 session Optimizing Drupal 7 HTML Markup
The origin blog post: Using Fences and Page Manager to optimize HTML markup in Drupal 7
Gruntfile.js
to output your css file to css/THEMENAME.css
and your js file to js/THEMENAME.css
bootstrap.less
Grunt or Gulp
cd sites/all/themes/THEMENAME/bootstrap/
grunt dist
- Compiles all the filesgrunt watch
- Watches the folder, and automatically updates after file changes.
#main-content {
.container();
}
#main-content > section {
.make-row();
}
#main-content > section > article {
.make-md-column(9);
.make-sm-column(8);
}
#main-content > section > aside {
.make-md-column(3);
.make-sm-column(4);
}
.live-chat-button {
.btn-primary();
padding: 10px 30px;
border-radius: 4px;
background: @live-chat-button-background;
&:hover {
text-decoration: none;
color: @btn-primary-color;
background: darken(@live-chat-button-background, 5%);
}
}
Upload your logo in the UI at/admin/appearance/settings/theme_name
Required for Drupal 7 to bring jQuery up to modern times. Not needed for Drupal 8
As of the writing of this presentation, there were 332 modules that contain "Bootstrap" in their name.
No release yet for D8
This project is a combination of Display Suite Bootstrap Layouts and Panels Bootstrap Layouts for Drupal 8.
Created by Jim Birch
jimbir.ch/presentations/bootstrap
@thejimbirch
Xeno Media, Inc.