1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

fix baseline grid

This commit is contained in:
Sérgio Ramos 2017-02-24 12:13:36 +00:00
parent 9cda6aec2d
commit e6a745db9a
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ module.exports = {
'named-modules': () => new webpack.NamedModulesPlugin(),
'define': () => new webpack.DefinePlugin({
'process.env': {
BASELINE_GRID: JSON.stringify(process.env.BASELINE_GRID),
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development'),
APP_NAME: JSON.stringify(pkg.name),
APP_VERSION: JSON.stringify(pkg.version)

View File

@ -1,5 +1,6 @@
import React from 'react';
import { Baseline } from '../../shared/composers';
import { unitcalc } from '../../shared/functions';
import styled from 'styled-components';
const StyledBaselineBackground = styled.div`
@ -24,7 +25,7 @@ const StyledBaselineBackground = styled.div`
transparent 50%,
transparent
);
background-size: 100% 6px;
background-size: 100% ${unitcalc(1)};
}
`;