Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Fixed kitchen sink grid update #1063

Merged
merged 1 commit into from
Sep 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions page-templates/kitchen-sink.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,19 @@

<!-- Grid -->
<h2 id="grid" class="docs-heading" data-magellan-target="grid"><a href="#grid"></a>Grid (XY)</h2>
<div class="grid-x">
<div class="cell">full width cell</div>
<div class="cell">full width cell</div>
</div>
<div class="grid-x">
<div class="small-6 cell">6 cells</div>
<div class="small-6 cell">6 cells</div>
</div>
<div class="grid-x">
<div class="medium-6 large-4 cell">12/6/4 cells</div>
<div class="medium-6 large-8 cell">12/6/8 cells</div>
<div class="kitchen-sink-grid">
<div class="grid-x">
<div class="cell">full width cell</div>
<div class="cell">full width cell</div>
</div>
<div class="grid-x">
<div class="small-6 cell">6 cells</div>
<div class="small-6 cell">6 cells</div>
</div>
<div class="grid-x">
<div class="medium-6 large-4 cell">12/6/4 cells</div>
<div class="medium-6 large-8 cell">12/6/8 cells</div>
</div>
</div>
<hr>

Expand Down
28 changes: 15 additions & 13 deletions src/assets/scss/templates/_kitchen-sink.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,21 @@
}
}

.grid-x {
background: #d6ecfa;
font-size: 12px;
line-height: 2rem;
margin-bottom: 1.5rem;

.cell,:nth-child(odd) {
background: #7bc1ef;
color: #0a0a0a;
}
.kitchen-sink-grid {
.grid-x {
background: #d6ecfa;
font-size: 12px;
line-height: 2rem;
margin-bottom: 1.5rem;

.cell,:nth-child(odd) {
background: #7bc1ef;
color: #0a0a0a;
}

.cell:nth-child(even) {
background: #1779ba;
color: #fefefe;
.cell:nth-child(even) {
background: #1779ba;
color: #fefefe;
}
}
}