mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 01:39:50 +02:00
Merge branch 'develop' into change-is-center-container-class
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";
|
||||
|
44
scss/elements/lists.scss
Normal file
44
scss/elements/lists.scss
Normal file
@@ -0,0 +1,44 @@
|
||||
.nes-list {
|
||||
$disc: (
|
||||
(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)
|
||||
);
|
||||
|
||||
$circle: (
|
||||
(0, 0, 0, 1, 1, 0, 0, 0),
|
||||
(0, 0, 1, 1, 1, 1, 0, 0),
|
||||
(0, 1, 1, 0, 0, 1, 1, 0),
|
||||
(0, 1, 1, 0, 0, 1, 1, 0),
|
||||
(0, 0, 1, 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;
|
||||
|
||||
& li {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&.is-disc li::before {
|
||||
position: absolute;
|
||||
top: calc(50% - 8px);
|
||||
left: -22px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($disc, $colors, 2px);
|
||||
}
|
||||
|
||||
&.is-circle li::before {
|
||||
position: absolute;
|
||||
top: calc(50% - 8px);
|
||||
left: -22px;
|
||||
content: "";
|
||||
|
||||
@include pixelize($circle, $colors, 2px);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user