1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +02:00

[ticket/11957] Responsive styles list

PHPBB3-11957
This commit is contained in:
Vjacheslav Trushkin
2013-10-26 11:56:03 +03:00
parent 7b3f63e8a3
commit 49e30b1243
3 changed files with 31 additions and 6 deletions

View File

@@ -54,6 +54,16 @@ function parse_document(container)
$this.find('td:nth-child(' + (i + 1) + ')').addClass(column.prop('className'));
});
// Styles table
if ($this.hasClass('styles')) {
$this.find('td:first-child[style]').each(function() {
var style = $(this).attr('style');
if (style.length) {
$(this).parent('tr').attr('style', style.toLowerCase().replace('padding', 'margin')).addClass('responsive-style-row');
}
});
}
// Find each header
if (!$this.data('no-responsive-header'))
{