Skip to content

Commit dc5ce87

Browse files
sametbasbugclaude
andcommitted
Let panels rest on the page instead of floating above it
Records became hairline-separated columns, but everything around them kept the card language: fourteen drop shadows across four scales, plus translateY hover lifts. The strongest of them was rgba(...,0.16) on the invite panel; most were 0.04, below the threshold where a shadow reads as anything at all. Before/after screenshots of the feed, the directory and a profile are indistinguishable except for that one panel. Shadow now means one thing: this element floats above the page. That leaves the moderation dialog, the toast, the mobile nav sheet and the sticky header. Accent glows and focus rings stay -- they are colour, not elevation. Hover cues moved from lift to surface. Measured on both themes: cards shift background and border on hover in light (#ffffff -> #f4f6fb, border #dfe4ed -> #c6cce0) and dark (#151b28 -> #1a2232, border #283145 -> #3f4960), so nothing lost its affordance. The dark panel-shadow patch is gone with them, which empties the last of the elevation overrides from theme.css. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 160bf74 commit dc5ce87

3 files changed

Lines changed: 11 additions & 40 deletions

File tree

‎src/styles/components.css‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,6 @@
957957
.side-nav a.active {
958958
color: var(--ink);
959959
background: var(--surface-nav-active);
960-
box-shadow: 0 4px 14px rgba(40, 52, 88, 0.06);
961960
transform: translateX(2px);
962961
}
963962

‎src/styles/pages.css‎

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
border: 1px solid var(--line);
8787
border-radius: 1rem;
8888
background: var(--surface);
89-
box-shadow: 0 5px 18px rgba(36, 46, 76, 0.04);
9089
}
9190

9291
.network-section > h2 {
@@ -226,7 +225,6 @@
226225
background:
227226
radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--agent-accent) 14%, transparent), transparent 18rem),
228227
linear-gradient(130deg, color-mix(in srgb, var(--agent-accent) 7%, var(--surface)), var(--surface) 68%);
229-
box-shadow: 0 18px 50px rgba(32, 43, 72, 0.08);
230228
}
231229

232230
.profile-hero::before {
@@ -384,7 +382,6 @@
384382
border: 1px solid var(--line);
385383
border-radius: 1.15rem;
386384
background: var(--surface);
387-
box-shadow: 0 9px 28px rgba(36, 46, 76, 0.055);
388385
}
389386

390387
.profile-dossier-heading {
@@ -756,7 +753,6 @@
756753
background:
757754
linear-gradient(125deg, rgba(25, 33, 65, 0.985), rgba(62, 63, 132, 0.97) 60%, rgba(111, 77, 177, 0.95)),
758755
#293358;
759-
box-shadow: 0 16px 36px rgba(37, 44, 80, 0.16);
760756
isolation: isolate;
761757
}
762758

@@ -979,13 +975,12 @@
979975
border: 1px solid var(--line);
980976
border-radius: 1rem;
981977
background: var(--surface);
982-
box-shadow: 0 5px 18px rgba(36, 46, 76, 0.04);
983-
transition: transform 160ms ease, box-shadow 160ms ease;
978+
transition: border-color 160ms ease, background 160ms ease;
984979
}
985980

986981
.agent-directory .agent-card:hover {
987-
box-shadow: 0 12px 30px rgba(36, 46, 76, 0.09);
988-
transform: translateY(-2px);
982+
border-color: var(--line-hover);
983+
background: var(--surface-hover);
989984
}
990985

991986
.welcome-orbit {
@@ -1041,7 +1036,6 @@
10411036
border: 1px solid var(--line);
10421037
border-radius: 1rem;
10431038
background: var(--surface);
1044-
box-shadow: 0 5px 18px rgba(36, 46, 76, 0.04);
10451039
}
10461040

10471041
.activity-stats div {
@@ -1221,12 +1215,11 @@
12211215
border-radius: 1rem;
12221216
color: var(--orbit-blue);
12231217
background: var(--surface);
1224-
box-shadow: 0 10px 30px rgba(31, 42, 70, 0.08);
12251218
}
12261219

12271220
.search-form:focus-within {
12281221
border-color: color-mix(in srgb, var(--orbit-blue) 55%, var(--line));
1229-
box-shadow: 0 0 0 4px rgba(82, 103, 217, 0.1), 0 14px 34px rgba(31, 42, 70, 0.09);
1222+
box-shadow: 0 0 0 4px rgba(82, 103, 217, 0.1);
12301223
}
12311224

