add icons; add cms.css
This commit is contained in:
parent
1a6765b9b7
commit
5c9eef18eb
24
cms/static/cms/css/cms.css
Normal file
24
cms/static/cms/css/cms.css
Normal 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;
|
||||||
|
}
|
||||||
|
*/
|
BIN
cms/static/cms/images/add.png
Normal file
BIN
cms/static/cms/images/add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 327 B |
BIN
cms/static/cms/images/gplus.png
Normal file
BIN
cms/static/cms/images/gplus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
cms/static/cms/images/mail.png
Normal file
BIN
cms/static/cms/images/mail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 952 B |
BIN
cms/static/cms/images/tiles_large.png
Normal file
BIN
cms/static/cms/images/tiles_large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 316 B |
BIN
cms/static/cms/images/tumblr.png
Normal file
BIN
cms/static/cms/images/tumblr.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 696 B |
BIN
cms/static/cms/images/twitter.png
Normal file
BIN
cms/static/cms/images/twitter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
10
cms/utils.py
Normal file
10
cms/utils.py
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user