-
Notifications
You must be signed in to change notification settings - Fork 311
/
Copy pathApp.style.js
27 lines (25 loc) · 865 Bytes
/
App.style.js
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 styled from 'styled-components'
export const LightSource = styled.div`
position: absolute;
left: ${props => props.left};
top: ${props => props.top};
right: ${props => props.right};
bottom: ${props => props.bottom};
background: transparent;
height: 30px;
width: 30px;
cursor: pointer;
border: 2px solid var(--textColor);
opacity: 0.8;
border-bottom-right-radius: ${props =>
props.right === 'unset' && props.bottom === 'unset' ? '30px' : 'unset'};
border-bottom-left-radius: ${props =>
props.left === 'unset' && props.bottom === 'unset' ? '30px' : 'unset'};
border-top-right-radius: ${props =>
props.right === 'unset' && props.top === 'unset' ? '30px' : 'unset'};
border-top-left-radius: ${props =>
props.left === 'unset' && props.top === 'unset' ? '30px' : 'unset'};
&.active {
background: #ffff00;
}
`