blob: 1136b34a3172a77c500083a2d4911b5e9405f19c (
plain) (
blame)
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
|
import { css } from "@emotion/react";
import colors from "./colors";
const selectable = css`
-moz-user-select: text;
-webkit-user-select: text;
-ms-user-select: text;
user-select: text;
`;
const unselectable = css`
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
`;
const hiddenInput = css`
position: absolute;
opacity: 0;
height: 0;
width: 0;
`;
const multiSelectInput = css`
display: inline-block;
position: relative;
margin: 1rem 0.5rem 0 0;
border: whitesmoke 0.2rem solid;
background-color: whitesmoke;
transition: background-color 200ms;
`;
const textInputs = css`
display: inline-block;
width: min(20rem, 90%);
height: 100%;
min-height: 2rem;
background: whitesmoke;
color: black;
padding: 0.15rem 1rem 0 1rem;
font: inherit;
margin-bottom: 0;
border: 0.1rem solid black;
border-radius: 8px;
`;
const invalidStyles = css`
.invalid-box {
-webkit-appearance: none;
-webkit-box-shadow: 0 0 0.6rem ${colors.error};
box-shadow: 0 0 0.6rem ${colors.error};
border: none;
}
`;
const containerStyles = css`
margin: auto;
width: 50%;
text-align: center;
font-size: 1.5rem;
> div {
display: inline-block;
margin: 2rem auto;
width: 50%;
}
@media (max-width: 850px) {
width: 100%;
> div {
display: flex;
justify-content: center;
margin: 0 auto;
}
}
.return_button {
text-align: left;
}
.return_button.closed {
text-align: center;
}
`;
const returnStyles = css`
padding: 0.5rem 2rem;
border-radius: 8px;
color: white;
text-decoration: none;
white-space: nowrap;
background-color: ${colors.greyple};
transition: background-color 300ms;
:hover {
background-color: ${colors.darkerGreyple};
}
`;
export {
selectable,
unselectable,
hiddenInput,
multiSelectInput,
textInputs,
invalidStyles,
containerStyles,
returnStyles
};
|