From 7f12ec3f62e5c93599ed8099853192f0c56b88d6 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 25 Oct 2017 10:39:51 +1100 Subject: [PATCH] Add support for OpenWeb Icons --- lemoncurry/static/lemoncurry/css/layout.styl | 6 ++++++ lemoncurry/static/openwebicons | 1 + lemoncurry/templates/lemoncurry/layout.html | 1 + package.json | 3 +++ yarn.lock | 4 ++++ 5 files changed, 15 insertions(+) create mode 120000 lemoncurry/static/openwebicons diff --git a/lemoncurry/static/lemoncurry/css/layout.styl b/lemoncurry/static/lemoncurry/css/layout.styl index 7cd9ab0..ca620d1 100644 --- a/lemoncurry/static/lemoncurry/css/layout.styl +++ b/lemoncurry/static/lemoncurry/css/layout.styl @@ -18,6 +18,12 @@ a border-color $base00 color $base07 + +[class^="openwebicons-"], [class*=" openwebicons-"] + &::before + text-decoration none + line-height 1 + body display flex flex-direction column diff --git a/lemoncurry/static/openwebicons b/lemoncurry/static/openwebicons new file mode 120000 index 0000000..1586049 --- /dev/null +++ b/lemoncurry/static/openwebicons @@ -0,0 +1 @@ +../../node_modules/openwebicons \ No newline at end of file diff --git a/lemoncurry/templates/lemoncurry/layout.html b/lemoncurry/templates/lemoncurry/layout.html index 8c4959a..adb8766 100644 --- a/lemoncurry/templates/lemoncurry/layout.html +++ b/lemoncurry/templates/lemoncurry/layout.html @@ -14,6 +14,7 @@ {% compress css %} + {% block styles %}{% endblock %} {% endcompress %} diff --git a/package.json b/package.json index d1c162c..ff627f3 100644 --- a/package.json +++ b/package.json @@ -5,5 +5,8 @@ "license": "MIT", "devDependencies": { "stylus": "^0.54.5" + }, + "dependencies": { + "openwebicons": "^1.4.3" } } diff --git a/yarn.lock b/yarn.lock index 4f54342..03b8036 100644 --- a/yarn.lock +++ b/yarn.lock @@ -83,6 +83,10 @@ once@^1.3.0: dependencies: wrappy "1" +openwebicons@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/openwebicons/-/openwebicons-1.4.3.tgz#06ceeb8b82b756abfe9905e1abe5ff53fa3467e9" + path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"