Skip to content

Commit

Permalink
Merge pull request #197 from nikolaswise/master
Browse files Browse the repository at this point in the history
📦 0.5.1
  • Loading branch information
paulcpederson committed Jun 3, 2015
2 parents a659436 + fc6c175 commit e02b639
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.5.1

### Added
- `.grid-full` for opt-in to 26 column system
- Block groups to 8 up

### Modified
- Default grid behavior centers column-24 on large screen sizes
- Changed edge padding back to .04vw from 0.01.vw

## 0.5.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/sass/calcite-web/base/_config.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $large: 1450px !default;
// └────────────────────┘
// ↳ http://esri.github.io/calcite-web/grid/#configuration
// ↳ grid → _configuration.md
$vw-ratio: 0.98;
$vw-ratio: 0.95;
$container-width: $vw-ratio * 100vw !default;
$column-gutter: 1rem !default;

Expand Down
3 changes: 3 additions & 0 deletions lib/sass/calcite-web/grid/_block-groups.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
.#{$prefix}block-group-3-up .block { width: 33.33333%; }
.#{$prefix}block-group-4-up .block { width: 25%; }
.#{$prefix}block-group-5-up .block { width: 20%; }
.#{$prefix}block-group-6-up .block { width: 16.66666%; }
.#{$prefix}block-group-7-up .block { width: 14.28570%; }
.#{$prefix}block-group-8-up .block { width: 12.5%; }
}

// ┌─────────────────────────┐
Expand Down
15 changes: 15 additions & 0 deletions lib/sass/calcite-web/grid/_columns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
padding-left: 0;
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
}

// ┌─────────┐
Expand Down Expand Up @@ -160,6 +161,20 @@
@include grid-container();
}

@media screen and (min-width: $large) {
.grid-container {
$diff: $large-column-count - $default-column-count;
$side: $diff / 2;
$margin: $side / $large-column-count * $container-width;
padding-left: $margin;
padding-right: $margin;
}
.grid-full {
padding-left: 0;
padding-right: 0;
}
}

[class*="column-"] {
@include column-base();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "calcite-web",
"version": "0.5.0",
"version": "0.5.1",
"description": "SASS & CSS Framework for Esri websites",
"private": true,
"homepage": "https://github.com/esri/calcite-web",
Expand Down

0 comments on commit e02b639

Please sign in to comment.