|
@@ -155,6 +155,7 @@ def test_compile_stylesheets(tmp_path: Path, mocker):
|
|
|
/ (PageNames.STYLESHEET_ROOT + ".css")
|
|
|
),
|
|
|
"@import url('./tailwind.css'); \n"
|
|
|
+ "@import url('@radix-ui/themes/styles.css'); \n"
|
|
|
"@import url('https://fonts.googleapis.com/css?family=Sofia&effect=neon|outline|emboss|shadow-multiple'); \n"
|
|
|
"@import url('https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css'); \n"
|
|
|
"@import url('https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css'); \n"
|
|
@@ -215,6 +216,7 @@ def test_compile_stylesheets_scss_sass(tmp_path: Path, mocker):
|
|
|
/ (PageNames.STYLESHEET_ROOT + ".css")
|
|
|
),
|
|
|
"@import url('./tailwind.css'); \n"
|
|
|
+ "@import url('@radix-ui/themes/styles.css'); \n"
|
|
|
"@import url('./style.css'); \n"
|
|
|
f"@import url('./{Path('preprocess') / Path('styles_a.css')!s}'); \n"
|
|
|
f"@import url('./{Path('preprocess') / Path('styles_b.css')!s}'); \n",
|
|
@@ -233,6 +235,7 @@ def test_compile_stylesheets_scss_sass(tmp_path: Path, mocker):
|
|
|
/ (PageNames.STYLESHEET_ROOT + ".css")
|
|
|
),
|
|
|
"@import url('./tailwind.css'); \n"
|
|
|
+ "@import url('@radix-ui/themes/styles.css'); \n"
|
|
|
"@import url('./style.css'); \n"
|
|
|
f"@import url('./{Path('preprocess') / Path('styles_a.css')!s}'); \n"
|
|
|
f"@import url('./{Path('preprocess') / Path('styles_b.css')!s}'); \n",
|
|
@@ -266,6 +269,7 @@ def test_compile_stylesheets_exclude_tailwind(tmp_path, mocker):
|
|
|
mock = mocker.Mock()
|
|
|
|
|
|
mocker.patch.object(mock, "tailwind", None)
|
|
|
+ mocker.patch.object(mock, "plugins", [])
|
|
|
mocker.patch("reflex.compiler.compiler.get_config", return_value=mock)
|
|
|
|
|
|
(assets_dir / "style.css").touch()
|
|
@@ -277,7 +281,7 @@ def test_compile_stylesheets_exclude_tailwind(tmp_path, mocker):
|
|
|
|
|
|
assert compiler.compile_root_stylesheet(stylesheets) == (
|
|
|
str(Path(".web") / "styles" / (PageNames.STYLESHEET_ROOT + ".css")),
|
|
|
- "@import url('./style.css'); \n",
|
|
|
+ "@import url('@radix-ui/themes/styles.css'); \n@import url('./style.css'); \n",
|
|
|
)
|
|
|
|
|
|
|