-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
256 lines (245 loc) · 5.16 KB
/
style.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
/* Colors */
:root {
--primary-color: #7289da;
--secondary-color: #99aab5;
--background-color: #36393f;
--text-color: #ffffff;
}
@font-face {
font-family: font;
src: url(https://gdjkhp.github.io/fonts/AmaticSC-Regular.ttf);
}
body {
font-family: font;
background-color: black;
color: white;
}
/* Rank card */
.rank-card {
background-color: var(--background-color);
border-radius: 10px;
padding: 20px;
width: 500px;
margin: auto; /* center */
position: relative;
z-index: 1;
}
.rank-card-avatar {
border-radius: 50%;
overflow: hidden;
position: absolute;
height: 120px;
width: 120px;
}
.rank-card-avatar img {
height: 100%;
width: 100%;
}
/* Progress bar */
.progress {
background-color: var(--secondary-color);
border-radius: 10px;
height: 20px;
overflow: hidden;
display: flex;
justify-content: flex-start;
position: relative; /* Add this */
z-index: 2;
border: #000 solid 1px;
}
.progress-bar {
background-color: var(--primary-color);
height: 100%;
}
.progress-percent {
position: absolute; /* Add this */
right: 1%;
font-weight: bold;
}
.progress2 {
background-color: var(--secondary-color);
border-radius: 0px 0px 5px 5px;
height: 10px;
overflow: hidden;
display: flex;
justify-content: flex-start;
position: relative; /* Add this */
width: 95%;
margin: -1px auto 1px auto;
z-index: 1;
border: #000 solid 1px;
}
.progress-bar2 {
background-color: var(--primary-color);
height: 100%;
}
.progress-percent2 {
position: absolute; /* Add this */
right: 1%;
font-weight: bold;
font-size: 8px;
}
.progress-label {
font-size: 16px;
}
.progress-label-limit {
opacity: 0.7;
}
.progress-label-msg {
font-weight: bold;
}
/* let me take it from here */
/* div, span {
border: 1px solid black;
} */
.info {
width: 75%;
margin-left: 25%;
}
/* user section */
.usernamegroup {
display: flex;
justify-content: space-between;
align-items: center;
}
.usernamegroup a {
text-decoration: none;
}
.usernamegroup a:hover {
text-decoration: underline;
}
.otherstats:hover, .copy:hover, #json:hover, #wychee:hover, .copylink:hover {
text-decoration: underline;
}
.discriminator {
font-size: 16px;
opacity: 0.7;
}
/* rank section */
.rankgroup {
text-align: right;
}
.rank {
font-size: 16px;
}
.rank-number {
font-size: 32px;
font-weight: bold;
}
/* footer section */
.footergroup {
display: flex;
justify-content: space-between;
font-size: 14px;
}
.serverpng {
width: 16px;
height: 16px;
border-radius: 50%;
}
.otherstats {
opacity: 0.7;
white-space: nowrap; /* Prevent wrapping within the span */
}
.servername {
opacity: 0.7;
text-align: right;
}
.server {
display: flex;
justify-content: space-between;
}
/* website stuff */
.querygroup {
text-align: center;
position: fixed;
left: 50%;
transform: translate(-50%);
background-color: #000;
z-index: 3;
border: white dashed 3px;
padding: 10px;
}
a {
/* text-decoration: none; */
color: white;
}
.params {
margin: auto;
border: white solid 1px;
}
th {
text-align: left;
border: white solid 1px;
padding: 5px;
}
td {
border: white solid 1px;
padding: 5px;
}
.foot {
text-align: center;
}
#particles-js {
width: 100%;
height: 100%;
position: fixed;
}
body *, :not(*) {
cursor: url(https://gdjkhp.github.io/img/cursorsmol.png), auto;
}
img:hover {
animation: shake 0.5s;
animation-iteration-count: infinite;
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.hiddengroup {
text-align: center;
}
/* Progress bar (custom) */
.progress-custom {
background-color: red;
border-radius: 10px;
height: 20px;
overflow: hidden;
display: flex;
justify-content: flex-start;
position: relative; /* Add this */
z-index: 2;
border: #000 solid 1px;
}
.progress-bar-custom {
background-color: var(--secondary-color);
height: 100%;
width: 100%;
display: flex;
justify-content: flex-start;
}
.progress-percent-custom {
position: absolute; /* Add this */
right: 1%;
font-weight: bold;
}
.green-xp {
font-weight: bold;
color: lime;
}
.red-xp {
font-weight: bold;
color: red;
}
.progress-segment {
height: 100%;
}