-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): Inserting lists with examples
Inserting tag <ul> to implment list, with two examples #179
- Loading branch information
lucas.reis
committed
Dec 12, 2018
1 parent
3d0dbfa
commit 2e4ff79
Showing
4 changed files
with
89 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |