diff --git a/iwm_browser/main.py b/iwm_browser/main.py index 45c561a..fad9176 100644 --- a/iwm_browser/main.py +++ b/iwm_browser/main.py @@ -8,14 +8,17 @@ import httpx import json import os import re +from . import utils basedir = os.path.dirname(__file__) app = FastAPI() app.mount("/static", StaticFiles(directory=basedir + "/static"), name="static") template_env = jinja2.Environment( - loader=jinja2.PackageLoader("iwm_browser", "templates"), - auto_reload=True - ) + loader=jinja2.PackageLoader("iwm_browser", "templates"), + auto_reload=True +) + +template_env.globals['convert_times'] = utils.convert_times BASE_URL = "http://make.fangam.es" THUMB_URL = "https://images.make.fangam.es" diff --git a/iwm_browser/static/search/searchResults.css b/iwm_browser/static/search/searchResults.css index ac4cf51..4eb3f1b 100644 --- a/iwm_browser/static/search/searchResults.css +++ b/iwm_browser/static/search/searchResults.css @@ -26,6 +26,9 @@ .searchResults { font-size: 16px; } + .times { + display: none; + } } @@ -77,6 +80,21 @@ margin-bottom: 0.3rem; } +.levelTitle a:link, a:visited { + color: inherit; + text-decoration: initial; + cursor: auto; +} + +.levelTitle a:hover { + outline: 2px dotted blue; +} + +.levelTitle a:link:active { + color: inherit; + outline: 2px dotted blue; +} + .creatorName { justify-self: left; text-align: left; @@ -84,10 +102,11 @@ } .levelDescription { + overflow-x: scroll; text-align: left; - background-color: rgba(245, 222, 179, 0.128); - padding: 1em; - font-size: 1rem; + background-color: #30303a; + padding: 0.5rem; + font-size: small; /* justify-self: right; diff --git a/iwm_browser/templates/levelInfo.html b/iwm_browser/templates/levelInfo.html index 40e5e3e..5de70fa 100644 --- a/iwm_browser/templates/levelInfo.html +++ b/iwm_browser/templates/levelInfo.html @@ -33,10 +33,13 @@