1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-29 05:10:05 +02:00

fix tooltipShadow import

This commit is contained in:
Sérgio Ramos 2017-03-22 14:41:53 +00:00 committed by Judit Greskovits
parent e1b03b7d9b
commit 531c83a944
3 changed files with 13 additions and 7 deletions

View File

@ -19,10 +19,13 @@ if (process.env.NODE_ENV !== 'production') {
});
}
const states = {
all: MockState,
testing: MockStateTesting
}
const query = qs.parse(window.location.search.replace(/^\?/, ''));
const mockState = query.mock !== 'all'
? MockStateTesting
: MockState;
const mockState = states[query.mock || 'testing'];
// node_memory_rss_bytes
// node_memory_heap_total_bytes

View File

@ -1,4 +1,8 @@
import { remcalc, unitcalc } from '../../shared/functions';
import { boxes, colors } from '../../shared/constants';
import styled from 'styled-components';
import React from 'react';
import {
absolutePosition,
baseBox,
@ -7,9 +11,7 @@ import {
moveZ,
getMeasurement
} from '../../shared/composers';
import { boxes, colors, tooltipShadow } from '../../shared/constants';
import styled from 'styled-components';
import React from 'react';
const ItemPadder = 9;
const WrapperPadder = 24;
@ -41,7 +43,7 @@ const StyledList = styled.ul`
${props => props.styles}
${baseBox({
shadow: tooltipShadow
shadow: boxes.tooltipShadow
})}
${moveZ({

View File

@ -5,6 +5,7 @@ export const borderRadius = remcalc(4);
export const bottomShaddow = `0 ${remcalc(2)} 0 0 rgba(0, 0, 0, 0.05)`;
export const bottomShaddowDarker = `0 ${remcalc(2)} 0 0 rgba(0, 0, 0, 0.1)`;
export const insetShaddow = `inset 0 ${remcalc(3)} 0 0 rgba(0, 0, 0, 0.05)`;
export const tooltipShadow =
`0 ${remcalc(2)} ${remcalc(6)} ${remcalc(1)} rgba(0, 0, 0, 0.1)`;