This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a wrapping element for a grid * Demonstrate contrib example in rough fashion
- Loading branch information
1 parent
5cae999
commit b16573b
Showing
6 changed files
with
109 additions
and
207 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
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 +1,49 @@ | ||
@import "../core/neat"; | ||
|
||
$color-neat-blue: #53aee0; | ||
$color-neat-orange: #ff7c56; | ||
$color-white: #fff; | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
} | ||
|
||
.box { | ||
background-color: $color-neat-blue; | ||
height: 30px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.box--nested { | ||
@extend .box; | ||
border: 2px solid $color-neat-orange; | ||
} | ||
|
||
.examples { | ||
@include grid-container; | ||
} | ||
|
||
.column { | ||
@include grid-column; | ||
} | ||
|
||
.column--thirds { | ||
@include grid-column(4); | ||
} | ||
|
||
$nested-grid: ( | ||
columns: 3, | ||
gutter: 0, | ||
); | ||
|
||
.column--thirds--alt { | ||
@include grid-column(1, $nested-grid); | ||
} | ||
|
||
.column--full { | ||
@include grid-column(12); | ||
background-color: $color-neat-blue; | ||
margin-bottom: 10px; | ||
} |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
@import "neat/settings/settings"; | ||
|
||
@import "neat/mixins/grid-column"; | ||
@import "neat/mixins/grid-container"; |
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,29 @@ | ||
@charset "UTF-8"; | ||
/// Creates Neat grid container with clearfix. | ||
/// | ||
/// @argument {map} $grid [$neat-default-grid] | ||
/// The type of grid for this column. By default, the global | ||
/// `$neat-default-grid` will be used. | ||
/// | ||
/// @example scss | ||
/// .element { | ||
/// @include grid-container; | ||
/// } | ||
/// | ||
/// @example css | ||
/// | ||
/// .element { | ||
/// &::after { | ||
/// clear: both; | ||
/// content: ""; | ||
/// display: block; | ||
/// } | ||
/// } | ||
|
||
@mixin grid-container($grid: $neat-default-grid) { | ||
&::after { | ||
clear: both; | ||
content: ""; | ||
display: block; | ||
} | ||
} |
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