-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.css
99 lines (80 loc) · 1.79 KB
/
tailwind.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
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
@apply appearance-none;
}
body {
width: 100%;
height: 100%;
}
img {
max-width: unset;
}
}
;
@layer components {
/* Skeleton Component */
.skeleton {
background-color: #ddd;
opacity: 0.8;
animation: skeleton-loading 1s linear infinite alternate;
}
.skeleton.skeleton-text {
width: 100%;
height: 16px;
}
.skeleton.skeleton-thumbnail {
width: 100%;
object-fit: cover;
}
/* Loader Component */
.lds-ring {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 3rem;
height: 3rem;
margin: 8px;
border: 5px solid #fff;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: rgb(102, 102, 102) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Animation */
@keyframes skeleton-loading {
0% {
background-color: rgb(220, 220, 220)
}
100% {
background-color: rgb(255, 255, 255)
}
}
}