From 9082320a0206bb20cd7acc643ab6b2b04dd4f01c Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Fri, 21 Oct 2022 09:48:43 +0200 Subject: [PATCH] Make study button primary --- qt/aqt/data/web/css/overview.scss | 5 +++++ qt/tools/extract_sass_vars.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/qt/aqt/data/web/css/overview.scss b/qt/aqt/data/web/css/overview.scss index 8902899a1..d2201f884 100644 --- a/qt/aqt/data/web/css/overview.scss +++ b/qt/aqt/data/web/css/overview.scss @@ -4,6 +4,7 @@ @use "root-vars"; @use "sass/vars" as *; @use "sass/card-counts"; +@use "sass/button-mixins" as button; .smallLink { font-size: 10px; @@ -35,3 +36,7 @@ h3 { .dyn { text-align: center; } + +#study { + @include button.base($primary: true); +} diff --git a/qt/tools/extract_sass_vars.py b/qt/tools/extract_sass_vars.py index 088b5e934..5bb716087 100644 --- a/qt/tools/extract_sass_vars.py +++ b/qt/tools/extract_sass_vars.py @@ -74,7 +74,7 @@ with open(colors_py, "w") as buf: if not "dark" in val: val["dark"] = val.light - buf.write(re.sub(r'\"\n', '",\n', f"{color} = {json.dumps(val, indent=4)}\n")) + buf.write(re.sub(r"\"\n", '",\n', f"{color} = {json.dumps(val, indent=4)}\n")) with open(props_py, "w") as buf: @@ -85,4 +85,4 @@ with open(props_py, "w") as buf: if not "dark" in val: val["dark"] = val.light - buf.write(re.sub(r'\"\n', '",\n', f"{prop} = {json.dumps(val, indent=4)}\n")) + buf.write(re.sub(r"\"\n", '",\n', f"{prop} = {json.dumps(val, indent=4)}\n"))