-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
225 additions
and
59 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
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 @@ | ||
{% extends 'app/base.html' %} | ||
{% load svg static %} | ||
|
||
{% block css %} | ||
{{ block.super }} | ||
{% with href="snowebsvg/dist/css/experimental-"|add:settings.VERSION|add:".css" %} | ||
<link rel="stylesheet" href="{% static href %}"> | ||
{% endwith %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
{% with theme=request.session.theme svg_key='essential-angle_down-basic' %} | ||
<h1>Experimental</h1> | ||
|
||
<div class="svg-trigger" style="display: flex; align-items: center;"> | ||
<span>{% lorem 5 w random %}</span> | ||
{% svg_inline svg_key theme 'x2' %} | ||
</div> | ||
|
||
<div class="svg-trigger" style="display: flex; align-items: center;"> | ||
{% svg_inline svg_key theme 'x2' %} | ||
<span>{% lorem 5 w random %}</span> | ||
</div> | ||
|
||
|
||
|
||
<div style="display: flex; flex-wrap: wrap"> | ||
<article class="svg-effect-builder" style="position: relative; flex: 1; margin: 20px"> | ||
{% svg_inline svg_key theme %} | ||
<h2>{% lorem 5 w random %}</h2> | ||
<p>{% lorem 20 w random %}</p> | ||
</article> | ||
<article class="svg-effect-builder" style="position: relative; flex: 1; margin: 20px"> | ||
{% svg_inline svg_key theme %} | ||
<h2>{% lorem 10 w random %}</h2> | ||
<p>{% lorem 50 w random %}</p> | ||
</article> | ||
<article class="svg-effect-builder" style="position: relative; flex: 1; margin: 20px"> | ||
{% svg_inline svg_key theme %} | ||
<h2>{% lorem 20 w random %}</h2> | ||
<p>{% lorem 100 w random %}</p> | ||
</article> | ||
</div> | ||
|
||
|
||
{% endwith %} | ||
{% endblock %} |
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
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
7 changes: 0 additions & 7 deletions
7
snowebsvg/templates/snowebsvg/collections/_layouts/article/basic.html
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
snowebsvg/templates/snowebsvg/collections/_layouts/django.html
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
snowebsvg/templates/snowebsvg/collections/_layouts/styles.html
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
snowebsvg/templates/snowebsvg/collections/effect/article/_django.html
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,3 @@ | ||
{{ start }} load svg {{ end }} | ||
|
||
{% block content %}WIP{% endblock %} |
7 changes: 7 additions & 0 deletions
7
snowebsvg/templates/snowebsvg/collections/effect/article/_preview.html
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,7 @@ | ||
<a style="text-decoration: none" href="{% url 'app:svg' self.group.collection.key self.group.key self.key %}"> | ||
<div style="display: flex; flex-wrap: wrap"> | ||
{% include 'snowebsvg/collections/effect/article/_preview_article.html' %} | ||
{% include 'snowebsvg/collections/effect/article/_preview_article.html' %} | ||
{% include 'snowebsvg/collections/effect/article/_preview_article.html' %} | ||
</div> | ||
</a> |
11 changes: 11 additions & 0 deletions
11
snowebsvg/templates/snowebsvg/collections/effect/article/_preview_article.html
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,11 @@ | ||
{% load svg %} | ||
|
||
<div class="svg-trigger" style="flex: 1"> | ||
<article class="svg-effect-builder" style="position: relative; margin: 20px"> | ||
{% svg_inline self theme %} | ||
<div style="padding: 10px"> | ||
<h2>{% lorem 5 w random %}</h2> | ||
<p>{% lorem 10 w random %}</p> | ||
</div> | ||
</article> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
snowebsvg/templates/snowebsvg/collections/effect/article/basic.html
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,13 @@ | ||
{% extends 'snowebsvg/common/builders/effect.html' %} | ||
|
||
{% block builder_base %} | ||
<g opacity="0.1"> | ||
<polygon class="svg-fill-primary" points="0,0 50,100 100,0"></polygon> | ||
</g> | ||
{% endblock %} | ||
|
||
{% block builder_hover %} | ||
<g opacity="0.1"> | ||
<rect class="svg-fill-primary" x="0" y="0" width="100" height="100"></rect> | ||
</g> | ||
{% endblock %} |
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,6 @@ | ||
{% extends 'snowebsvg/common/styles.html' %} | ||
|
||
{% block css %}<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}themes-{{ settings.VERSION }}.css"> | ||
<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}sizer-{{ settings.VERSION }}.css"> | ||
<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}essential-{{ settings.VERSION }}.css"> | ||
<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}{{ self.key }}-{{ settings.VERSION }}.css">{% endblock %} |
6 changes: 0 additions & 6 deletions
6
snowebsvg/templates/snowebsvg/collections/essential/django.html
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
snowebsvg/templates/snowebsvg/collections/essential/styles.html
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{% extends 'snowebsvg/common/styles.html' %} | ||
|
||
{% block css %}<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}core-{{ settings.VERSION }}.css"> | ||
{% block css %}<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}themes-{{ settings.VERSION }}.css"> | ||
<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}sizer-{{ settings.VERSION }}.css"> | ||
<link rel="stylesheet" href="{{ settings.BASE_URL_CSS }}{{ self.key }}-{{ settings.VERSION }}.css">{% endblock %} |
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,3 @@ | ||
{% extends 'snowebsvg/common/builders/basic.html' %} | ||
|
||
{% block svg_aspect_ratio %}none{% endblock %} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{ start }} load svg {{ end }} | ||
|
||
{% block content %}{% endblock %} | ||
{% block content %}<a href="#" class="svg-trigger"> | ||
{{ start }} svg_inline '{{ self.key_composer }}' '{{ theme }}' '{{ size }}' {{ end }} | ||
</a>{% endblock %} |
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,4 @@ | ||
{% load svg %} | ||
<a href="{% url 'app:svg' self.group.collection.key self.group.key self.key %}" class="svg-trigger"> | ||
{% svg_inline self theme size %} | ||
</a> |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg" | ||
class="{% block svg_class %}svg-snoweb {% if size %}{{ size }}{% else %}x3{% endif %} svg-theme-{% if theme %}{{ theme }}{% else %}dark{% endif %}{% endblock %}" | ||
x="{% block svg_x %}0px{% endblock %}" | ||
y="{% block svg_y %}0px{% endblock %}" | ||
class="{% block svg_class %}svg-snoweb {% if size %}{{ size }}{% endif %} svg-theme-{% if theme %}{{ theme }}{% endif %}{% endblock %}" | ||
x="{% block svg_x %}0{% endblock %}" | ||
y="{% block svg_y %}0{% endblock %}" | ||
viewBox="{% block svg_viewbox %}0 0 100 100{% endblock %}" | ||
preserveAspectRatio="{% block svg_aspect_ratio %}xMidYMid meet{% endblock %}" | ||
>{% block svg_content %}{% endblock %}</svg> |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.svg-effect-builder { | ||
position: relative; | ||
|
||
svg:first-of-type { | ||
z-index: -1; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} |
Oops, something went wrong.