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