diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-01 00:27:54 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-01 00:27:54 -0400 |
| commit | 5bf0e7f7e76cd3610e0aa692e0c433aca594ee51 (patch) | |
| tree | 5ecf5b43c406b1115cba1bf5531b743859cf7e4f | |
| parent | a052a791b553c770ef407f91b697bef7a62df5b1 (diff) | |
Better/fixed jQuery styling and slightly improved js/inline-expanding.js accuracy (when jQuery is enabled)
| -rw-r--r-- | js/inline-expanding.js | 3 | ||||
| -rw-r--r-- | templates/header.html | 30 |
2 files changed, 25 insertions, 8 deletions
diff --git a/js/inline-expanding.js b/js/inline-expanding.js index e529a395..61085b0d 100644 --- a/js/inline-expanding.js +++ b/js/inline-expanding.js @@ -17,6 +17,9 @@ onready(function(){ 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 (window.jQuery && !$(link).prev().hasClass('fileinfo')) { + continue; + } link[i].childNodes[0].style.maxWidth = '95%'; link[i].onclick = function(e) { if (this.childNodes[0].className == 'hidden') diff --git a/templates/header.html b/templates/header.html index 3791296f..c1230f0e 100644 --- a/templates/header.html +++ b/templates/header.html @@ -13,17 +13,31 @@ {% endif %} {% endif %} {% if config.recaptcha %}<style type="text/css">{% raw %} - .recaptcha_image_cell { - background: none !important; + #recaptcha_area { + float: none !important; + padding: 0 !important; } - table.recaptchatable { + #recaptcha_logo, #recaptcha_privacy { + display: none; + } + #recaptcha_table { border: none !important; } - #recaptcha_logo, #recaptcha_tagline { - display: none; - float: right; + #recaptcha_table tr:first-child { + height: auto; + } + .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 { - display: block; + .recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th { + padding: 0 !important; } {% endraw %}</style>{% endif %}
\ No newline at end of file |
