-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
118 lines (106 loc) · 2.12 KB
/
style.css
File metadata and controls
118 lines (106 loc) · 2.12 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
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: "Inter", sans-serif;
background-color: #fafafa;
width: 100%;
}
.dark {
background-color: #111827;
}
thead tr th {
padding: 10px 5px;
}
.coin-list tr td {
padding: 20px 20px;
}
tbody tr:nth-child(odd) {
background-color: #f5f5f5;
}
.dark tbody tr:nth-child(odd) {
background-color: #0a0a0a;
}
.search-box {
animation: long 0.5s ease-in-out;
max-width: 200px;
}
@keyframes long {
0% {
width: 45px;
}
100% {
width: 200px;
}
}
/* loader from https://uiverse.io/G4b413l/jolly-kangaroo-36 */
.newtons-cradle {
--uib-size: 50px;
--uib-speed: 1.2s;
--uib-color: black;
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: var(--uib-size);
height: var(--uib-size);
}
.dark .newtons-cradle {
--uib-color: white;
}
.newtons-cradle__dot {
position: relative;
display: flex;
align-items: center;
height: 100%;
width: 25%;
transform-origin: center top;
}
.newtons-cradle__dot::after {
content: "";
display: block;
width: 100%;
height: 25%;
border-radius: 50%;
background-color: var(--uib-color);
}
.newtons-cradle__dot:first-child {
animation: swing var(--uib-speed) linear infinite;
}
.newtons-cradle__dot:last-child {
animation: swing2 var(--uib-speed) linear infinite;
}
@keyframes swing {
0% {
transform: rotate(0deg);
animation-timing-function: ease-out;
}
25% {
transform: rotate(70deg);
animation-timing-function: ease-in;
}
50% {
transform: rotate(0deg);
animation-timing-function: linear;
}
}
@keyframes swing2 {
0% {
transform: rotate(0deg);
animation-timing-function: linear;
}
50% {
transform: rotate(0deg);
animation-timing-function: ease-out;
}
75% {
transform: rotate(-70deg);
animation-timing-function: ease-in;
}
}