forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.ts
More file actions
27 lines (24 loc) · 675 Bytes
/
styles.ts
File metadata and controls
27 lines (24 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { css } from 'emotion'
export const path = (visible: boolean) => css`
position: relative;
height: ${visible ? '100%' : '0'}
visibility: ${visible === false ? 'hidden' : 'visible'};
`
export const pathLine = css`
position: absolute;
top: 50%;
left: 0;
z-index: 0;
width: 100%;
border-bottom: 1px solid transparent;
`
export const pathText = (visible: boolean) => css`
position: relative;
z-index: 1;
margin: 0 var(--padding-2) 0 0;
padding: var(--padding-1) var(--padding-2);
background-color: var(--color-dark-2);
color: var(--color-white-1);
border-radius: var(--border-radius-1);
visibility: ${visible ? 'visible' : 'hidden'};
`