Move some CSS styles out of the JS and into the CSS

This commit is contained in:
Alex Kilgour
2016-02-01 21:25:11 +00:00
parent 77ed85eb87
commit fc510b328a
4 changed files with 24 additions and 25 deletions

View File

@@ -183,29 +183,6 @@ $(document).ready(function(){
var tableStyle = table.attr('style');
legend.attr('style', tableStyle);
table.removeAttr('style');
legend.css({
background: 'rgba(255, 255, 255, 0.75)'
});
table.css({
background: '#fff',
border: '1px solid #808080',
margin: '5px'
});
table.find('tr > td:first-child').css({
paddingLeft: '10px',
paddingRight: '5px'
});
table.find('tr > td:last-child').css({
paddingRight: '10px'
});
table.find('tr:first-child > td').css({
paddingTop: '5px'
});
table.find('tr:last-child > td').css({
paddingBottom: '5px'
});
table.prev('div').remove();
if (errors.length) {