diff options
author | luxagraf <sng@luxagraf.net> | 2015-06-01 20:30:40 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-06-01 20:30:40 -0400 |
commit | fc5b5bcdc5c3c87c3818cb4c2ddccc0ce137925e (patch) | |
tree | 3dc03b395c1e94fc0900a8a9c29e5b5fcf8dd041 /design | |
parent | 7af56825e3bdf925853a5c4aafdcb0853125bc2c (diff) |
fixed js, not loaded on pages with no comments and CSS to align images
Diffstat (limited to 'design')
-rw-r--r-- | design/sass/_writing_details.scss | 7 | ||||
-rw-r--r-- | design/templates/details/entry.html | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/design/sass/_writing_details.scss b/design/sass/_writing_details.scss index 7185300..8dee60d 100644 --- a/design/sass/_writing_details.scss +++ b/design/sass/_writing_details.scss @@ -245,6 +245,13 @@ display: block; color: #999999; } } +.picgroup { + img { + max-width: 555px; + padding: 8px; + } + margin-bottom: 1.5em; +} .embed-wrapper { @include constrain_wide; diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index 25d1462..7915f21 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -77,6 +77,7 @@ class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%en <script src="/media/js/detail.min.js"></script> {%endif%}{%endwith%} +{%if comment_count > 0 %} <script type="text/javascript"> window.onload = function() { //delay loading of gravatar images using noscript data-hash attribute @@ -94,6 +95,7 @@ window.onload = function() { {%endif%}{%endwith%} } </script> +{%endif%} {% with object.template_name as t %}{%if t == 1 or t == 3 %} <script src="{{MEDIA_URL}}js/hyphenate.min.js" type="text/javascript"></script> {%endif%}{%endwith%}{%endblock%} |