fix: 히어로를 이전 디자인으로 되돌림, 밤 테마 시트 색, 열흘 날씨 줄 끌어 넘기기, 글자 선택 막기

This commit is contained in:
minaChoi committed 2026-10-06 17:19:40 +09:00
1 parent 6cc0a4d7b6
commit b61ed92c54
6 files changed
+180 -99

No files matched your search

+64 -39
View File
@@ -142,80 +142,105 @@
}
}
/* 히어로 시간대 배경 (글자 대비 AA: 저녁은 위쪽을 깊은 보라로) */
/* 히어로 시간대 배경 (저녁은 흰 글자 대비 AA 4.5:1 이상이 되게 깊은 보라로) */
.b-hero {
transition: background 0.6s;
}
.b-hero[data-t='morning'] {
background: linear-gradient(180deg, #ffd9b8, #ffe9d4 45%, #dff0ff);
background: linear-gradient(180deg, #ffd9b8, #ffe9d4 40%, #dff0ff);
}
.b-hero[data-t='day'] {
background: linear-gradient(180deg, #9fd3ff, #cfe9ff 55%, #f1f8ff);
}
.b-hero[data-t='sunset'] {
background: linear-gradient(180deg, #5d4fc4, #8b56b8 50%, #e27a8f);
background: linear-gradient(180deg, #4c42b0, #6a48b0 45%, #9a4a88);
color: #fff;
}
.b-hero[data-t='night'] {
background: linear-gradient(180deg, #141b3d, #27306a 60%, #3d3f86);
color: #fff;
}
/* 시간대 미리보기: 한 줄 트랙, 고른 칸만 흰 알약 */
.b-seg {
background: rgb(255 255 255 / 0.45);
.b-hero .b-stars {
opacity: 0;
transition: opacity 0.6s;
}
.b-hero:is([data-t='sunset'], [data-t='night']) .b-seg {
background: rgb(0 0 0 / 0.2);
.b-hero[data-t='night'] .b-stars {
opacity: 1;
}
.b-seg [aria-pressed='true'] {
.b-stars i {
background: #fff;
color: #28304a;
box-shadow: 0 1px 4px rgb(40 48 74 / 0.16);
}
/* 비·기온·오늘의 각 카드: 저녁도 밝은 카드라 진한 글자 */
.b-stat {
background: rgb(255 255 255 / 0.72);
color: #28304a;
box-shadow: inset 0 -4px 0 rgb(217 229 244 / 0.9);
color: var(--ink);
box-shadow: inset 0 -5px 0 rgb(217 229 244 / 0.9);
}
.b-hero[data-t='night'] .b-stat,
.b-hero[data-t='sunset'] .b-stat {
background: rgb(255 255 255 / 0.18);
color: #fff;
box-shadow: inset 0 -5px 0 rgb(255 255 255 / 0.12);
}
.b-hero[data-t='sunset'] .b-stat {
background: rgb(255 255 255 / 0.88);
box-shadow: inset 0 -4px 0 rgb(255 255 255 / 0.4);
background: rgb(30 16 80 / 0.2);
}
.b-hero[data-t='night'] .b-stat {
background: rgb(255 255 255 / 0.12);
color: #fff;
box-shadow: inset 0 -4px 0 rgb(255 255 255 / 0.08);
.b-orb-label {
text-shadow: 0 2px 0 rgb(255 255 255 / 0.7);
}
.b-hero[data-t='night'] .b-orb-label,
.b-hero[data-t='sunset'] .b-orb-label {
text-shadow: 0 2px 0 rgb(0 0 0 / 0.2);
}
/* 히어로에서 유일하게 강조하는 장식: 점수를 담은 해(밤엔 달) */
.b-sun {
background: radial-gradient(circle at 34% 30%, #fff5cf, #ffc86e 34%, #ff9a58 72%, #f07a45);
background: radial-gradient(circle at 34% 30%, #fff5cf, #ffc86e 30%, #ff8e4e 68%, #ee6436);
box-shadow:
inset -12px -16px 28px rgb(170 50 20 / 0.28),
inset 10px 12px 20px rgb(255 255 255 / 0.55),
0 16px 36px rgb(240 106 58 / 0.3);
color: #28304a;
inset -18px -24px 40px rgb(170 50 20 / 0.34),
inset 16px 18px 28px rgb(255 255 255 / 0.55),
0 30px 56px rgb(240 106 58 / 0.32);
color: #fff;
}
.b-hero[data-t='night'] .b-sun {
background: radial-gradient(circle at 34% 30%, #fff, #e7e3ff 35%, #b9b0f2 72%, #8f86d9);
color: #2b2a5c;
box-shadow:
inset -12px -16px 28px rgb(60 50 140 / 0.26),
inset 10px 12px 20px rgb(255 255 255 / 0.6),
0 0 44px rgb(190 180 255 / 0.4);
inset -18px -24px 40px rgb(60 50 140 / 0.3),
inset 16px 18px 28px rgb(255 255 255 / 0.6),
0 0 60px rgb(190 180 255 / 0.45);
}
.b-bob {
--amp: 4px;
--tilt: 0deg;
animation: b-float 6s ease-in-out infinite;
.b-cloud {
position: absolute;
border-radius: 999px;
background: #fff;
box-shadow:
inset 0 -12px 18px rgb(160 190 230 / 0.45),
0 16px 28px rgb(40 70 120 / 0.13);
}
@media (prefers-reduced-motion: reduce) {
.b-bob {
animation: none;
}
.b-cloud::before,
.b-cloud::after {
content: '';
position: absolute;
border-radius: 999px;
background: #fff;
box-shadow: inset 0 -10px 16px rgb(160 190 230 / 0.35);
}
.b-cloud::before {
left: 16%;
top: -58%;
width: 46%;
aspect-ratio: 1;
}
.b-cloud::after {
left: 50%;
top: -36%;
width: 36%;
aspect-ratio: 1;
}
.b-hero[data-t='night'] .b-cloud,
.b-hero[data-t='night'] .b-cloud::before,
.b-hero[data-t='night'] .b-cloud::after {
background: #c9cdf0;
}
/* 이야기 고리 */