Function to help generate sizing solutions across Javascript and CSS.
This commit is contained in:
5
web/src/elements/utils/getRootStyle.ts
Normal file
5
web/src/elements/utils/getRootStyle.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export function getRootStyle(selector: string, element: HTMLElement = document.documentElement) {
|
||||
return getComputedStyle(element, null).getPropertyValue(selector);
|
||||
}
|
||||
|
||||
export default getRootStyle;
|
||||
Reference in New Issue
Block a user