From 6b6b689ebf79842dc59620534f4ff0a170213ca0 Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Fri, 10 Apr 2020 18:45:07 +0530 Subject: [PATCH] Allow icon-lists (where each list bullet is an icon) Currently implemented for check-circle and chevron, but more can be added easily via icomoon ;) --- src/css/icon-lists.css | 32 ++++++++++++++++++++++++++++++++ src/index.htm | 10 +++++----- src/style.css | 2 ++ 3 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 src/css/icon-lists.css diff --git a/src/css/icon-lists.css b/src/css/icon-lists.css new file mode 100644 index 0000000..1da1db8 --- /dev/null +++ b/src/css/icon-lists.css @@ -0,0 +1,32 @@ +.icomoon { + /* copied from icomoon.css, because that's the best way we found of doing it + * without tampering with autogenerated icomoon code */ + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: 'icomoon' !important; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-list-item { + @apply icomoon; + @apply mr-1; + @apply -ml-4; +} + +.list-chevron li:before { + @apply icon-list-item; + content: "\f138"; +} + +.list-check-circle li:before { + @apply icon-list-item; + content: "\f058"; +} diff --git a/src/index.htm b/src/index.htm index aec2501..7d67aa4 100644 --- a/src/index.htm +++ b/src/index.htm @@ -23,7 +23,7 @@

Aspiring writers

Whether it's giving you tips or writing paragraphs for you—we'll help you as much or as little as you need.

-