Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
concrexit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
thalia
concrexit
Commits
576fdc06
Commit
576fdc06
authored
Dec 08, 2016
by
Sébastiaan Versteeg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the photos CSS compress
parent
a8e6658d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
website/photos/static/photos/css/style.scss
website/photos/static/photos/css/style.scss
+0
-1
website/photos/templates/photos/album.html
website/photos/templates/photos/album.html
+5
-3
website/photos/templates/photos/index.html
website/photos/templates/photos/index.html
+5
-3
No files found.
website/photos/static/photos/css/style.scss
View file @
576fdc06
/* Solving this with dynamic a data attribute (i.e. attr(data-rotation)) does not work, as that's a string. */
/* Solving this with dynamic a data attribute (i.e. attr(data-rotation)) does not work, as that's a string. */
img
.rotate90
{
img
.rotate90
{
transform
:
rotate
(
90deg
);
transform
:
rotate
(
90deg
);
...
...
website/photos/templates/photos/album.html
View file @
576fdc06
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load staticfiles i18n thumbnail shared_thumbnail %}
{% load staticfiles i18n thumbnail shared_thumbnail
compress
%}
{% block title %}{{ album.title }} — {% trans "Photos" %} — {{ block.super }}{% endblock %}
{% block title %}{{ album.title }} — {% trans "Photos" %} — {{ block.super }}{% endblock %}
{% block css_head %}
{% block css_head %}
{{ block.super }}
{{ block.super }}
<link
href=
"{% static "
photos
/
css
/
style.scss
"
%}"
rel=
"stylesheet"
type=
"text/scss"
>
{% compress css %}
<link
href=
"{% static "
photos
/
css
/
style.scss
"
%}"
rel=
"stylesheet"
type=
"text/x-scss"
>
{% endcompress %}
{% endblock %}
{% endblock %}
{% block body %}
{% block body %}
...
...
website/photos/templates/photos/index.html
View file @
576fdc06
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load i18n thumbnail staticfiles %}
{% load i18n thumbnail staticfiles
compress
%}
{% block title %}{% trans "Photos" %} — {{ block.super }}{% endblock %}
{% block title %}{% trans "Photos" %} — {{ block.super }}{% endblock %}
{% block css_head %}
{% block css_head %}
{{ block.super }}
{{ block.super }}
<link
href=
"{% static 'photos/css/style.scss' %}"
rel=
"stylesheet"
type=
"text/scss"
>
{% compress css %}
<link
href=
"{% static 'photos/css/style.scss' %}"
rel=
"stylesheet"
type=
"text/x-scss"
>
{% endcompress %}
{% endblock %}
{% endblock %}
{% block body %}
{% block body %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment