fix(front:pathTooltip): correct importation of pathTooltip.css
This commit is contained in:
@@ -173,6 +173,7 @@ fn resolve_css_imports(entry: &Path, css_dir: &Path) -> String {
|
|||||||
if let Some(rel) = extract_import_path(t) {
|
if let Some(rel) = extract_import_path(t) {
|
||||||
let resolved = css_dir.join(rel.trim_start_matches("./"));
|
let resolved = css_dir.join(rel.trim_start_matches("./"));
|
||||||
if resolved.exists() {
|
if resolved.exists() {
|
||||||
|
println!("cargo:warning=CSS importing: {}", resolved.display());
|
||||||
out.push_str(&fs::read_to_string(&resolved).unwrap_or_default());
|
out.push_str(&fs::read_to_string(&resolved).unwrap_or_default());
|
||||||
out.push('\n');
|
out.push('\n');
|
||||||
} else {
|
} else {
|
||||||
@@ -238,6 +239,7 @@ fn minify_tree_css(dir: &Path) {
|
|||||||
if fname.starts_with("app.") || fname == "main.css" {
|
if fname.starts_with("app.") || fname == "main.css" {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
println!("cargo:warning=CSS importing: {}", p.display());
|
||||||
if let Ok(src) = fs::read_to_string(&p) {
|
if let Ok(src) = fs::read_to_string(&p) {
|
||||||
let _ = fs::write(&p, css_minify_safe(&src));
|
let _ = fs::write(&p, css_minify_safe(&src));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
@import url("./components/search.css");
|
@import url("./components/search.css");
|
||||||
@import url("./components/icons.css");
|
@import url("./components/icons.css");
|
||||||
@import url("./components/csp-utilities.css");
|
@import url("./components/csp-utilities.css");
|
||||||
|
@import url("./components/pathTooltip.css");
|
||||||
|
|
||||||
/* Theme */
|
/* Theme */
|
||||||
@import url("./themes/dark.css");
|
@import url("./themes/dark.css");
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
<link rel="stylesheet" href="/css/views/photos.css">
|
<link rel="stylesheet" href="/css/views/photos.css">
|
||||||
<link rel="stylesheet" href="/css/views/photosLightbox.css">
|
<link rel="stylesheet" href="/css/views/photosLightbox.css">
|
||||||
<link rel="stylesheet" href="/css/views/music.css">
|
<link rel="stylesheet" href="/css/views/music.css">
|
||||||
<link rel="stylesheet" href="/css/components/pathTooltip.css">
|
|
||||||
|
|
||||||
<!-- Scripts (defer: download in parallel, execute in order, after HTML parsed) -->
|
<!-- Scripts (defer: download in parallel, execute in order, after HTML parsed) -->
|
||||||
<script defer type="module" src="/js/core/i18n.js"></script>
|
<script defer type="module" src="/js/core/i18n.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user