update photoswipe theme :

* add piwik configuration
 * minify and concatenate CSS files
 * use minify version for echo.js
This commit is contained in:
franek
2015-07-25 14:27:26 +02:00
parent 488a21bd6b
commit 4bff11dbe5
3 changed files with 9 additions and 12 deletions

View File

@@ -1,7 +1,8 @@
COLORBOX_PATH=sigal/themes/colorbox/static/css
GALLERIA_PATH=sigal/themes/galleria/static/css
PHOTOSWIPE_PATH=sigal/themes/photoswipe/static
all: colorbox galleria
all: colorbox galleria photoswipe
init:
pip install -r requirements.txt
@@ -15,6 +16,9 @@ colorbox:
galleria:
cat $(GALLERIA_PATH)/{normalize,style}.css | cssmin > $(GALLERIA_PATH)/style.min.css
photoswipe:
cat $(PHOTOSWIPE_PATH)/styles.css $(PHOTOSWIPE_PATH)/default-skin/default-skin.css $(PHOTOSWIPE_PATH)/photoswipe.css | cssmin > $(PHOTOSWIPE_PATH)/styles.min.css
test:
py.test

File diff suppressed because one or more lines are too long

View File

@@ -11,23 +11,14 @@
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Sans">
<link rel="stylesheet" href="{{ theme.url }}/styles.css">
<!-- Core CSS file -->
<link rel="stylesheet" href="{{ theme.url }}/photoswipe.css">
<!-- Skin CSS file (styling of UI - buttons, caption, etc.)
In the folder of skin CSS file there are also:
- .png and .svg icons sprite,
- preloader.gif (for browsers that do not support CSS animations) -->
<link rel="stylesheet" href="{{ theme.url }}/default-skin/default-skin.css">
<link rel="stylesheet" href="{{ theme.url }}/styles.min.css">
<!-- Core JS file -->
<script src="{{ theme.url }}/photoswipe.min.js"></script>
<!-- UI JS file -->
<script src="{{ theme.url }}/photoswipe-ui-default.min.js"></script>
<script src="{{ theme.url }}/echo/echo.js"></script>
<script src="{{ theme.url }}/echo/echo.min.js"></script>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
@@ -405,5 +396,6 @@
{% endblock %}
</div>
{% include 'analytics.html' %}
{% include 'piwik.html' %}
</body>
</html>