jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
112 lines (91 loc) • 3.02 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var styled = require('styled-components');
var styled__default = _interopDefault(styled);
var stylesResetNormalize = require('./styles-reset-normalize.js');
const bodyStyles = styled.css `
${stylesResetNormalize.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 = styled.createGlobalStyle `
${bodyStyles}
`;
exports.AppGlobalStyle = AppGlobalStyle;
exports.bodyStyles = bodyStyles;