feat: 评分

This commit is contained in:
bietiaop 2024-07-28 23:43:25 +08:00
parent 1441b8efcc
commit 394bea4c87
9 changed files with 1024 additions and 334 deletions

View file

@ -382,14 +382,139 @@
z-index: 5;
}
.c,
.C {
.comment {
background: linear-gradient(
0deg,
rgba(39, 211, 30, 0.3),
rgba(39, 211, 30, 1)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.b,
.B {
.comment {
background: linear-gradient(
0deg,
rgba(94, 189, 249, 0.3),
rgba(94, 189, 249, 1)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.a,
.A {
.comment {
background: linear-gradient(
0deg,
rgba(210, 86, 255, 0.3),
rgb(210, 86, 255)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.s,
.S {
.comment {
background: linear-gradient(
0deg,
rgba(255, 218, 190, 0.3),
rgba(255, 218, 190, 1)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.ss,
.SS {
.comment {
background: linear-gradient(
0deg,
rgba(255, 225, 116, 0.4),
rgba(255, 225, 116, 1)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.sss,
.SSS {
.comment {
background: linear-gradient(
0deg,
rgba(255, 163, 59, 0.4),
rgba(255, 163, 59, 1)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.ace,
.ACE {
.comment {
background: linear-gradient(
0deg,
rgba(255, 59, 59, 0.4),
rgb(255, 59, 59)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.equip-score {
display: flex;
justify-content: center;
font-size: 1.2em;
align-items: center;
gap: 0.2em;
.comment-box {
font-size: 1.2em;
width: 2em;
display: flex;
justify-content: center;
align-items: center;
aspect-ratio: 1;
border-radius: 50%;
background-color: rgba(32, 32, 32, 0.4);
box-shadow: 0 0 1em rgba(0, 0, 0, 0.4);
border: 0.2em solid rgb(216, 216, 216);
position: relative;
z-index: 1;
}
.value {
border: 0.1em solid rgba(155, 155, 155);
border-left: none;
padding: 0.1em 1em 0.1em 1em;
margin-left: -0.6em;
border-radius: 0 1em 1em 0;
.subt {
font-size: 0.8em;
}
}
}
.equip-list {
width: 100%;
display: grid;
gap: 1em;
grid-template-columns: repeat(3, 1fr);
grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
padding: 0 1.8em;
align-items: stretch;
margin-top: 1em;
overflow: hidden;
.box {
$size: 3em;
border-image-source: url('./images/equip_bg.png');
@ -484,9 +609,28 @@
text-align: center;
}
.score {
display: flex;
justify-content: center;
gap: 0.2em;
font-size: 0.9em;
align-items: flex-end;
.value {
font-size: 0.9em;
background: linear-gradient(
0deg,
rgba(255, 255, 255, 0.1),
rgba(255, 255, 255, 1)
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
.property-list {
padding: 0 0.5em;
overflow: hidden;
.properties {
display: flex;
align-items: center;
@ -502,6 +646,23 @@
flex-shrink: 0;
}
.count {
display: flex;
align-items: center;
gap: 0.1em;
flex-grow: 0;
flex-shrink: 0;
span {
// 箭头样式
width: 0.3em;
aspect-ratio: 1;
border-right: 0.1em solid rgb(255, 255, 255);
border-top: 0.1em solid rgb(255, 255, 255);
rotate: 45deg;
margin-left: -0.15em;
}
}
.label {
flex-grow: 1;
flex-shrink: 1;
@ -510,23 +671,44 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 1;
&.hit0 {
opacity: 0.6;
}
&.hit50 {
opacity: 0.8;
}
&.hit75 {
opacity: 1;
}
&.hit100 {
opacity: 1;
color: rgb(249, 189, 64);
}
}
.value {
color: rgb(249, 189, 64);
font-size: 0.7em;
margin-left: auto;
}
&.main {
background-color: rgb(65, 147, 237);
.prop-icon {
width: 1.2em;
margin-bottom: 0.2em;
filter: drop-shadow(0 0 0.4em rgba(0, 0, 0, 0.3));
}
.label {
color: rgb(255, 255, 255);
text-shadow: 0 0 0.4em rgba(0, 0, 0, 0.3);
font-size: 0.8em;
opacity: 1;
}
.value {
color: rgb(255, 255, 255);
text-shadow: 0 0 0.4em rgba(0, 0, 0, 0.3);
font-size: 1em;
}
}