mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-26 15:34:33 +02:00
feat(component): Inserting one more example list
Inserting a pointer list to the lists component #179
This commit is contained in:
@@ -169,6 +169,15 @@
|
|||||||
<li>Test4</li>
|
<li>Test4</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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>
|
||||||
|
|
||||||
<section class="nes-container with-title">
|
<section class="nes-container with-title">
|
||||||
|
@@ -16,6 +16,16 @@
|
|||||||
(0, 0, 0, 1, 1, 1, 0, 0),
|
(0, 0, 0, 1, 1, 1, 0, 0),
|
||||||
(0, 0, 0, 1, 1, 0, 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"));
|
$colors: ($base-color, map-get($default-colors, "shadow"));
|
||||||
|
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
@@ -44,4 +54,13 @@
|
|||||||
|
|
||||||
@include pixelize($arrow, $colors, 2px);
|
@include pixelize($arrow, $colors, 2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-pointer li::before {
|
||||||
|
position: absolute;
|
||||||
|
top: calc(50% - 10px);
|
||||||
|
left: -20px;
|
||||||
|
content: "";
|
||||||
|
|
||||||
|
@include pixelize($pointer, $colors, 2px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user