Download tools/ui/src/lib/utils/css.ts from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/ui/src/lib/utils/css.ts
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github/tools/ui/src/lib/utils/css.ts
-
curl -L -o css.ts https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/tools/ui/src/lib/utils/css.ts
271 Bytes
| /** | |
| * Converts a rem CSS value to pixels based on the document root font size. | |
| */ | |
| export function remToPx(rem: string): number { | |
| const val = parseFloat(rem); | |
| const fontSize = parseFloat(getComputedStyle(document.documentElement).fontSize); | |
| return val * fontSize; | |
| } | |