mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Move some CSS styles out of the JS and into the CSS
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user