forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.js
More file actions
71 lines (65 loc) · 1.83 KB
/
elements.js
File metadata and controls
71 lines (65 loc) · 1.83 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
import styled from 'styled-components';
import { motion } from 'framer-motion';
export const ToastContainer = styled(motion.div)`
min-width: 360px;
font-size: 0.8rem;
line-height: 2rem;
color: #999999;
text-align: center;
padding: 0.125rem 0 0.125rem 0.5rem;
display: block;
background: #151515;
border-top: 1px solid #242424;
position: fixed;
z-index: 99999999;
bottom: 2rem;
left: 50%;
border-radius: 0.25rem;
transform: translateX(-50%);
box-shadow: 0px 0px 1rem rgba(0, 0, 0, 0.12),
0px 16px 32px rgba(0, 0, 0, 0.24);
white-space: nowrap;
@media screen and (max-width: 320px) {
font-size: 0.7rem;
line-height: 2rem;
min-width: 320px;
border-radius: 0rem;
bottom: 0rem;
}
@media screen and (min-width: 576px) {
min-width: 440px;
font-size: 1rem;
line-height: 2rem;
padding: 0.125rem 0 0.125rem 2rem;
border-radius: 0.25rem;
bottom: 2rem;
box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.12),
0px 16px 32px rgba(0, 0, 0, 0.24);
}
a {
text-decoration: none;
color: #0971f1;
font-weight: 500;
border-bottom: 1px solid transparant;
transform: all 100ms ease-out;
}
a:hover {
border-bottom: 1px solid;
}
button {
appearance: none;
background: transparent;
border: none;
cursor: pointer;
overflow: hidden;
text-indent: 99px;
float: right;
outline: none;
display: block;
width: 2em;
height: 2rem;
margin: 0 0.25rem;
background-position: center;
background-image: url("data:image/svg+xml,%3Csvg width='24' height='32' viewBox='0 0 24 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 11.9091L16.0909 11L12 15.0909L7.90909 11L7 11.9091L11.0909 16L7 20.0909L7.90909 21L12 16.9091L16.0909 21L17 20.0909L12.9091 16L17 11.9091Z' fill='%23999999'/%3E%3C/svg%3E%0A");
}
`;