mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
fix tooltipShadow import
This commit is contained in:
parent
e1b03b7d9b
commit
531c83a944
@ -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
|
||||
|
@ -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({
|
||||
|
@ -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)`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user