summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/jrnl/admin.py3
-rw-r--r--app/src/admin.py8
-rw-r--r--design/sass/_writing_details.scss9
3 files changed, 15 insertions, 5 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py
index 580d06f..c3b0c81 100644
--- a/app/jrnl/admin.py
+++ b/app/jrnl/admin.py
@@ -76,7 +76,8 @@ class EntryAdmin(OSMGeoAdmin):
openlayers_url = '/static/admin/js/OpenLayers.js'
class Media:
- js = ('image-loader.js','next-prev-links.js')
+ js = ('image-loader.js', 'next-prev-links.js')
+
@admin.register(HomepageCurrator)
class HomepageCurratorAdmin(admin.ModelAdmin):
diff --git a/app/src/admin.py b/app/src/admin.py
index 25237ff..815267c 100644
--- a/app/src/admin.py
+++ b/app/src/admin.py
@@ -3,10 +3,12 @@ from .models import Topic, Post, Book
from utils.widgets import LGEntryForm
+@admin.register(Topic)
class TopicAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ('name',), "pluralized_name": ('name',)}
+@admin.register(Book)
class BookAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ('title', )}
list_display = ('title', 'pub_date', 'status')
@@ -31,6 +33,7 @@ class BookAdmin(admin.ModelAdmin):
)
+@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
form = LGEntryForm
list_display = ('title', 'pub_date', 'enable_comments', 'status')
@@ -55,6 +58,5 @@ class PostAdmin(admin.ModelAdmin):
),
)
-admin.site.register(Book, BookAdmin)
-admin.site.register(Topic, TopicAdmin)
-admin.site.register(Post, PostAdmin)
+ class Media:
+ js = ('image-loader.js', 'next-prev-links.js')
diff --git a/design/sass/_writing_details.scss b/design/sass/_writing_details.scss
index 78947c0..f69092d 100644
--- a/design/sass/_writing_details.scss
+++ b/design/sass/_writing_details.scss
@@ -14,6 +14,9 @@ figcaption, figcaption a {
@include fontsize(12);
color: #666;
}
+figcaption a:visited {
+ color: #666;
+}
.post--header {
@include constrain_narrow();
@include breakpoint(beta) {
@@ -280,13 +283,17 @@ figure.picwide img.picwide {
margin-left: 0;
}
}
-.notes .h-entry figure.picwide {
+.notes figure.picwide, .h-entry figure.picwide, .birds figure.picwide {
@include breakpoint(gamma) {
margin-left: -140px;
}
@include breakpoint(delta) {
margin-left: -245px;
}
+ @include breakpoint(epsilon) {
+ margin-left: -300px;
+ max-width: $max_width *.99;
+ }
}
.picwide960 {
clear: both;