jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
76 lines (61 loc) • 1.58 kB
JavaScript
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};
}
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.font.color};
}
input:-moz-placeholder {
/* Firefox 18- */
color: ${props => props.theme.font.color};
}
input::-moz-placeholder {
/* Firefox 19+ */
color: ${props => props.theme.font.color};
}
input:-ms-input-placeholder {
color: ${props => props.theme.font.color};
}
`;
const AppGlobalStyle = createGlobalStyle `
${bodyStyles}
`;
export { AppGlobalStyle, bodyStyles };