mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-19 11:15:49 +00:00
Merge branch 'table-width-mobile-#1045'
Rebuilt assets/css/devportal2020.css
This commit is contained in:
18
tool/filter_css_tables.py
Normal file
18
tool/filter_css_tables.py
Normal 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']
|
||||
Reference in New Issue
Block a user