angular/devtools/projects/ng-devtools/src/styles/_browser.scss
hawkgs 4f3ad98466 refactor(devtools): styles management (#59589)
- Move all styles to ng-devtools/src/styles.
- Create a BrowserService that detects the browsers and adds it as a class to the body. Move global browser styles.
- Create theme mixins that incorporate the browser type into them.
- Refactor some of the affected code along with the introduced changes.

PR Close #59589
2025-02-12 10:47:02 -08:00

15 lines
235 B
SCSS

/* Keep class names in sync with ThemeService */
/* Default. Target Chrome */
@mixin chrome {
:host-context(.chrome-ui) {
@content;
}
}
/* Target Firefox */
@mixin firefox {
:host-context(.firefox-ui) {
@content;
}
}