Skip to content

Commit

Permalink
feat(component): Inserting one more example list
Browse files Browse the repository at this point in the history
Inserting a pointer list to the lists component

#179
  • Loading branch information
lucas.reis committed Dec 12, 2018
1 parent 2e4ff79 commit 4fd118f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@ <h2 class="title">Lists</h2>
<li>Test4</li>
</ul>
</div>

<div class="lists">
<ul class="nes-list is-pointer">
<li>Test1</li>
<li>Test2</li>
<li>Test3</li>
<li>Test4</li>
</ul>
</div>
</section>

<section class="nes-container with-title">
Expand Down
19 changes: 19 additions & 0 deletions scss/elements/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
(0, 0, 0, 1, 1, 1, 0, 0),
(0, 0, 0, 1, 1, 0, 0, 0)
);

$pointer: (
(1, 1, 1, 0, 0, 0, 0, 0),
(0, 1, 1, 1, 0, 0, 0, 0),
(0, 0, 1, 1, 1, 0, 0, 0),
(0, 0, 0, 1, 1, 1, 0, 0),
(0, 0, 1, 1, 1, 0, 0, 0),
(0, 1, 1, 1, 0, 0, 0, 0),
(1, 1, 1, 0, 0, 0, 0, 0)
);
$colors: ($base-color, map-get($default-colors, "shadow"));

list-style-type: none;
Expand Down Expand Up @@ -44,4 +54,13 @@

@include pixelize($arrow, $colors, 2px);
}

&.is-pointer li::before {
position: absolute;
top: calc(50% - 10px);
left: -20px;
content: "";

@include pixelize($pointer, $colors, 2px);
}
}

0 comments on commit 4fd118f

Please sign in to comment.