add icons; add cms.css

This commit is contained in:
bkfox 2016-08-10 15:58:08 +02:00
parent 1a6765b9b7
commit 5c9eef18eb
8 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,24 @@
/*
input, textarea, select, .richtext, .tagit {
padding: 0.4em;
font-size: 1em;
}
label {
padding-top: 0em;
}
.fields > li, .field-col {
padding-top: 0.2em;
padding-bottom: 0.2em;
}
.full input, .full textarea, .full .richtext {
padding-top: 0.4em;
padding-bottom: 0.4em;
}
.title input, .title textarea, .title .richtext {
font-size: 1.2em;
}
*/

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

10
cms/utils.py Normal file
View File

@ -0,0 +1,10 @@
from django.core.urlresolvers import reverse
from wagtail.wagtailimages.utils import generate_signature
def image_url(image, filter_spec):
signature = generate_signature(image.id, filter_spec)
url = reverse('wagtailimages_serve', args=(signature, image.id, filter_spec))
url += image.file.name[len('original_images/'):]
return url