mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-07-31 11:40:09 +02:00
feat(component): Changing examples
Changing lists examples to only two #179
This commit is contained in:
25
index.html
25
index.html
@@ -154,28 +154,19 @@
|
||||
<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>
|
||||
|
@@ -16,21 +16,9 @@
|
||||
(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;
|
||||
@@ -38,8 +26,8 @@
|
||||
|
||||
&.is-disc li::before {
|
||||
position: absolute;
|
||||
top: calc(50% - 10px);
|
||||
left: -20px;
|
||||
top: calc(50% - 8px);
|
||||
left: -22px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($disc, $colors, 2px);
|
||||
@@ -47,19 +35,10 @@
|
||||
|
||||
&.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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user