UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

104 lines (86 loc) 2.71 kB
import { css, createGlobalStyle } from 'styled-components'; import { fullReset } from './styles-reset-normalize.js'; const bodyStyles = css ` ${fullReset} html { font-size: ${props => props.theme.font.fontSize ? props.theme.font.fontSize : '14px'}; color: ${props => props.theme.font.color}; } body { font-family: ${props => props.theme.font.body}; line-height: ${props => props.theme.font.lineHeight ? props.theme.font.lineHeight : '1.5'}; background-color: ${props => props.theme.layout.background}; margin: 0; } h1, h2, h3 { font-family: ${props => props.theme.font.heading.font}; font-weight: ${props => props.theme.font.heading.fontWeight}; margin: 0; } h1 { font-size: ${props => props.theme.font.heading.h1.mobile.fontSize}; line-height: ${props => props.theme.font.heading.h1.mobile.lineHeight}; ${props => props.theme.mediaQueries.small} { font-size: ${props => props.theme.font.heading.h1.desktop.fontSize}; line-height: ${props => props.theme.font.heading.h1.desktop.lineHeight}; } } h2 { font-size: ${props => props.theme.font.heading.h2.mobile.fontSize}; line-height: ${props => props.theme.font.heading.h2.mobile.lineHeight}; ${props => props.theme.mediaQueries.small} { font-size: ${props => props.theme.font.heading.h2.desktop.fontSize}; line-height: ${props => props.theme.font.heading.h2.desktop.lineHeight}; } } h3 { font-size: ${props => props.theme.font.heading.h3.mobile.fontSize}; line-height: ${props => props.theme.font.heading.h3.mobile.lineHeight}; ${props => props.theme.mediaQueries.small} { font-size: ${props => props.theme.font.heading.h3.desktop.fontSize}; line-height: ${props => props.theme.font.heading.h3.desktop.lineHeight}; } } a { text-decoration: ${props => props.theme.font.AchorTextDecoration}; color: ${props => props.theme.colors.primary}; } p { line-height: 1.5rem; margin-top: 1rem; } ul { padding: 0; } .hidden { display: none; } button { background: transparent; border: none; box-shadow: none; } input { color: ${props => props.theme.font.color}; } input::-webkit-input-placeholder { color: ${props => props.theme.colors.gray3}; } input:-moz-placeholder { /* Firefox 18- */ color: ${props => props.theme.colors.gray3}; } input::-moz-placeholder { /* Firefox 19+ */ color: ${props => props.theme.colors.gray3}; } input:-ms-input-placeholder { color: ${props => props.theme.colors.gray3}; } `; const AppGlobalStyle = createGlobalStyle ` ${bodyStyles} `; export { AppGlobalStyle, bodyStyles };