File size: 360 Bytes
be32617 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import re
with open('src/index.html', 'r', encoding='utf-8') as f:
html = f.read()
# Replace z-50 with z-[1000] on the nav
html = re.sub(r'class="site-nav fixed top-0 right-0 left-0 z-50"', r'class="site-nav fixed top-0 right-0 left-0 z-[1000]"', html)
with open('src/index.html', 'w', encoding='utf-8') as f:
f.write(html)
print("z-index fixed.")
|