149 lines
3.0 KiB
Plaintext
149 lines
3.0 KiB
Plaintext
.color-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 168rpx;
|
|
color: #fff;
|
|
font-size: 34rpx;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.palette {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 14rpx;
|
|
margin-top: 12rpx;
|
|
}
|
|
|
|
.color-swatch {
|
|
height: 92rpx;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8rpx 18rpx rgba(58, 48, 34, 0.08);
|
|
}
|
|
|
|
.color-swatch.active {
|
|
outline: 6rpx solid rgba(47, 111, 98, 0.22);
|
|
}
|
|
|
|
.color-wheel-card {
|
|
padding: 22rpx 18rpx 18rpx;
|
|
}
|
|
|
|
.color-wheel-wrap {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.color-wheel {
|
|
position: relative;
|
|
width: 308rpx;
|
|
height: 308rpx;
|
|
border-radius: 50%;
|
|
background: conic-gradient(#e0627a, #e7785b, #e2a64b, #d8c85c, #9ebb63, #63b77b, #4cb7a6, #56a7d6, #5f82d7, #7c70d4, #a66bc8, #cf72a8, #e0627a);
|
|
box-shadow: inset 0 0 0 2rpx rgba(255, 255, 255, 0.45), 0 12rpx 28rpx rgba(58, 48, 34, 0.12);
|
|
}
|
|
|
|
.color-wheel::after {
|
|
position: absolute;
|
|
top: 42rpx;
|
|
right: 42rpx;
|
|
bottom: 42rpx;
|
|
left: 42rpx;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle at 34% 30%, rgba(255,255,255,0.78), rgba(255,255,255,0.18) 38%, rgba(38,35,31,0.12) 100%);
|
|
content: "";
|
|
}
|
|
|
|
.wheel-center {
|
|
position: absolute;
|
|
top: 94rpx;
|
|
left: 94rpx;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border: 8rpx solid #ffffff;
|
|
border-radius: 50%;
|
|
color: #fff;
|
|
font-size: 20rpx;
|
|
font-weight: 900;
|
|
text-shadow: 0 2rpx 6rpx rgba(31, 25, 20, 0.22);
|
|
box-shadow: 0 10rpx 24rpx rgba(58, 48, 34, 0.16);
|
|
}
|
|
|
|
.wheel-hit {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
z-index: 3;
|
|
width: 70rpx;
|
|
height: 154rpx;
|
|
margin-left: -35rpx;
|
|
transform-origin: 50% 154rpx;
|
|
}
|
|
|
|
.hit-0 { transform: rotate(0deg); }
|
|
.hit-1 { transform: rotate(30deg); }
|
|
.hit-2 { transform: rotate(60deg); }
|
|
.hit-3 { transform: rotate(90deg); }
|
|
.hit-4 { transform: rotate(120deg); }
|
|
.hit-5 { transform: rotate(150deg); }
|
|
.hit-6 { transform: rotate(180deg); }
|
|
.hit-7 { transform: rotate(210deg); }
|
|
.hit-8 { transform: rotate(240deg); }
|
|
.hit-9 { transform: rotate(270deg); }
|
|
.hit-10 { transform: rotate(300deg); }
|
|
.hit-11 { transform: rotate(330deg); }
|
|
|
|
.palette-grid.compact {
|
|
margin-top: 22rpx;
|
|
}
|
|
|
|
.palette-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.palette-dot {
|
|
width: 68rpx;
|
|
height: 68rpx;
|
|
border-radius: 50%;
|
|
box-shadow: inset 0 0 0 1rpx rgba(255, 255, 255, 0.42), 0 6rpx 14rpx rgba(58, 48, 34, 0.08);
|
|
}
|
|
|
|
.palette-dot.active {
|
|
outline: 6rpx solid rgba(47, 111, 98, 0.24);
|
|
outline-offset: 3rpx;
|
|
}
|
|
|
|
.custom-color-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
margin-top: 18rpx;
|
|
padding: 18rpx;
|
|
}
|
|
|
|
.custom-color-preview {
|
|
width: 58rpx;
|
|
height: 58rpx;
|
|
flex-shrink: 0;
|
|
border-radius: 50%;
|
|
box-shadow: inset 0 0 0 1rpx rgba(255, 255, 255, 0.45);
|
|
}
|
|
|
|
.custom-color-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 58rpx;
|
|
padding: 0 18rpx;
|
|
border-radius: 999rpx;
|
|
background: #f3f7f4;
|
|
color: #17211f;
|
|
font-size: 26rpx;
|
|
font-weight: 700;
|
|
}
|