535 lines
7.9 KiB
CSS
535 lines
7.9 KiB
CSS
html,
|
|
body,
|
|
#app {
|
|
width: 100%;
|
|
min-height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
max-width: none;
|
|
|
|
font-family: 'Courier New', Courier, monospace;
|
|
}
|
|
|
|
main{
|
|
background: #081415!important;
|
|
}
|
|
body {
|
|
display: block;
|
|
background: #000;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
#app {
|
|
display: block;
|
|
font-weight: 400;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
body {
|
|
display: block;
|
|
place-items: initial;
|
|
}
|
|
|
|
#app {
|
|
display: block;
|
|
grid-template-columns: none;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.ranking-page {
|
|
width: 100vw;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
background: #000;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.ranking-page * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.bg-layer {
|
|
width: 100vw;
|
|
min-height: 100vh;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.bg-layer .bg-image {
|
|
width: 100vw;
|
|
object-fit: cover;
|
|
object-position: center top;
|
|
display: block;
|
|
}
|
|
|
|
.loading-container {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #666;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.ranking-loading-image {
|
|
position: relative;
|
|
z-index: 4;
|
|
display: block;
|
|
width: 180px;
|
|
max-width: 70vw;
|
|
height: auto;
|
|
margin: 0 auto 12px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.loading-container p {
|
|
position: relative;
|
|
z-index: 4;
|
|
margin: 0;
|
|
}
|
|
|
|
.ranking-content {
|
|
position: relative;
|
|
z-index: 4;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.ranking-content .bg-layer {
|
|
z-index: -1;
|
|
}
|
|
|
|
.sticky-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 999;
|
|
border-radius: 0 0 12px 12px;
|
|
transition: all 0.3s;
|
|
height: 35vw;
|
|
}
|
|
|
|
/* .sticky-header.stuck {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
-webkit-backdrop-filter: blur(32px);
|
|
backdrop-filter: blur(32px);
|
|
} */
|
|
|
|
.sticky-spacer {
|
|
height: 13vw;
|
|
}
|
|
|
|
.type-tabs-wrap {
|
|
padding: 4px 8%;
|
|
}
|
|
|
|
.type-tabs {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
position: relative;
|
|
}
|
|
|
|
.type-tab {
|
|
color: #fff;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0;
|
|
font: inherit;
|
|
font-weight: 700;
|
|
font-size: 1.5em;
|
|
line-height: 1.4;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.type-tab.active {
|
|
color: #2fce2c;
|
|
}
|
|
|
|
.back-btn {
|
|
position: absolute;
|
|
left: -4%;
|
|
top: 45%;
|
|
transform: translateY(-50%);
|
|
width: 6%;
|
|
min-width: 18px;
|
|
display: block;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.back-btn img {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.period-tabs {
|
|
margin: 1vw 6vw 4vw;
|
|
padding: 4px;
|
|
border-radius: 32px;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
background:none;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.period-item {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.period-item.active {
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
.period-tab {
|
|
border: 0;
|
|
background: transparent;
|
|
color: #fff;
|
|
font: inherit;
|
|
font-weight: 510;
|
|
padding: 4px 10px;
|
|
line-height: 1.4;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.period-item.active .period-tab {
|
|
color: #57db38;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.ranking-main {
|
|
position: relative;
|
|
}
|
|
|
|
.top-section {
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.top-one-wrap {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.top-pair-wrap {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
margin-top: 0;
|
|
transform: translateY(-26px);
|
|
}
|
|
|
|
.top-user {
|
|
color: #000;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.top-user-inner {
|
|
position: relative;
|
|
}
|
|
|
|
.top-frame {
|
|
display: block;
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 100%;
|
|
}
|
|
|
|
.top-avatar-layer {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.top-avatar-box {
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.top-avatar-box img {
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.top-user-info {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 3;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
}
|
|
|
|
.top-name-box {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.show-text {
|
|
color: #fff;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.top1-text {
|
|
font-size: 0.9em;
|
|
}
|
|
.top1-text.quantity-text {
|
|
font-size: 1.5em;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
}
|
|
|
|
|
|
.top-text {
|
|
font-size: 0.7em;
|
|
}
|
|
|
|
.quantity-pill {
|
|
position: relative;
|
|
border-radius: 80px;
|
|
/* border: 1px solid #ffdf36; */
|
|
/* background: linear-gradient(270deg, #000 0%, #3b3b3b 47.45%, #000 100%); */
|
|
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.4) inset;
|
|
}
|
|
|
|
.quantity-inner {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.coin-icon {
|
|
display: block;
|
|
width: 1.3em;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.quantity-text {
|
|
font-weight: 700;
|
|
background: linear-gradient(180deg, #ffe656 0%, #fff 100%);
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.rank-list {
|
|
padding: 3vw 3vw 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1vw;
|
|
padding-top: 0;
|
|
transform: translateY(-32px);
|
|
}
|
|
|
|
.item-center {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.item-center > .item-bg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.item-content {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.item-content::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.rank-row {
|
|
min-height: 19vw;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rank-row .item-content {
|
|
padding: 3vw;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rank-left {
|
|
flex: 1;
|
|
min-width: 0;
|
|
align-self: stretch;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rank-number,
|
|
.mine-rank {
|
|
width: auto;
|
|
min-width: 0;
|
|
align-self: stretch;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.rank-number div,
|
|
.mine-rank div {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.avatar {
|
|
display: block;
|
|
width: 3em;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.rank-name,
|
|
.mine-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 0 4px;
|
|
font-weight: 700;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.rank-value,
|
|
.mine-value {
|
|
width: auto;
|
|
min-width: 0;
|
|
align-self: stretch;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.rank-value-text,
|
|
.mine-value-text {
|
|
font-weight: 500;
|
|
color: rgba(248, 182, 45, 1);
|
|
}
|
|
|
|
.bottom-spacer {
|
|
height: 26vw;
|
|
}
|
|
|
|
.item-center.my-ranking {
|
|
min-height: 19vw;
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 999;
|
|
padding: 0 1px;
|
|
overflow: hidden;
|
|
background: rgb(121 238 169 / 23%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(160%);
|
|
backdrop-filter: blur(18px) saturate(160%);
|
|
border: 1px solid rgba(255, 255, 255, 0.58);
|
|
border-bottom: 0;
|
|
border-radius: 16px 16px 0 0;
|
|
box-shadow:
|
|
0 -10px 28px rgba(0, 0, 0, 0.18),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.my-ranking .item-content {
|
|
padding: 0 1vw 0;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.my-ranking .mine-rank div,
|
|
.my-ranking .mine-name {
|
|
/* color: rgba(14, 23, 36, 0.92); */
|
|
color:#fff;
|
|
}
|
|
|
|
.mine-left {
|
|
flex: 1;
|
|
min-width: 0;
|
|
align-self: stretch;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.load-more-sentinel {
|
|
width: 100%;
|
|
height: 1px;
|
|
}
|
|
|
|
.sr-status {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
}
|
|
|
|
@media screen and (max-width: 360px) {
|
|
.ranking-page,
|
|
.top-user {
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 360px) {
|
|
.ranking-page {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.top-user {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.ranking-page,
|
|
.top-user {
|
|
font-size: 24px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1024px) {
|
|
.ranking-page,
|
|
.top-user {
|
|
font-size: 32px;
|
|
}
|
|
}
|