INNER CODE UNIT · TypeScript

scaleStyles

tachyons-css/react-native-style-tachyons · src/styles/absolute.ts:1

export default function scaleStyles(rem: number): any {
    return {
        "absolute-fill": {
            position: "absolute",
            top: 0,
            bottom: 0,
            right: 0,
            left: 0
        },
        absolute: {
            position: "absolute"
        },
        "top-0": { top: 0 },
        "top-1": { top: Number(rem) },
        "top-2": { top: 2 * rem },
        "right-0": { right: 0 },
        "right-1": { right: Number(rem) },
        "right-2": { right: 2 * rem },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…