From b57ef301088f1f458374e72a0f830f04f4c522fa Mon Sep 17 00:00:00 2001 From: Alexis Le Baron Date: Tue, 5 Jan 2021 23:39:15 +0100 Subject: [PATCH] base --- app/templates/app/base.html | 8 +++- app/templates/app/common/svg_set.html | 7 +-- app/templates/app/experimental.html | 47 +++++++++++++++++++ app/templates/app/svg_list.html | 8 ++-- app/urls.py | 7 +++ docs/getting-started/html.rst | 6 ++- snowebsvg/models.py | 46 ++++++++++++++++-- .../collections/_layouts/article/basic.html | 7 --- .../collections/_layouts/django.html | 5 -- .../collections/_layouts/styles.html | 4 -- .../collections/effect/article/_django.html | 3 ++ .../collections/effect/article/_preview.html | 7 +++ .../effect/article/_preview_article.html | 11 +++++ .../collections/effect/article/basic.html | 13 +++++ .../snowebsvg/collections/effect/styles.html | 6 +++ .../collections/essential/django.html | 6 --- .../collections/essential/styles.html | 3 +- .../snowebsvg/common/builders/effect.html | 3 ++ .../templates/snowebsvg/common/django.html | 4 +- .../templates/snowebsvg/common/preview.html | 4 ++ snowebsvg/templates/snowebsvg/common/svg.html | 7 +-- snowebsvg/templatetags/svg.py | 16 +++++-- snowebsvg/tests/__init__.py | 11 ++++- .../src/scss/{common => }/builders/basic.scss | 0 .../scss/{common => }/builders/circle.scss | 0 .../src/scss/{common => }/builders/line.scss | 0 .../src/scss/{common => }/builders/rect.scss | 0 .../src/scss/collections/essential/angle.scss | 0 static/snowebsvg/src/scss/core.scss | 2 - static/snowebsvg/src/scss/effect.scss | 10 ++++ static/snowebsvg/src/scss/essential.scss | 12 ++--- static/snowebsvg/src/scss/experimental.scss | 16 +++++++ .../src/scss/{common => }/sizer.scss | 0 .../src/scss/{common => }/themes.scss | 0 webpack.config.js | 5 +- 35 files changed, 225 insertions(+), 59 deletions(-) create mode 100644 app/templates/app/experimental.html delete mode 100644 snowebsvg/templates/snowebsvg/collections/_layouts/article/basic.html delete mode 100644 snowebsvg/templates/snowebsvg/collections/_layouts/django.html delete mode 100644 snowebsvg/templates/snowebsvg/collections/_layouts/styles.html create mode 100644 snowebsvg/templates/snowebsvg/collections/effect/article/_django.html create mode 100644 snowebsvg/templates/snowebsvg/collections/effect/article/_preview.html create mode 100644 snowebsvg/templates/snowebsvg/collections/effect/article/_preview_article.html create mode 100644 snowebsvg/templates/snowebsvg/collections/effect/article/basic.html create mode 100644 snowebsvg/templates/snowebsvg/collections/effect/styles.html delete mode 100644 snowebsvg/templates/snowebsvg/collections/essential/django.html create mode 100644 snowebsvg/templates/snowebsvg/common/builders/effect.html create mode 100644 snowebsvg/templates/snowebsvg/common/preview.html rename static/snowebsvg/src/scss/{common => }/builders/basic.scss (100%) rename static/snowebsvg/src/scss/{common => }/builders/circle.scss (100%) rename static/snowebsvg/src/scss/{common => }/builders/line.scss (100%) rename static/snowebsvg/src/scss/{common => }/builders/rect.scss (100%) delete mode 100644 static/snowebsvg/src/scss/collections/essential/angle.scss delete mode 100644 static/snowebsvg/src/scss/core.scss create mode 100644 static/snowebsvg/src/scss/effect.scss create mode 100644 static/snowebsvg/src/scss/experimental.scss rename static/snowebsvg/src/scss/{common => }/sizer.scss (100%) rename static/snowebsvg/src/scss/{common => }/themes.scss (100%) diff --git a/app/templates/app/base.html b/app/templates/app/base.html index 3af33dbc..087d72aa 100644 --- a/app/templates/app/base.html +++ b/app/templates/app/base.html @@ -31,12 +31,18 @@ {% with water_css="https://cdn.jsdelivr.net/npm/water.css@2/out/" %} {% endwith %} - {% with href="snowebsvg/dist/css/core-"|add:settings.VERSION|add:".css" %} + {% with href="snowebsvg/dist/css/themes-"|add:settings.VERSION|add:".css" %} + + {% endwith %} + {% with href="snowebsvg/dist/css/sizer-"|add:settings.VERSION|add:".css" %} {% endwith %} {% with href="snowebsvg/dist/css/essential-"|add:settings.VERSION|add:".css" %} {% endwith %} + {% with href="snowebsvg/dist/css/effect-"|add:settings.VERSION|add:".css" %} + + {% endwith %}