Merge branch 'table-width-mobile-#1045'

Rebuilt assets/css/devportal2020.css
This commit is contained in:
mDuo13
2021-05-18 11:57:46 -07:00
7 changed files with 52 additions and 33 deletions

18
tool/filter_css_tables.py Normal file
View File

@@ -0,0 +1,18 @@
################################################
## Add class to tables
## Author: Jake Bonham
## Copyright: Ripple Labs, 2021
##
## Finds tables and adds bootstrap class
################################################
import re
def filter_soup(soup, **kwargs):
"""
Adds responsive class to tables.
"""
tables = soup.find_all("table")
for table in tables:
table['class'] = table.get('class', []) + ['table-responsive']