office-ui-fabric-react#FontWeights TypeScript Examples

The following examples show how to use office-ui-fabric-react#FontWeights. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ModalTheme.tsx    From AIPerf with MIT License 6 votes vote down vote up
contentStyles = mergeStyleSets({
    container: {
        display: 'flex',
        flexFlow: 'column nowrap',
        alignItems: 'stretch'
    },
    header: [
        theme.fonts.xLargePlus,
        {
            flex: '1 1 auto',
            borderTop: `4px solid ${theme.palette.themePrimary}`,
            color: theme.palette.neutralPrimary,
            display: 'flex',
            fontSize: FontSizes.xLarge,
            alignItems: 'center',
            fontWeight: FontWeights.semibold,
            padding: '12px 12px 14px 24px'
        }
    ],
    body: {
        flex: '4 4 auto',
        padding: '0 24px 24px 24px',
        overflowY: 'hidden',
        selectors: {
            p: {
                margin: '14px 0'
            },
            'p:first-child': {
                marginTop: 0
            },
            'p:last-child': {
                marginBottom: 0
            }
        }
    }
})
Example #2
Source File: Header.tsx    From website with MIT License 6 votes vote down vote up
Header = () => {
    var theme = useTheme();
    const logoProperties = { width: 25, height: 25, marginTop: '5px', marginBottom: '5px' };
    const logoFileName = 'unimi150.png';
    const titleStyle: ITextStyles = { root: { fontSize: FontSizes.size20, fontWeight: FontWeights.semibold, color: theme.palette.themePrimary } };
    
    return (
        <header style={{ borderBottom: '1px solid', borderColor: theme.palette.neutralLight, marginBottom: -1 }}>

            <div>
                <Row className="headerRow">
                    <Col style={{ maxWidth: 250, paddingLeft: 0, paddingRight: 0, display: 'flex', alignItems: 'center' }}>
                        <div style={{ width: 250, marginTop: 5 }}>
                            <Link href="http://studentiunimi.it/">
                                <Image id="logo"
                                    src={process.env.PUBLIC_URL + '/logo/' + logoFileName}
                                    alt='Network logo'
                                    style={logoProperties}
                                    className="mr-2 mt-2 mb-1 d-inline"
                                />
                            </Link>

                            <div className="d-inline mt-2"><Link href="http://studentiunimi.it/" className="text-decoration-none"><Text styles={titleStyle}>Network StudentiUniMi</Text></Link></div>
                        </div>
                    </Col>

                    <Col style={{ paddingLeft: 0, paddingRight: 0, width: "55%" }} className="header-col">
                        <HeaderMenu/>
                    </Col>

                </Row>
            </div>
        
        </header>
    )
}
Example #3
Source File: Themes.ts    From website with MIT License 6 votes vote down vote up
fonts = {
    defaultFontStyle: { fontFamily: 'Segoe UI', fontWeight: FontWeights.regular },
    small: {
        fontSize: FontSizes.size12
    },
    medium: {
        fontSize: FontSizes.size14
    },
    large: {
        fontSize: FontSizes.size20
    },
    xLarge: {
        fontSize: FontSizes.size24
    },
    xLargePlus: {
        fontSize: FontSizes.size32
    },
    superLarge: {
        fontSize: FontSizes.size42
    } 
}
Example #4
Source File: Killjob.tsx    From AIPerf with MIT License 5 votes vote down vote up
styles = mergeStyleSets({
    buttonArea: {
        verticalAlign: 'top',
        display: 'inline-block',
        textAlign: 'center',
        height: 32
    },
    callout: {
        maxWidth: 300
    },
    header: {
        padding: '18px 24px 12px'
    },
    title: [
        theme.fonts.xLarge,
        {
            margin: 0,
            color: theme.palette.neutralPrimary,
            fontWeight: FontWeights.semilight
        }
    ],
    inner: {
        height: '100%',
        padding: '0 24px 20px'
    },
    actions: {
        position: 'relative',
        marginTop: 20,
        width: '100%',
        whiteSpace: 'nowrap'
    },
    buttons: {
        display: 'flex',
        justifyContent: 'flex-end',
        padding: '0 24px 24px'
    },
    subtext: [
        theme.fonts.small,
        {
            margin: 0,
            color: theme.palette.neutralPrimary,
            fontWeight: FontWeights.semilight
        }
    ]
})
Example #5
Source File: Progress.tsx    From AIPerf with MIT License 5 votes vote down vote up
styles = mergeStyleSets({
    buttonArea: {
        verticalAlign: 'top',
        display: 'inline-block',
        textAlign: 'center',
        // margin: '0 100px',
        minWidth: 30,
        height: 30
    },
    callout: {
        maxWidth: 300
    },
    header: {
        padding: '18px 24px 12px'
    },
    title: [
        theme.fonts.xLarge,
        {
            margin: 0,
            color: theme.palette.neutralPrimary,
            fontWeight: FontWeights.semilight
        }
    ],
    inner: {
        height: '100%',
        padding: '0 24px 20px'
    },
    actions: {
        position: 'relative',
        marginTop: 20,
        width: '100%',
        whiteSpace: 'nowrap'
    },
    subtext: [
        theme.fonts.small,
        {
            margin: 0,
            color: theme.palette.neutralPrimary,
            fontWeight: FontWeights.semilight
        }
    ],
    link: [
        theme.fonts.medium,
        {
            color: theme.palette.neutralPrimary
        }
    ]
})
Example #6
Source File: CreateLandingPage.tsx    From msteams-meetings-template with MIT License 5 votes vote down vote up
boldStyle = { root: { fontWeight: FontWeights.semibold } }
Example #7
Source File: ErrorPage.tsx    From msteams-meetings-template with MIT License 5 votes vote down vote up
boldStyle = { root: { fontWeight: FontWeights.semibold } }
Example #8
Source File: MeetingPage.tsx    From msteams-meetings-template with MIT License 5 votes vote down vote up
boldStyle = { root: { fontWeight: FontWeights.semibold } }
Example #9
Source File: SigninPage.tsx    From msteams-meetings-template with MIT License 5 votes vote down vote up
boldStyle = { root: { fontWeight: FontWeights.semibold } }
Example #10
Source File: header.tsx    From msteams-meetings-template with MIT License 5 votes vote down vote up
boldStyle = { root: { fontWeight: FontWeights.bold } }