Add initial styles

pull/10616/head
Andrew Watkins 2018-03-29 13:28:48 -07:00 committed by Brandon Farmer
parent ae707ac283
commit 931b8ef1f5
5 changed files with 26 additions and 4 deletions

View File

@ -16,7 +16,7 @@ interface Props {
const Node: SFC<Props> = ({node}) => {
return (
<div>
<div className="func-node">
<div>{node.name}</div>
</div>
)

View File

@ -21,8 +21,10 @@ interface Props {
const TimeMachine: SFC<Props> = ({funcs, nodes, onAddNode}) => {
return (
<div>
{nodes.map((n, i) => <Node key={i} node={n} />)}
<FuncSelector funcs={funcs} onAddNode={onAddNode} />
<div className="func-node-container">
{nodes.map((n, i) => <Node key={i} node={n} />)}
<FuncSelector funcs={funcs} onAddNode={onAddNode} />
</div>
</div>
)
}

View File

@ -29,7 +29,7 @@ export class IFQLPage extends PureComponent<Props, State> {
this.state = {
funcs: [],
ast: null,
query: 'from(db: "")',
query: 'from(db: "telegraf") |> filter() |> range()',
}
}

View File

@ -71,6 +71,7 @@
@import 'components/table-graph';
@import 'components/threshold-controls';
@import 'components/kapacitor-logs-table';
@import 'components/func-node.scss';
// Pages
@import 'pages/config-endpoints';

View File

@ -0,0 +1,19 @@
.func-node-container {
display: inline-flex;
flex-direction: column;
}
.func-node {
background: #252b35;
border-radius: $radius-small;
padding: 10px;
width: auto;
display: flex;
flex-direction: column;
color: $ix-text-default;
text-transform: uppercase;
margin: $ix-marg-a;
font-family: $ix-text-font;
font-weight: 500;
cursor: pointer;
}