12321225
.search-form input {
@@ -1449,8 +1442,7 @@
14491442
.search-post:hover {
14501443
z-index: 1;
14511444
border-color: color-mix(in srgb, var(--agent-accent) 32%, var(--line));
1452-
box-shadow: 0 10px 25px rgba(31, 42, 70, 0.075);
1453-
transform: translateY(-1px);
1445+
background: var(--surface-hover);
14541446
}
14551447

14561448
.search-project-mark {
@@ -1498,15 +1490,13 @@
14981490
border-radius: 1rem;
14991491
color: var(--ink);
15001492
background: var(--surface);
1501-
box-shadow: 0 5px 18px rgba(31, 42, 70, 0.045);
15021493
text-decoration: none;
1503-
transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
1494+
transition: border-color 160ms ease, background 160ms ease;
15041495
}
15051496

15061497
.project-card:hover {
15071498
border-color: color-mix(in srgb, var(--project-accent) 42%, var(--line));
1508-
box-shadow: 0 12px 28px rgba(31, 42, 70, 0.08);
1509-
transform: translateY(-2px);
1499+
background: color-mix(in srgb, var(--project-accent) 4%, var(--surface));
15101500
}
15111501

15121502
.project-mark {
@@ -1565,12 +1555,10 @@
15651555
border: 0;
15661556
border-radius: 0.72rem;
15671557
background: transparent;
1568-
box-shadow: none;
15691558
}
15701559

15711560
.project-card.compact:hover {
15721561
background: color-mix(in srgb, var(--project-accent) 6%, var(--surface));
1573-
box-shadow: none;
15741562
transform: translateX(2px);
15751563
}
15761564

@@ -1841,15 +1829,13 @@
18411829
border-radius: 1rem;
18421830
color: var(--ink);
18431831
background: var(--surface);
1844-
box-shadow: 0 5px 18px rgba(31, 42, 70, 0.045);
18451832
text-decoration: none;
1846-
transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
1833+
transition: border-color 160ms ease, background 160ms ease;
18471834
}
18481835

18491836
.topic-card:hover {
18501837
border-color: color-mix(in srgb, var(--topic-accent) 42%, var(--line));
1851-
box-shadow: 0 12px 28px rgba(31, 42, 70, 0.08);
1852-
transform: translateY(-2px);
1838+
background: color-mix(in srgb, var(--topic-accent) 4%, var(--surface));
18531839
}
18541840

18551841
.topic-mark {
@@ -2018,14 +2004,12 @@
20182004
border: 1px solid var(--line);
20192005
border-radius: 1rem;
20202006
background: var(--surface);
2021-
box-shadow: 0 5px 18px rgba(31, 42, 70, 0.045);
2022-
transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
2007+
transition: border-color 160ms ease, background 160ms ease;
20232008
}
20242009

20252010
.saved-record:hover {
20262011
border-color: color-mix(in srgb, var(--agent-accent) 35%, var(--line));
2027-
box-shadow: 0 12px 28px rgba(31, 42, 70, 0.08);
2028-
transform: translateY(-1px);
2012+
background: var(--surface-hover);
20292013
}
20302014

20312015
.saved-record-main {

‎src/styles/theme.css‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,9 @@ html[data-theme="dark"] .truth-note strong {
9494
color: #c2b3f3;
9595
}
9696

97-
/* Panel gölgesi koyu temada ayrı ayarlanıyor: açık temadaki mavimsi gölge
98-
koyu zeminde görünmez, panelin ayrıştığı tek şey kenarlık kalıyor. Yüzey ve
99-
kenarlık yaması buradan kalktı — bileşenler artık --surface/--line kullanıyor,
100-
eski rgba(21,27,40,0.94) zaten --surface ile aynı yere düşüyordu. */
101-
html[data-theme="dark"] .network-section,
102-
html[data-theme="dark"] .profile-dossier,
103-
html[data-theme="dark"] .agent-directory .agent-card,
104-
html[data-theme="dark"] .activity-stats {
105-
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
106-
}
107-
10897
html[data-theme="dark"] .project-card.compact {
10998
border-color: transparent;
11099
background: transparent;
111-
box-shadow: none;
112100
}
113101

114102
html[data-theme="dark"] .project-card.compact:hover {

0 commit comments

Comments
 (0)