Add topology bg colour and LayoutContainer
This commit is contained in:
parent
fdb0478889
commit
9fa15aa700
@ -1,13 +1,4 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { breakpoints, colors } from '@ui/shared/constants';
|
|
||||||
import { remcalc } from '@ui/shared/functions';
|
|
||||||
|
|
||||||
// Main content Wrapper Styles
|
// Main content Wrapper Styles
|
||||||
export default styled.article`
|
export default styled.article``;
|
||||||
padding: 2rem;
|
|
||||||
// border-top: ${remcalc(1)} solid ${colors.base.grey};
|
|
||||||
|
|
||||||
${breakpoints.large`
|
|
||||||
padding: 0;
|
|
||||||
`}
|
|
||||||
`;
|
|
||||||
|
13
frontend/src/components/layout/container.js
Normal file
13
frontend/src/components/layout/container.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import styled from 'styled-components';
|
||||||
|
import Container from '@ui/components/container';
|
||||||
|
import { breakpoints } from '@ui/shared/constants';
|
||||||
|
|
||||||
|
const LayoutContainer = styled(Container)`
|
||||||
|
padding: 2rem;
|
||||||
|
|
||||||
|
${breakpoints.large`
|
||||||
|
padding: 0;
|
||||||
|
`}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export default LayoutContainer;
|
1
frontend/src/components/layout/index.js
Normal file
1
frontend/src/components/layout/index.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { default as LayoutContainer } from './container';
|
@ -64,6 +64,8 @@ const MetricCharts = ({
|
|||||||
yMax={type.max}
|
yMax={type.max}
|
||||||
yMeasurement={type.measurement}
|
yMeasurement={type.measurement}
|
||||||
yMin={type.min}
|
yMin={type.min}
|
||||||
|
width={940}
|
||||||
|
height={262}
|
||||||
/>
|
/>
|
||||||
</MetricView>
|
</MetricView>
|
||||||
);
|
);
|
||||||
|
@ -9,6 +9,7 @@ import { remcalc } from '@ui/shared/functions';
|
|||||||
import PropTypes from '@root/prop-types';
|
import PropTypes from '@root/prop-types';
|
||||||
import Ul from '@ui/components/horizontal-list/ul';
|
import Ul from '@ui/components/horizontal-list/ul';
|
||||||
import Breadcrumb from '@components/breadcrumb';
|
import Breadcrumb from '@components/breadcrumb';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
const StyledHorizontalList = styled(Ul)`
|
const StyledHorizontalList = styled(Ul)`
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -46,10 +47,12 @@ const Section = (props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<LayoutContainer>
|
||||||
<Breadcrumb {...props} />
|
<Breadcrumb {...props} />
|
||||||
<StyledHorizontalList name='project-nav'>
|
<StyledHorizontalList name='project-nav'>
|
||||||
{navLinks}
|
{navLinks}
|
||||||
</StyledHorizontalList>
|
</StyledHorizontalList>
|
||||||
|
</LayoutContainer>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -3,6 +3,7 @@ import EmptyServices from '@components/empty/services';
|
|||||||
import PropTypes from '@root/prop-types';
|
import PropTypes from '@root/prop-types';
|
||||||
import Row from '@ui/components/row';
|
import Row from '@ui/components/row';
|
||||||
import Column from '@ui/components/column';
|
import Column from '@ui/components/column';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import { H2 } from '@ui/components/base-elements';
|
import { H2 } from '@ui/components/base-elements';
|
||||||
import {
|
import {
|
||||||
FormGroup,
|
FormGroup,
|
||||||
@ -41,15 +42,13 @@ const ServicesView = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const filter = toggleValue === 'topology'
|
const filter = (
|
||||||
? (
|
|
||||||
<Column xs={7}>
|
<Column xs={7}>
|
||||||
<TopologyFilter services={services} project={project} />
|
<TopologyFilter services={services} project={project} />
|
||||||
</Column>
|
</Column>
|
||||||
) : null;
|
);
|
||||||
|
|
||||||
const toggle = services ? (
|
const toggle = services ? (
|
||||||
<PaddedRow>
|
|
||||||
<Column xs={5}>
|
<Column xs={5}>
|
||||||
<FormGroup name='service-view' value={toggleValue}>
|
<FormGroup name='service-view' value={toggleValue}>
|
||||||
<StyledLegend>View</StyledLegend>
|
<StyledLegend>View</StyledLegend>
|
||||||
@ -59,6 +58,11 @@ const ServicesView = ({
|
|||||||
</ToggleList>
|
</ToggleList>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Column>
|
</Column>
|
||||||
|
) : null;
|
||||||
|
|
||||||
|
const controls = services ? (
|
||||||
|
<PaddedRow>
|
||||||
|
{ toggle }
|
||||||
{ filter }
|
{ filter }
|
||||||
</PaddedRow>
|
</PaddedRow>
|
||||||
) : null;
|
) : null;
|
||||||
@ -68,13 +72,17 @@ const ServicesView = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
|
<LayoutContainer>
|
||||||
<Row>
|
<Row>
|
||||||
<Column xs={12}>
|
<Column xs={12}>
|
||||||
<H2>Services</H2>
|
<H2>Services</H2>
|
||||||
{ toggle }
|
{ controls }
|
||||||
{ content }
|
|
||||||
</Column>
|
</Column>
|
||||||
</Row>
|
</Row>
|
||||||
|
</LayoutContainer>
|
||||||
|
{ content }
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ import React from 'react';
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { Route, Switch } from 'react-router-dom';
|
import { Route, Switch } from 'react-router-dom';
|
||||||
|
|
||||||
import Container from '@ui/components/container';
|
|
||||||
import Org from '@containers/org';
|
import Org from '@containers/org';
|
||||||
import PropTypes from '@root/prop-types';
|
import PropTypes from '@root/prop-types';
|
||||||
import Redirect from '@components/redirect';
|
import Redirect from '@components/redirect';
|
||||||
@ -18,12 +17,10 @@ const Home = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Container>
|
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route component={Org} path='/:org/:section?' />
|
<Route component={Org} path='/:org/:section?' />
|
||||||
<Route component={notFound} />
|
<Route component={notFound} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Container>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
import { toggleMonitorView } from '@state/actions';
|
import { toggleMonitorView } from '@state/actions';
|
||||||
// import AddMetrics from '@root/components/metric-charts/add-metrics';
|
// import AddMetrics from '@root/components/metric-charts/add-metrics';
|
||||||
@ -24,12 +25,14 @@ const Metrics = ({
|
|||||||
const onRemoveMetric = (ev) => null;
|
const onRemoveMetric = (ev) => null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<LayoutContainer>
|
||||||
<MetricCharts
|
<MetricCharts
|
||||||
datasets={datasets}
|
datasets={datasets}
|
||||||
onDurationChange={metricDurationChange}
|
onDurationChange={metricDurationChange}
|
||||||
onRemoveMetric={onRemoveMetric}
|
onRemoveMetric={onRemoveMetric}
|
||||||
onSettingsClick={onMonitorsClick}
|
onSettingsClick={onMonitorsClick}
|
||||||
/>
|
/>
|
||||||
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
|
||||||
/*return (
|
/*return (
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import PeopleSection from '@components/people-list';
|
import PeopleSection from '@components/people-list';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
|
||||||
@ -21,7 +22,9 @@ import {
|
|||||||
|
|
||||||
const People = (props) => (
|
const People = (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<PeopleSection {...props} />
|
<PeopleSection {...props} />
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Switch, Route } from 'react-router-dom';
|
import { Switch, Route } from 'react-router-dom';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import Projects from '@containers/projects';
|
import Projects from '@containers/projects';
|
||||||
import Project from '@containers/project';
|
import Project from '@containers/project';
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const list = (props) => (
|
const list = (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<Projects {...props} />
|
<Projects {...props} />
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
const Settings = (props) => (
|
const Settings = (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<p>settings</p>
|
<p>settings</p>
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default (props) => (
|
export default (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<p>Project Feed</p>
|
<p>Project Feed</p>
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { toggleInstanceCollapsed } from '@state/actions';
|
import { toggleInstanceCollapsed } from '@state/actions';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import EmptyInstances from '@components/empty/instances';
|
import EmptyInstances from '@components/empty/instances';
|
||||||
import PropTypes from '@root/prop-types';
|
import PropTypes from '@root/prop-types';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
@ -19,11 +20,13 @@ const Instances = (props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
{empty}
|
{empty}
|
||||||
<InstanceList
|
<InstanceList
|
||||||
instances={instances}
|
instances={instances}
|
||||||
toggleCollapsed={toggleCollapsed}
|
toggleCollapsed={toggleCollapsed}
|
||||||
/>
|
/>
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -49,4 +52,3 @@ export default connect(
|
|||||||
mapStateToProps,
|
mapStateToProps,
|
||||||
mapDispatchToProps
|
mapDispatchToProps
|
||||||
)(Instances);
|
)(Instances);
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default (props) => (
|
export default (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<p>manifest</p>
|
<p>manifest</p>
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import PeopleSection from '@components/people-list';
|
import PeopleSection from '@components/people-list';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
|
||||||
@ -21,7 +22,9 @@ import {
|
|||||||
|
|
||||||
const People = (props) => (
|
const People = (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<PeopleSection {...props} />
|
<PeopleSection {...props} />
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default (props) => (
|
export default (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<p>Rollback</p>
|
<p>Rollback</p>
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Section from './section';
|
import Section from './section';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default (props) => (
|
export default (props) => (
|
||||||
<Section {...props}>
|
<Section {...props}>
|
||||||
|
<LayoutContainer>
|
||||||
<p>settings</p>
|
<p>settings</p>
|
||||||
|
</LayoutContainer>
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
|
<LayoutContainer>
|
||||||
<p>activity-feed</p>
|
<p>activity-feed</p>
|
||||||
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
|
<LayoutContainer>
|
||||||
<p>firewall</p>
|
<p>firewall</p>
|
||||||
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { toggleInstanceCollapsed } from '@state/actions';
|
import { toggleInstanceCollapsed } from '@state/actions';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import EmptyInstances from '@components/empty/instances';
|
import EmptyInstances from '@components/empty/instances';
|
||||||
import PropTypes from '@root/prop-types';
|
import PropTypes from '@root/prop-types';
|
||||||
import InstanceList from '@components/instance-list';
|
import InstanceList from '@components/instance-list';
|
||||||
@ -15,13 +16,13 @@ const Instances = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<LayoutContainer>
|
||||||
{empty}
|
{empty}
|
||||||
<InstanceList
|
<InstanceList
|
||||||
instances={instances}
|
instances={instances}
|
||||||
toggleCollapsed={toggleCollapsed}
|
toggleCollapsed={toggleCollapsed}
|
||||||
/>
|
/>
|
||||||
</div>
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
|
<LayoutContainer>
|
||||||
<p>networks</p>
|
<p>networks</p>
|
||||||
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
|
<LayoutContainer>
|
||||||
<p>service-manifest</p>
|
<p>service-manifest</p>
|
||||||
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
|
<LayoutContainer>
|
||||||
<p>summary</p>
|
<p>summary</p>
|
||||||
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
|
<LayoutContainer>
|
||||||
<p>tags-metadata</p>
|
<p>tags-metadata</p>
|
||||||
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
@ -2,6 +2,7 @@ import React from 'react';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import PropTypes from '@root/prop-types';
|
import PropTypes from '@root/prop-types';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import ServiceItem from '@components/service/item';
|
import ServiceItem from '@components/service/item';
|
||||||
import UnmanagedInstances from '@components/services/unmanaged-instances';
|
import UnmanagedInstances from '@components/services/unmanaged-instances';
|
||||||
import { toggleTooltip } from '@state/actions';
|
import { toggleTooltip } from '@state/actions';
|
||||||
@ -79,7 +80,7 @@ class Services extends React.Component {
|
|||||||
));
|
));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<LayoutContainer>
|
||||||
{ instances && <UnmanagedInstances instances={instances} /> }
|
{ instances && <UnmanagedInstances instances={instances} /> }
|
||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
<div ref={this.ref('container')}>
|
<div ref={this.ref('container')}>
|
||||||
@ -87,7 +88,7 @@ class Services extends React.Component {
|
|||||||
<ServicesTooltip {...uiTooltip} />
|
<ServicesTooltip {...uiTooltip} />
|
||||||
</div>
|
</div>
|
||||||
</StyledContainer>
|
</StyledContainer>
|
||||||
</div>
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,11 @@ import React from 'react';
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import PropTypes from '@root/prop-types';
|
import PropTypes from '@root/prop-types';
|
||||||
|
import { colors } from '@ui/shared/constants';
|
||||||
import { TopologyGraph } from '@ui/components/topology';
|
import { TopologyGraph } from '@ui/components/topology';
|
||||||
|
import { LayoutContainer } from '@components/layout';
|
||||||
import ServicesTooltip from '@components/services/tooltip';
|
import ServicesTooltip from '@components/services/tooltip';
|
||||||
|
|
||||||
|
|
||||||
import { toggleTooltip } from '@state/actions';
|
import { toggleTooltip } from '@state/actions';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -15,7 +16,11 @@ import {
|
|||||||
serviceUiTooltipSelector
|
serviceUiTooltipSelector
|
||||||
} from '@state/selectors';
|
} from '@state/selectors';
|
||||||
|
|
||||||
const StyledContainer = styled.div`
|
const StyledBackground = styled.div`
|
||||||
|
background-color: ${colors.base.whiteActive};
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StyledContainer = styled(LayoutContainer)`
|
||||||
position: relative;
|
position: relative;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -31,6 +36,7 @@ const Services = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<StyledBackground>
|
||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
<TopologyGraph
|
<TopologyGraph
|
||||||
onQuickActions={onQuickActions}
|
onQuickActions={onQuickActions}
|
||||||
@ -38,6 +44,7 @@ const Services = (props) => {
|
|||||||
/>
|
/>
|
||||||
<ServicesTooltip {...uiTooltip} />
|
<ServicesTooltip {...uiTooltip} />
|
||||||
</StyledContainer>
|
</StyledContainer>
|
||||||
|
</StyledBackground>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@
|
|||||||
"sections": [
|
"sections": [
|
||||||
"summary",
|
"summary",
|
||||||
"instances",
|
"instances",
|
||||||
"metric-s",
|
"metrics",
|
||||||
"networks",
|
"networks",
|
||||||
"tags-metadata",
|
"tags-metadata",
|
||||||
"activity-feed",
|
"activity-feed",
|
||||||
|
@ -332,7 +332,7 @@
|
|||||||
"sections": [
|
"sections": [
|
||||||
"summary",
|
"summary",
|
||||||
"instances",
|
"instances",
|
||||||
"metric-s",
|
"metrics",
|
||||||
"networks",
|
"networks",
|
||||||
"tags-metadata",
|
"tags-metadata",
|
||||||
"activity-feed",
|
"activity-feed",
|
||||||
|
@ -2,6 +2,7 @@ import { storiesOf } from '@kadira/storybook';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { colors } from '../../shared/constants';
|
import { colors } from '../../shared/constants';
|
||||||
|
import { remcalc } from '../../shared/functions';
|
||||||
import Column from '../column';
|
import Column from '../column';
|
||||||
import Row from '../row';
|
import Row from '../row';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { Subscriber } from 'react-broadcast';
|
import { Subscriber } from 'react-broadcast';
|
||||||
import { Baseline } from '../../shared/composers';
|
import { Baseline } from '../../shared/composers';
|
||||||
import { is, isNot } from '../../shared/functions';
|
import { is } from '../../shared/functions';
|
||||||
import Column from '../column';
|
import Column from '../column';
|
||||||
import Row from '../row';
|
import Row from '../row';
|
||||||
import View from './view';
|
import View from './view';
|
||||||
|
@ -9,7 +9,6 @@ const Container = styled.div`
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: ${remcalc(24)} 0;
|
margin: ${remcalc(24)} 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: ${remcalc(940)};
|
|
||||||
box-shadow: ${boxes.bottomShaddow};
|
box-shadow: ${boxes.bottomShaddow};
|
||||||
border: ${remcalc(1)} solid ${colors.base.grey};
|
border: ${remcalc(1)} solid ${colors.base.grey};
|
||||||
background-color: ${colors.base.white};
|
background-color: ${colors.base.white};
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { clearfix, Baseline } from '../../shared/composers';
|
import { clearfix, Baseline } from '../../shared/composers';
|
||||||
|
import { remcalc } from '../../shared/functions';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { colors } from '../../shared/constants';
|
import { colors } from '../../shared/constants';
|
||||||
import { Baseline } from '../../shared/composers';
|
import { Baseline } from '../../shared/composers';
|
||||||
|
import { remcalc } from '../../shared/functions';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
@ -36,7 +36,8 @@ const StyledLabel = styled.label`
|
|||||||
font-size: ${remcalc(20)};
|
font-size: ${remcalc(20)};
|
||||||
margin: 0 0.5rem 0 0;
|
margin: 0 0.5rem 0 0;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
box-shadow: inset ${remcalc(2)} ${remcalc(-6)} ${remcalc(10)} 0 rgba(0,0,0,0.06);
|
box-shadow: inset ${remcalc(2)} ${remcalc(-6)}
|
||||||
|
${remcalc(10)} 0 rgba(0,0,0,0.06);
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledPanel = styled.div`
|
const StyledPanel = styled.div`
|
||||||
|
Loading…
Reference in New Issue
Block a user