Function to help generate sizing solutions across Javascript and CSS.
This commit is contained in:
parent
2545815f08
commit
e3b1ba63a6
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 a new issue