mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 01:39:50 +02:00
feat(component): Inserting lists with examples
Inserting tag <ul> to implment list, with two examples #179
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
@import "containers.scss";
|
||||
@import "radios.scss";
|
||||
@import "checkboxes.scss";
|
||||
@import "lists.scss";
|
||||
@import "balloons.scss";
|
||||
@import "tables.scss";
|
||||
@import "progress.scss";
|
||||
|
47
scss/elements/lists.scss
Normal file
47
scss/elements/lists.scss
Normal file
@@ -0,0 +1,47 @@
|
||||
.nes-list {
|
||||
$ball: (
|
||||
(0, 0, 0, 1, 1, 0, 0, 0),
|
||||
(0, 0, 1, 1, 1, 1, 0, 0),
|
||||
(0, 1, 1, 1, 1, 1, 1, 0),
|
||||
(0, 1, 1, 1, 1, 1, 1, 0),
|
||||
(0, 0, 1, 1, 1, 1, 0, 0),
|
||||
(0, 0, 0, 1, 1, 0, 0, 0)
|
||||
);
|
||||
|
||||
$arrow: (
|
||||
(0, 0, 0, 1, 1, 0, 0, 0),
|
||||
(0, 0, 0, 1, 1, 1, 0, 0),
|
||||
(0, 0, 0, 1, 1, 1, 1, 0),
|
||||
(0, 0, 0, 1, 1, 1, 1, 0),
|
||||
(0, 0, 0, 1, 1, 1, 0, 0),
|
||||
(0, 0, 0, 1, 1, 0, 0, 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-circle li::before {
|
||||
position: absolute;
|
||||
top: calc(50% - 10px);
|
||||
left: -20px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($ball, $colors, 2px);
|
||||
}
|
||||
|
||||
&.is-arrow li::before {
|
||||
position: absolute;
|
||||
top: calc(50% - 10px);
|
||||
left: -20px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($arrow, $colors, 2px);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user