Skip to content

Commit

Permalink
added blockgrid for bootstrap 4
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyTheTank committed Nov 27, 2015
1 parent 508b0e7 commit 1c6f5c0
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 41 deletions.
7 changes: 4 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = function(grunt) {
sourcemap: 'none'
},
files: {
'dist/bootstrap-block-grid.min.css': 'src/bootstrap-block-grid.scss'
'dist/bootstrap3-block-grid.min.css': 'src/bootstrap3-block-grid.scss',
'dist/bootstrap4-block-grid.min.css': 'src/bootstrap4-block-grid.scss'
}
},
dist: {
Expand All @@ -18,8 +19,8 @@ module.exports = function(grunt) {
sourcemap: 'none'
},
files: {
'src/bootstrap-block-grid.css': 'src/bootstrap-block-grid.scss',
'dist/bootstrap-block-grid.css': 'src/bootstrap-block-grid.scss'
'dist/bootstrap3-block-grid.css': 'src/bootstrap3-block-grid.scss',
'dist/bootstrap4-block-grid.css': 'src/bootstrap4-block-grid.scss'
}
}

Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# bootstrap-block-grid
real block grid for bootstrap 3
real block grid for bootstrap

## usage

Expand All @@ -12,12 +12,20 @@ real block grid for bootstrap 3
2. Add files to your html
1. when using bower
```html
<script src="bower_components/bootstrap-block-grid/dist/bootstrap-block-grid.min.css"></script>
<!-- bootstrap 3 -->
<script src="bower_components/bootstrap-block-grid/dist/bootstrap3-block-grid.min.css"></script>

<!-- bootstrap 4 -->
<script src="bower_components/bootstrap-block-grid/dist/bootstrap4-block-grid.min.css"></script>
```

2. when using downloaded files
```html
<!-- bootstrap 3 -->
<script src="bootstrap-block-grid.min.css"></script>

<!-- bootstrap 4 -->
<script src="bootstrap4-block-grid.min.css"></script>
```

3. Sample Markup
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"authors": [
"Jonathan Hornung <[email protected]>"
],
"version": "1.0.1",
"version": "1.1.0",
"description": "block grid for bootstrap",
"main": "dist/bootstrap-block-grid.min.css",
"moduleType": [
Expand Down
1 change: 0 additions & 1 deletion dist/bootstrap-block-grid.min.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
margin: -15px;
padding: 0;
}
[class*="block-grid-"]:before {

[class*="block-grid-"]:before,
[class*="block-grid-"]:after {
content: " ";
display: table;
}

[class*="block-grid-"]:after {
content: " ";
display: table;
clear: both;
}

[class*="block-grid-"] > * {
display: inline;
margin: 0;
Expand Down
1 change: 1 addition & 0 deletions dist/bootstrap3-block-grid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions src/bootstrap-block-grid.css → dist/bootstrap4-block-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
margin: -15px;
padding: 0;
}
[class*="block-grid-"]:before {

[class*="block-grid-"]:before,
[class*="block-grid-"]:after {
content: " ";
display: table;
}

[class*="block-grid-"]:after {
content: " ";
display: table;
clear: both;
}

[class*="block-grid-"] > * {
display: inline;
margin: 0;
Expand Down Expand Up @@ -166,7 +168,7 @@
clear: both;
}

@media (min-width: 768px) {
@media (min-width: 34em) {
.block-grid-sm-1 > * {
width: 100%;
}
Expand Down Expand Up @@ -311,7 +313,7 @@
clear: both;
}
}
@media (min-width: 992px) {
@media (min-width: 48em) {
.block-grid-md-1 > * {
width: 100%;
}
Expand Down Expand Up @@ -456,7 +458,7 @@
clear: both;
}
}
@media (min-width: 1200px) {
@media (min-width: 62em) {
.block-grid-lg-1 > * {
width: 100%;
}
Expand Down
Loading

0 comments on commit 1c6f5c0

Please sign in to comment.