mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
Revert "fix: update header background file modification"
This reverts commit 443335ed8e.
This commit is contained in:
@@ -50,6 +50,6 @@ export default class DefaultAzureCssModification extends FileModification {
|
||||
const before = source.slice(0, insertIndex);
|
||||
const after = source.slice(insertIndex);
|
||||
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,6 @@ export default class DefaultBlackCssModification extends FileModification {
|
||||
const before = source.slice(0, insertIndex);
|
||||
const after = source.slice(insertIndex);
|
||||
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,6 @@ export default class DefaultGrayCssModification extends FileModification {
|
||||
const before = source.slice(0, insertIndex);
|
||||
const after = source.slice(insertIndex);
|
||||
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,6 @@ export default class DefaultWhiteCssModification extends FileModification {
|
||||
const before = source.slice(0, insertIndex);
|
||||
const after = source.slice(insertIndex);
|
||||
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
|
||||
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user