Twitter Bootstrap 3's Grid in SCSS

Developer
Size
5,440 Kb
Views
50,600

How do I make an twitter bootstrap 3's grid in scss?

I wanted to start using the new Bootstrap 3 grid in a project and I didn't want to wait for the Sass-bootstrap projects to update. So I ported grid.less into grid.scss. Et voila! . What is a twitter bootstrap 3's grid in scss? How do you make a twitter bootstrap 3's grid in scss? This script and codes were developed by Andy McFee on 09 August 2022, Tuesday.

Twitter Bootstrap 3's Grid in SCSS Previews

Twitter Bootstrap 3's Grid in SCSS - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Twitter Bootstrap 3's Grid in SCSS</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <h2>Bootstrap grids</h2> <p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p> <h4>Three equal columns</h4> <div class="row show-grid"> <div class="col-4">.col-4</div> <div class="col-4">.col-4</div> <div class="col-4">.col-4</div> </div> <h4>Three unequal columns</h4> <div class="row show-grid"> <div class="col-lg-3">.col-lg-3</div> <div class="col-lg-6">.col-lg-6</div> <div class="col-lg-3">.col-lg-3</div> </div> <h4>Two columns</h4> <div class="row show-grid"> <div class="col-lg-8">.col-lg-8</div> <div class="col-lg-4">.col-lg-4</div> </div> <h4>Full width, single column</h4> <p class="text-warning">No grid classes are necessary for full-width elements.</p> <h4>Two columns with two nested columns</h4> <div class="row show-grid"> <div class="col-lg-8"> .col-lg-8 <div class="row show-grid"> <div class="col-lg-6">.col-lg-6</div> <div class="col-lg-6">.col-lg-6</div> </div> </div> <div class="col-lg-4">.col-lg-4</div> </div> <h4>Mixed: mobile and desktop</h4> <div class="row show-grid"> <div class="col-12 col-lg-8">.col-12 .col-lg-8</div> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-lg-6">.col-6 .col-lg-6</div> <div class="col-6 col-lg-6">.col-6 .col-lg-6</div> </div> <h4>Mixed: mobile, tablet, and desktop</h4> <div class="row show-grid"> <div class="col-12 col-sm-8 col-lg-8">.col-12 .col-lg-8</div> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div> <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div> </div>
</div> <!-- /container --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Twitter Bootstrap 3's Grid in SCSS - Script Codes CSS Codes

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
/*------------------------------------*\ $Variables
\*------------------------------------*/
/*------------------------------------*\ $Mixins
\*------------------------------------*/
/*------------------------------------*\ $Grid system
\*------------------------------------*/
.container { margin-right: auto; margin-left: auto; overflow: hidden; *zoom: 1;
}
.row { overflow: hidden; *zoom: 1;
}
@media (min-width: 768px) { .row .container { margin-left: -15px; margin-right: -15px; }
}
.row .row { margin-left: -15px; margin-right: -15px;
}
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px;
}
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 { float: left;
}
.col-1 { width: 8.33333%;
}
.col-2 { width: 16.66667%;
}
.col-3 { width: 25%;
}
.col-4 { width: 33.33333%;
}
.col-5 { width: 41.66667%;
}
.col-6 { width: 50%;
}
.col-7 { width: 58.33333%;
}
.col-8 { width: 66.66667%;
}
.col-9 { width: 75%;
}
.col-10 { width: 83.33333%;
}
.col-11 { width: 91.66667%;
}
.col-12 { width: 100%;
}
@media (min-width: 768px) and (max-width: 991px) { .container { max-width: 728px; } .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-1 { width: 8.33333%; } .col-sm-2 { width: 16.66667%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333%; } .col-sm-5 { width: 41.66667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.33333%; } .col-sm-8 { width: 66.66667%; } .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333%; } .col-sm-11 { width: 91.66667%; } .col-sm-12 { width: 100%; } .col-sm-push-1 { left: 8.33333%; } .col-sm-push-2 { left: 16.66667%; } .col-sm-push-3 { left: 25%; } .col-sm-push-4 { left: 33.33333%; } .col-sm-push-5 { left: 41.66667%; } .col-sm-push-6 { left: 50%; } .col-sm-push-7 { left: 58.33333%; } .col-sm-push-8 { left: 66.66667%; } .col-sm-push-9 { left: 75%; } .col-sm-push-10 { left: 83.33333%; } .col-sm-push-11 { left: 91.66667%; } .col-sm-pull-1 { right: 8.33333%; } .col-sm-pull-2 { right: 16.66667%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-4 { right: 33.33333%; } .col-sm-pull-5 { right: 41.66667%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-7 { right: 58.33333%; } .col-sm-pull-8 { right: 66.66667%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-10 { right: 83.33333%; } .col-sm-pull-11 { right: 91.66667%; } .col-sm-offset-1 { margin-left: 8.33333%; } .col-sm-offset-2 { margin-left: 16.66667%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-4 { margin-left: 33.33333%; } .col-sm-offset-5 { margin-left: 41.66667%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-7 { margin-left: 58.33333%; } .col-sm-offset-8 { margin-left: 66.66667%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-10 { margin-left: 83.33333%; } .col-sm-offset-11 { margin-left: 91.66667%; }
}
@media (min-width: 992px) { .container { max-width: 940px; } .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-1 { width: 8.33333%; } .col-lg-2 { width: 16.66667%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333%; } .col-lg-5 { width: 41.66667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.33333%; } .col-lg-8 { width: 66.66667%; } .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333%; } .col-lg-11 { width: 91.66667%; } .col-lg-12 { width: 100%; } .col-lg-push-1 { left: 8.33333%; } .col-lg-push-2 { left: 16.66667%; } .col-lg-push-3 { left: 25%; } .col-lg-push-4 { left: 33.33333%; } .col-lg-push-5 { left: 41.66667%; } .col-lg-push-6 { left: 50%; } .col-lg-push-7 { left: 58.33333%; } .col-lg-push-8 { left: 66.66667%; } .col-lg-push-9 { left: 75%; } .col-lg-push-10 { left: 83.33333%; } .col-lg-push-11 { left: 91.66667%; } .col-lg-pull-1 { right: 8.33333%; } .col-lg-pull-2 { right: 16.66667%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-4 { right: 33.33333%; } .col-lg-pull-5 { right: 41.66667%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-7 { right: 58.33333%; } .col-lg-pull-8 { right: 66.66667%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-10 { right: 83.33333%; } .col-lg-pull-11 { right: 91.66667%; } .col-lg-offset-1 { margin-left: 8.33333%; } .col-lg-offset-2 { margin-left: 16.66667%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-4 { margin-left: 33.33333%; } .col-lg-offset-5 { margin-left: 41.66667%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-7 { margin-left: 58.33333%; } .col-lg-offset-8 { margin-left: 66.66667%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-10 { margin-left: 83.33333%; } .col-lg-offset-11 { margin-left: 91.66667%; }
}
@media (min-width: 1200px) { .container { max-width: 1170px; }
}
.show-grid > div { background: rgba(64, 127, 255, 0.2); -moz-box-shadow: 0 0 0 1px rgba(64, 127, 255, 0.4) inset; -webkit-box-shadow: 0 0 0 1px rgba(64, 127, 255, 0.4) inset; box-shadow: 0 0 0 1px rgba(64, 127, 255, 0.4) inset; padding-top: 20px; padding-bottom: 20px;
}
Twitter Bootstrap 3's Grid in SCSS - Script Codes
Twitter Bootstrap 3's Grid in SCSS - Script Codes
Home Page Home
Developer Andy McFee
Username andymcfee
Uploaded August 09, 2022
Rating 3
Size 5,440 Kb
Views 50,600
Do you need developer help for Twitter Bootstrap 3's Grid in SCSS?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Andy McFee (andymcfee) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!