This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fluid grid implementation and container tweaks [fixes #113]
- Loading branch information
Showing
12 changed files
with
168 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Grid</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<link rel="stylesheet" href="../../build/css/blocks.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<h1>Grid</h1> | ||
|
||
<div class="container"> | ||
|
||
<div class="row"> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
<div class="panel-1"> | ||
.panel-1 | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="panel-6"> | ||
.panel-6 | ||
</div> | ||
<div class="panel-2"> | ||
.panel-2 | ||
</div> | ||
<div class="panel-4"> | ||
.panel-4 | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="panel-6"> | ||
.panel-6 | ||
</div> | ||
<div class="panel-6"> | ||
.panel-6 | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="panel-12 important"> | ||
.panel-12 | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@mixin -base-structure-grid-panel { | ||
|
||
@media screen and (min-width: $breakpoint-small) { | ||
|
||
[class*="panel-"] { | ||
float: left; | ||
&:not(:first-child){ | ||
margin-left: $structure-panels-gutter; | ||
} | ||
} | ||
|
||
$i: $structure-panels; | ||
@while $i > 0 { | ||
.panel-#{$i} { | ||
@include grid-fluid-span($i, $structure-panels-width, $structure-panels-gutter); | ||
} | ||
$i: ($i - 1); | ||
} | ||
|
||
} | ||
|
||
@media screen and (max-width: $breakpoint-small - 1) { | ||
[class*="panel-"] { | ||
width: 100%; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@mixin -base-structure-grid-row { | ||
&:not(.bootstrap){ | ||
@extend .row-fluid; | ||
margin-left: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
@mixin -base-structure-container { | ||
max-width: 960px; | ||
&:not(.bootstrap) { | ||
width: 100%; | ||
margin: auto; | ||
@if $structure-container-width-max { | ||
@media screen | ||
and (max-width: $structure-container-width-max | ||
+ $structure-container-width-max | ||
* (($structure-container-gutter*2)/100%) ) | ||
and (min-width: 768px) /* body applies its own padding in bootstrap */ | ||
{ | ||
width: 100% - ($structure-container-gutter*2); | ||
padding-left: $structure-container-gutter; | ||
padding-right: $structure-container-gutter; | ||
} | ||
max-width: $structure-container-width-max; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@mixin -base-structure-grid-panel { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@mixin -base-structure-grid-row { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.row { | ||
@include -base-structure-grid-row; | ||
} | ||
|
||
@include -base-structure-grid-panel; |