design refacto
All checks were successful
Deploy Sokko G / deploy (push) Successful in 6s

This commit is contained in:
Shinuwa 2026-07-22 16:07:10 +02:00
parent b8d1829bc7
commit d359fd0a35
25 changed files with 1340 additions and 1023 deletions

View file

@ -1,9 +1,3 @@
.mhwilds-hero {
background:
linear-gradient(135deg, rgba(139, 92, 246, 0.86), rgba(99, 102, 241, 0.76), rgba(34, 211, 238, 0.58)),
var(--color-bg-surface);
}
.mhwilds-home-grid {
display: grid;
grid-template-columns: repeat(2, minmax(240px, 380px));
@ -14,8 +8,32 @@
.mhwilds-home-card {
overflow: hidden;
border-color: transparent;
border-radius: var(--radius-md);
padding: 0;
min-height: 230px;
background:
linear-gradient(rgba(16, 20, 38, 0.88), rgba(16, 20, 38, 0.88)) padding-box,
radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.42), transparent 28%) border-box,
linear-gradient(135deg, rgba(246, 196, 83, 0.62) 0%, rgba(246, 196, 83, 0.42) 72%, rgba(34, 211, 238, 0.24) 100%) border-box;
}
@supports (corner-shape: scoop) {
.mhwilds-home-card {
corner-shape: scoop;
}
}
.mhwilds-home-card:hover {
transform: none;
border-color: transparent;
background:
linear-gradient(rgba(21, 26, 48, 0.96), rgba(21, 26, 48, 0.96)) padding-box,
linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(196, 181, 253, 0.72)) border-box;
box-shadow:
var(--shadow-sm),
0 0 18px rgba(139, 92, 246, 0.22),
0 0 34px rgba(196, 181, 253, 0.12);
}
.mhwilds-home-card img {
@ -24,7 +42,7 @@
height: 120px;
object-fit: contain;
padding: var(--space-4);
border-bottom: 1px solid var(--color-border);
border-bottom: 1px solid rgba(246, 196, 83, 0.42);
background: rgba(5, 7, 17, 0.28);
}
@ -87,7 +105,7 @@
border-radius: var(--radius-xl);
background: rgba(16, 20, 38, 0.72);
box-shadow: var(--shadow-sm);
backdrop-filter: blur(18px);
backdrop-filter: blur(10px);
padding: var(--space-4);
}
@ -154,11 +172,11 @@
.filter-chip {
display: grid;
grid-template-columns: 22px 24px 1fr;
grid-template-columns: 18px 22px 1fr;
min-height: 40px;
align-items: center;
gap: 8px;
padding: 7px 9px;
column-gap: 6px;
padding: 7px 10px 7px 13px;
border: 1px solid var(--color-border);
border-radius: var(--radius-pill);
background: rgba(5, 7, 17, 0.32);
@ -174,10 +192,19 @@
}
.filter-chip input {
flex: 0 0 18px;
width: 18px;
min-width: 18px;
max-width: 18px;
inline-size: 18px;
min-inline-size: 18px;
max-inline-size: 18px;
height: 18px;
min-height: 18px;
accent-color: var(--color-primary);
max-height: 18px;
block-size: 18px;
min-block-size: 18px;
max-block-size: 18px;
}
.filter-chip img {
@ -209,9 +236,12 @@
.mhwilds-card {
overflow: hidden;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
background: rgba(16, 20, 38, 0.88);
border: 1px solid transparent;
border-radius: var(--radius-md);
background:
linear-gradient(rgba(16, 20, 38, 0.88), rgba(16, 20, 38, 0.88)) padding-box,
radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.42), transparent 28%) border-box,
linear-gradient(135deg, rgba(246, 196, 83, 0.62) 0%, rgba(246, 196, 83, 0.42) 72%, rgba(34, 211, 238, 0.24) 100%) border-box;
box-shadow: var(--shadow-sm);
transition:
transform var(--duration-fast) var(--ease-standard),
@ -219,22 +249,39 @@
background-color var(--duration-fast) var(--ease-standard);
}
@supports (corner-shape: scoop) {
.mhwilds-card {
corner-shape: scoop;
}
}
.mhwilds-card:hover {
transform: translateY(-2px);
border-color: var(--color-border-hover);
background: rgba(21, 26, 48, 0.96);
transform: none;
border-color: transparent;
background:
linear-gradient(rgba(21, 26, 48, 0.96), rgba(21, 26, 48, 0.96)) padding-box,
linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(196, 181, 253, 0.72)) border-box;
box-shadow:
var(--shadow-sm),
0 0 18px rgba(139, 92, 246, 0.22),
0 0 34px rgba(196, 181, 253, 0.12);
}
.monster-card {
height: 285px;
overflow: visible;
border: 0;
background: transparent;
box-shadow: none;
cursor: pointer;
perspective: 1200px;
}
.monster-card:hover,
.monster-card:focus-visible {
border-color: transparent;
background: transparent;
box-shadow: none;
}
.mhwilds-card-inner {
@ -245,6 +292,12 @@
transition: transform 420ms var(--ease-standard);
}
.monster-card:hover .mhwilds-card-inner,
.monster-card:focus-visible .mhwilds-card-inner,
.monster-card.is-flipped .mhwilds-card-inner {
will-change: transform;
}
.monster-card.is-flipped .mhwilds-card-inner {
transform: rotateY(180deg);
}
@ -252,16 +305,26 @@
.mhwilds-card-face {
position: absolute;
inset: 0;
contain: paint;
display: flex;
overflow: hidden;
flex-direction: column;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
background: rgba(16, 20, 38, 0.92);
border: 1px solid transparent;
border-radius: var(--radius-md);
background:
linear-gradient(rgba(16, 20, 38, 0.92), rgba(16, 20, 38, 0.92)) padding-box,
radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.42), transparent 28%) border-box,
linear-gradient(135deg, rgba(246, 196, 83, 0.62) 0%, rgba(246, 196, 83, 0.42) 72%, rgba(34, 211, 238, 0.24) 100%) border-box;
box-shadow: var(--shadow-sm);
backface-visibility: hidden;
}
@supports (corner-shape: scoop) {
.mhwilds-card-face {
corner-shape: scoop;
}
}
.mhwilds-flip-indicator {
position: absolute;
top: 10px;
@ -271,12 +334,19 @@
width: 34px;
height: 34px;
place-items: center;
border: 1px solid rgba(165, 180, 252, 0.2);
border: 1px solid rgba(165, 180, 252, 0.12);
border-radius: var(--radius-md);
background: rgba(7, 10, 24, 0.62);
color: var(--color-text-primary);
background: rgba(7, 10, 24, 0.36);
color: var(--color-text-muted);
pointer-events: none;
box-shadow: var(--shadow-sm);
box-shadow: none;
opacity: 0.78;
transition:
border-color var(--duration-fast) var(--ease-standard),
background-color var(--duration-fast) var(--ease-standard),
color var(--duration-fast) var(--ease-standard),
opacity var(--duration-fast) var(--ease-standard),
box-shadow var(--duration-fast) var(--ease-standard);
}
.mhwilds-flip-indicator .ui-icon {
@ -292,16 +362,30 @@
transform: rotateY(180deg);
}
.monster-card:hover .mhwilds-flip-indicator {
border-color: rgba(196, 181, 253, 0.22);
background: rgba(16, 20, 38, 0.52);
color: #c4b5fd;
opacity: 1;
box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}
.monster-card:hover .mhwilds-card-face {
border-color: var(--color-border-hover);
background: rgba(21, 26, 48, 0.98);
border-color: transparent;
background:
linear-gradient(rgba(16, 20, 38, 0.95), rgba(16, 20, 38, 0.95)) padding-box,
linear-gradient(135deg, rgba(139, 92, 246, 0.76), rgba(196, 181, 253, 0.58)) border-box;
box-shadow:
var(--shadow-sm),
0 0 14px rgba(139, 92, 246, 0.14),
0 0 24px rgba(196, 181, 253, 0.08);
}
.mhwilds-card-art {
display: grid;
min-height: 112px;
place-items: center;
border-bottom: 1px solid var(--color-border);
border-bottom: 1px solid rgba(246, 196, 83, 0.42);
background:
radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.16), transparent 46%),
rgba(5, 7, 17, 0.36);