Skip to content

Commit 91d9947

Browse files
authored
Merge pull request #45 from TimUx/codex/update-design-based-on-provided-images-484hl9
Clarify card background and layering
2 parents b447aed + 41acf9c commit 91d9947

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

styles.css

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ body.festive > :not(.scene-decor) {
5959
.card {
6060
width: min(640px, 100%);
6161
margin: 0 auto;
62-
background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 45%),
63-
radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
64-
linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
65-
border: 1px solid rgba(255, 255, 255, 0.14);
62+
background: linear-gradient(160deg, rgba(20, 33, 38, 0.94), rgba(24, 28, 38, 0.92)),
63+
radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.04), transparent 45%),
64+
radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04), transparent 40%);
65+
border: 1px solid rgba(255, 255, 255, 0.16);
6666
border-radius: 22px;
6767
padding: 24px;
6868
box-shadow: 0 24px 52px var(--shadow);
69-
backdrop-filter: blur(4px);
7069
position: relative;
7170
overflow: hidden;
7271
isolation: isolate;
@@ -81,13 +80,18 @@ body.festive > :not(.scene-decor) {
8180
height: 180px;
8281
background: radial-gradient(circle, rgba(255, 214, 120, 0.14), transparent 70%);
8382
filter: blur(2px);
84-
z-index: -1;
83+
z-index: 0;
8584
pointer-events: none;
8685
}
8786

8887
.card::before { top: -30px; left: -40px; }
8988
.card::after { bottom: -40px; right: -40px; }
9089

90+
.card > * {
91+
position: relative;
92+
z-index: 1;
93+
}
94+
9195
.garland {
9296
position: fixed;
9397
left: 50%;
@@ -376,15 +380,6 @@ button.action {
376380
min-height: 118px;
377381
}
378382

379-
button.action::after {
380-
content: "";
381-
position: absolute;
382-
inset: 6px;
383-
border-radius: 12px;
384-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
385-
opacity: 0.6;
386-
}
387-
388383
button.action span { position: relative; z-index: 1; }
389384

390385
button.action:active:not(:disabled) {

0 commit comments

Comments
 (0)