Revert "fix: update header background file modification"

This reverts commit 443335ed8e.
This commit is contained in:
Ajit Mehrotra
2025-12-30 18:07:20 -05:00
parent 00f015f1b4
commit 1c4f33e4fb
4 changed files with 4 additions and 4 deletions

View File

@@ -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}`;
}
}

View File

@@ -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}`;
}
}

View File

@@ -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}`;
}
}

View File

@@ -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}`;
}
}