mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 17:51:46 +02:00
feat(component): Inserting one more example list
Inserting a pointer list to the lists component #179
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user