Browse Source

Better/fixed jQuery styling and slightly improved js/inline-expanding.js accuracy (when jQuery is enabled)

pull/40/head
Michael Foster 11 years ago
parent
commit
5bf0e7f7e7
  1. 3
      js/inline-expanding.js
  2. 30
      templates/header.html

3
js/inline-expanding.js

@ -17,6 +17,9 @@ onready(function(){
for (var i = 0; i < link.length; i++) { for (var i = 0; i < link.length; i++) {
if (typeof link[i] == "object" && link[i].childNodes && typeof link[i].childNodes[0] !== 'undefined' && link[i].childNodes[0].src && link[i].className != 'file') { if (typeof link[i] == "object" && link[i].childNodes && typeof link[i].childNodes[0] !== 'undefined' && link[i].childNodes[0].src && link[i].className != 'file') {
if (window.jQuery && !$(link).prev().hasClass('fileinfo')) {
continue;
}
link[i].childNodes[0].style.maxWidth = '95%'; link[i].childNodes[0].style.maxWidth = '95%';
link[i].onclick = function(e) { link[i].onclick = function(e) {
if (this.childNodes[0].className == 'hidden') if (this.childNodes[0].className == 'hidden')

30
templates/header.html

@ -13,17 +13,31 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if config.recaptcha %}<style type="text/css">{% raw %} {% if config.recaptcha %}<style type="text/css">{% raw %}
.recaptcha_image_cell { #recaptcha_area {
background: none !important; float: none !important;
padding: 0 !important;
} }
table.recaptchatable { #recaptcha_logo, #recaptcha_privacy {
display: none;
}
#recaptcha_table {
border: none !important; border: none !important;
} }
#recaptcha_logo, #recaptcha_tagline { #recaptcha_table tr:first-child {
display: none; height: auto;
float: right; }
.recaptchatable img {
float: none !important;
}
#recaptcha_response_field {
font-size: 10pt !important;
border: 1px solid #a9a9a9 !important;
padding: 1px !important;
}
td.recaptcha_image_cell {
background: transparent !important;
} }
.recaptchatable a { .recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {
display: block; padding: 0 !important;
} }
{% endraw %}</style>{% endif %} {% endraw %}</style>{% endif %}
Loading…
Cancel
Save