fix: add custom style to better match farmOS color scheme
This commit is contained in:
parent
87b97f53b8
commit
768859b6b9
9 changed files with 2511 additions and 1 deletions
|
|
@ -23,6 +23,8 @@
|
|||
WuttaFarm web app
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from wuttaweb import app as base
|
||||
|
||||
|
||||
|
|
@ -43,6 +45,15 @@ def main(global_config, **settings):
|
|||
wutta_config = base.make_wutta_config(settings)
|
||||
pyramid_config = base.make_pyramid_config(settings)
|
||||
|
||||
# custom buefy css
|
||||
app = wutta_config.get_app()
|
||||
path = app.resource_path("wuttafarm.web.static:css/wuttafarm-buefy.css")
|
||||
if os.path.exists(path):
|
||||
# TODO: this is not robust enough, probably..but works for me/now
|
||||
wutta_config.setdefault(
|
||||
"wuttaweb.liburl.buefy_css", "/wuttafarm/css/wuttafarm-buefy.css"
|
||||
)
|
||||
|
||||
# bring in the rest of WuttaFarm
|
||||
pyramid_config.include("wuttafarm.web.static")
|
||||
pyramid_config.include("wuttafarm.web.subscribers")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue