-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsession.styles.ts
More file actions
161 lines (151 loc) · 3.5 KB
/
session.styles.ts
File metadata and controls
161 lines (151 loc) · 3.5 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import { css } from 'emotion';
import { theme } from 'core/theme';
const { palette, spacing, typography, breakpoints } = theme;
const color = palette.customPalette;
export const root = css`
display: grid;
grid-row-gap: 1rem;
grid-column-gap: 1rem;
grid-template-columns: auto 1fr;
grid-template-areas:
'label label'
'textarea textarea'
'undo send';
`;
export const label = css`
grid-area: label;
display: block;
font-size: 1.125rem;
font-family: ${typography.fontFamily};
`;
export const textarea = css`
grid-area: textarea;
box-sizing: border-box;
font-family: ${typography.fontFamily};
font-size: 1rem;
background-color: ${color.background};
border: 2px solid ${color.secondary};
white-space: pre-wrap;
resize: none;
&:focus {
outline: none;
}
`;
export const sendButton = css`
grid-area: send;
display: flex;
align-items: center;
padding: ${spacing(1.25)} ${spacing(1.875)};
flex: 1;
font-size: 1.188rem;
font-weight: 400;
text-transform: capitalize;
border-radius: 0;
color: ${color.successLight};
background-color: white;
border: 2px solid ${color.successLight};
transition: all 0.2s;
&:hover,
&:active {
color: white;
background-color: ${color.successLight};
border: 2px solid ${color.successLight};
outline: none;
}
@media (max-width: ${breakpoints.values.xs}px) {
color: white;
background-color: ${color.successLight};
border: none;
&:hover,
&:active {
background-color: ${color.successDark};
border: none;
}
}
`;
export const sendIcon = css`
margin-left: ${spacing(1.25)};
font-size: 1.25rem;
display: none;
@media (min-width: ${breakpoints.values.xs}px) {
display: initial;
}
`;
export const undoButton = css`
grid-area: undo;
display: flex;
align-items: center;
padding: ${spacing(1.25)} ${spacing(1.875)};
font-size: 1.188rem;
font-weight: 400;
text-transform: capitalize;
color: ${color.alertLight};
background-color: white;
border-radius: 0;
border: 2px solid ${color.alertLight};
transition: all 0.2s;
&:hover,
&:active {
color: white;
background-color: ${color.alertLight};
border: 2px solid ${color.alertLight};
outline: none;
}
@media (max-width: ${breakpoints.values.xs}px) {
color: white;
background-color: ${color.alertLight};
border: none;
&:hover,
&:active {
background-color: ${color.alertDark};
border: none;
}
}
`;
export const undoIcon = css`
margin-right: ${spacing(1.25)};
font-size: 1.25rem;
display: none;
@media (min-width: ${breakpoints.values.xs}px) {
display: initial;
}
`;
export const downloadButton = css`
display: flex;
align-items: center;
padding: ${spacing(1.25)} ${spacing(1.875)};
flex: 1;
font-size: 1.188rem;
font-weight: 400;
text-transform: capitalize;
border-radius: 0;
color: ${color.blueDark};
background-color: white;
border: 2px solid ${color.blueDark};
transition: all 0.2s;
&:hover,
&:active {
color: white;
background-color: ${color.blueDark};
border: 2px solid ${color.blueDark};
outline: none;
}
@media (max-width: ${breakpoints.values.xs}px) {
color: white;
background-color: ${color.blueDark};
border: none;
&:hover,
&:active {
background-color: ${color.blueDark};
border: none;
}
}
`;
export const downloadIcon = css`
margin-right: ${spacing(1.25)};
font-size: 1.25rem;
display: none;
@media (min-width: ${breakpoints.values.xs}px) {
display: initial;
}
`;