Jon Solow
commited on
Commit
·
0128ae2
1
Parent(s):
f63d934
Replace loading of style.css with contents of css dir
Browse files- src/shared_page.py +6 -2
- src/style.css +0 -0
src/shared_page.py
CHANGED
|
@@ -7,8 +7,12 @@ from data_storage import initialize_data_storage, login_by_token
|
|
| 7 |
|
| 8 |
def get_local_style():
|
| 9 |
code_str = ""
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
return code_str
|
| 13 |
|
| 14 |
|
|
|
|
| 7 |
|
| 8 |
def get_local_style():
|
| 9 |
code_str = ""
|
| 10 |
+
|
| 11 |
+
css_dir = os.path.join(os.path.dirname(__file__), "css")
|
| 12 |
+
for css_file in os.listdir(css_dir):
|
| 13 |
+
with open(os.path.join(css_dir, css_file)) as f:
|
| 14 |
+
code_str += "<style>{}</style>".format(f.read())
|
| 15 |
+
code_str += "\n"
|
| 16 |
return code_str
|
| 17 |
|
| 18 |
|
src/style.css
DELETED
|
File without changes
|