1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

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

This commit is contained in:
Michael Foster 2013-08-01 00:27:54 -04:00
parent a052a791b5
commit 5bf0e7f7e7
2 changed files with 25 additions and 8 deletions

View File

@ -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')

View File

@ -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 a { .recaptchatable img {
display: block; 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, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {
padding: 0 !important;
} }
{% endraw %}</style>{% endif %} {% endraw %}</style>{% endif %}