-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathbatch-styled.ts
93 lines (76 loc) · 1.55 KB
/
batch-styled.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { grey } from '../util/colors'
import styled, { css } from 'styled-components'
export const buttonPixels = 51
export const activeCss = css`
/* Make elements internal content slightly transparent on hover. */
& > * {
opacity: 90%;
}
`
const buttonTransitionCss = css`
transition: all 250ms ease-out;
`
export const boxShadowCss = css`
box-shadow: rgba(0, 0, 0, 0.15) 0 0 20px;
`
// TODO: this needs to be in line with the mode selector buttons, ideally importing the styles
export const buttonCss = css`
border-radius: 5px;
border: 0px;
height: ${buttonPixels}px;
margin: 0px;
width: ${buttonPixels}px;
${buttonTransitionCss}
&:active {
background: ${grey[50]};
}
&:hover {
${boxShadowCss}
}
svg {
max-height: 36px;
}
`
export const Button = styled.button`
${buttonCss}
`
export const TripFormButtonContainer = styled.div`
display: flex;
gap: 2px;
`
export const PlanTripButton = styled(Button)`
background-color: green;
color: #ffffffdd;
padding: 5px;
&:active {
${activeCss}
background: green;
filter: saturate(50%);
}
span {
display: inline-block;
margin-top: -5px;
}
`
export const ModeSelectorContainer = styled.div`
align-items: flex-start;
display: flex;
float: right;
justify-content: space-between;
width: 100%;
${PlanTripButton} {
margin-top: 0px;
}
fieldset {
gap: 0 2px;
margin: 0 2px 0 0;
input {
margin: 0;
}
}
`
export const MainSettingsRow = styled.div`
display: flex;
flex-direction: column;
gap: 10px;
`