diff --git a/gallery/__init__.py b/gallery/__init__.py index 17174dd..15f14a9 100644 --- a/gallery/__init__.py +++ b/gallery/__init__.py @@ -21,7 +21,6 @@ from yaml import safe_load USER_DIR = platformdirs.user_config_dir('onlylegs') -Bundle.cache = False def create_app(test_config=None): @@ -38,9 +37,9 @@ def create_app(test_config=None): print("Loaded environment variables") # Get config file - with open(os.path.join(USER_DIR, 'conf.yml'), encoding='utf-8') as file: + with open(os.path.join(USER_DIR, 'conf.yml'), encoding='utf-8', mode='r') as file: conf = safe_load(file) - print("Loaded gallery config") + print("Loaded config") # App configuration app.config.from_mapping( @@ -58,6 +57,7 @@ def create_app(test_config=None): app.config.from_mapping(test_config) # Load JS assets + # TODO: disable caching for sass files as it makes it hard to work on when it is enabled assets.register('js_pre', Bundle('js/pre/*.js', output='gen/pre_packed.js')) assets.register('js_post', Bundle('js/post/*.js', output='gen/post_packed.js')) assets.register('styles', Bundle('sass/*.sass', filters='libsass', output='gen/styles.css')) diff --git a/gallery/static/sass/components/elements/upload-panel.sass b/gallery/static/sass/components/elements/upload-panel.sass index d92ad51..05e9824 100644 --- a/gallery/static/sass/components/elements/upload-panel.sass +++ b/gallery/static/sass/components/elements/upload-panel.sass @@ -9,6 +9,7 @@ height: 100vh background-color: transparent + color: RGB($fg-white) overflow: hidden z-index: 68 @@ -20,9 +21,6 @@ font-size: 1.5rem font-weight: 700 - - color: RGB($primary) - p margin: 0 padding: 0 @@ -30,8 +28,6 @@ font-size: 1rem font-weight: 500 - color: RGB($fg-white) - form margin: 0 padding: 0 diff --git a/gallery/templates/image.html b/gallery/templates/image.html index e07320f..7790967 100644 --- a/gallery/templates/image.html +++ b/gallery/templates/image.html @@ -91,12 +91,7 @@