-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
103 lines (89 loc) · 1.63 KB
/
main.css
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
:root {
--dark: #161a1d;
--light: #f8f9fa;
}
* {
font-family: 'Helvetica', sans serif;
box-sizing: border-box;
color: var(--light);
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
overflow-y: hidden;
}
.container {
align-items: center;
background-color: var(--dark);
cursor: pointer;
display: grid;
grid-template-columns: auto auto;
column-gap: 15px;
height: 100%;
justify-content: center;
width: 100%;
}
#textContainer {
font-size: 72px;
font-weight: normal;
}
#toast {
display: none;
background-color: white;
border-radius: 12px;
bottom: -40px;
box-shadow: 1px 5px 5px #000;
color: #222;
left: 50%;
padding: 5px 25px;
position: absolute;
transform: translateX(-50%);
}
#toast.visible {
display: block;
animation-name: appear;
animation-duration: 0.4s;
bottom: 20px;
}
#toast.visible.disappearing {
animation-name: disappear;
animation-duration: 0.2s;
}
#copyButton {
background-color: transparent;
border: 1px solid var(--light);
color: var(--light);
padding: 5px 18px;
border-radius: 10px;
cursor: pointer;
transition-property: background-color, color;
transition-duration: 0.3s;
font-weight: 700;
}
#copyButton:hover {
background-color: var(--light);
color: var(--dark);
}
#copyButton:active {
opacity: 0.8;
}
@keyframes appear {
from {
bottom: 0px;
}
to {
bottom: 20px;
}
}
@keyframes disappear {
from {
display: 20px;
}
to {
bottom: -20px;
padding: 5px 0;
font-size: 5px;
}
}