Coder Social home page Coder Social logo

labelexe / bootstrap-grid-css Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmhendricks/bootstrap-grid-css

0.0 1.0 0.0 62 KB

The grid and responsive utilities classes extracted from the Bootstrap 4 framework, compiled into CSS.

License: Other

CSS 100.00%

bootstrap-grid-css's Introduction

Latest Version GitHub License Donate Twitter

bootstrap-grid.css

Version: 4.0.0-alpha.6

License: MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)

Contents Copyright: (c) 2011-2018 Twitter, Inc.

Purpose

There are times when you only want to use the excellent Bootstrap grid functionality but don't want the extra classes and typography changes included, often when asked to work on existing client sites that do not include any responsive frameworks and you just want to get the changes done quickly and responsively. With Bootstrap 4, extracting the grid functionality is easy.

Included Features

  • Grid framework
  • Responsive Utilities
  • .img-fluid class (formerly .img-responsive in Bootstrap 3)
  • clearfix utility

Bower Installation

bower install bootstrap4-grid-only

Usage

I have already taken the liberty of extracting the grid and responsive utilities mixins (for those who don't know how or don't want to bother keeping it updated), which can be found in dist/css/bootstrap-grid.css. I also wrapped the classes with the .bootstrap-wrapper class to avoid conflicts with other libraries that may already be used in a project.

Simply download the appropriate CSS file and include it in your HTML header (you only need one):

  • bootstrap-grid.css - The expanded version
  • bootstrap-grid.min.css - The minified version

Documentation for the grid system and responsive utilities may be found on the Bootstrap 4 web site.

Basic Usage Example

<div class="bootstrap-wrapper">
	<div class="container">
		<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 hidden-sm-down"> <!-- Hidden on small screens -->
			<div class="col-md-6">.col-md-6</div>
			<div class="col-md-6">.col-md-6</div>
		</div>
	</div>
</div>

Custom Build Tutorial

You can make your own custom build of Bootstrap by downloading the source, making changes to the SCSS files and compiling.

Here is how you can accomplish what I have done here:

  1. Download and extract the Bootstrap source files
  2. Modify the SCSS files as desired. For example, to generate this build I added the .bootstrap-wrapper class to scss/bootstrap-grid.scss (lines 36 and 62), included the responsive utilities (line 43) and .img-fluid class (lines 59-60).
  3. Once you are done making your changes, use a program like Koala or Scout to compile the SCSS files into usable CSS files.

Credits

Please support humans.txt. It's an initiative for knowing the people behind a web site. It's an unobtrusive text file that contains information about the different people who have contributed to building the web site.

Twitter Bootstrap 4:

URL: https://getbootstrap.com
Author: The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
Twitter: @getbootstrap

bootstrap-grid-css's People

Watchers

 avatar

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.