Skip to content

Commit

Permalink
feat(component): Changing examples
Browse files Browse the repository at this point in the history
Changing lists examples to only two

#179
  • Loading branch information
lucas.reis committed Dec 13, 2018
1 parent 22657a9 commit 2de0fb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 42 deletions.
25 changes: 8 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,28 +154,19 @@ <h2 class="title">Balloons</h2>
<h2 class="title">Lists</h2>
<div class="lists">
<ul class="nes-list is-disc">
<li>Test1</li>
<li>Test2</li>
<li>Test3</li>
<li>Test4</li>
<li>Good morning.</li>
<li>Thou hast had a good night's sleep, I hope.</li>
<li>Thou hast had a good afternoon</li>
<li>Good night.</li>
</ul>
</div>

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

<div class="lists">
<ul class="nes-list is-square">
<li>Test1</li>
<li>Test2</li>
<li>Test3</li>
<li>Test4</li>
<li>Good morning.</li>
<li>Thou hast had a good night's sleep, I hope.</li>
<li>Thou hast had a good afternoon</li>
<li>Good night.</li>
</ul>
</div>
</section>
Expand Down
29 changes: 4 additions & 25 deletions scss/elements/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,50 +16,29 @@
(0, 0, 1, 1, 1, 1, 0, 0),
(0, 0, 0, 1, 1, 0, 0, 0)
);

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

list-style-type: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;

& li {
position: relative;
}

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

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

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

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

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

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

0 comments on commit 2de0fb6

Please sign in to comment.