-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
199 lines (173 loc) · 7.15 KB
/
Copy pathstyles.css
File metadata and controls
199 lines (173 loc) · 7.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/* ============================================================
LinkedSpace – styles.css
CSS handles scaffold layout & overrides LinkedIn's CSS variables.
All inner panel expansion is also reinforced via JavaScript in
content.js for resilience against React re-renders.
Scoping classes set by content.js on <html>:
lcs-messaging → /messaging dedicated page
lcs-home → Home feed (rail kept, everything widens)
lcs-network → My Network (rail collapsed)
lcs-notifications → Notifications (rail collapsed)
lcs-jobs → Jobs (dedicated multi-pane expansion)
The floating chat overlay bubble is intentionally left untouched.
============================================================ */
/* ----------------------------------------------------------
0. Global CSS Variable Overrides
---------------------------------------------------------- */
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) {
--scaffold-layout-container-max-width: 100% !important;
--scaffold-layout-content-max-width: 100% !important;
}
html:is(.lcs-messaging, .lcs-network, .lcs-jobs, .lcs-notifications) {
--scaffold-layout-aside-width: 0px !important;
}
/* ----------------------------------------------------------
1. Scaffold outer wrapper – all supported pages
Remove fixed max-width and margins so page fills the viewport.
---------------------------------------------------------- */
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) main,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .scaffold-layout,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .scaffold-layout-container,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .scaffold-layout-container--reflow,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .scaffold-layout__content,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .scaffold-layout__content--is-centered,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .scaffold-layout__content-container,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .jobs-search-two-pane__container,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .jobs-search-results-list__container,
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications) .jobs-search-box-container {
max-width: 100% !important;
width: 100% !important;
padding-left: 0 !important;
padding-right: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
box-sizing: border-box !important;
}
/* Main content column grows to fill viewport */
html:is(.lcs-messaging, .lcs-home, .lcs-network, .lcs-jobs, .lcs-notifications)
.scaffold-layout__main {
max-width: 100% !important;
width: 100% !important;
flex: 1 1 auto !important;
min-width: 0 !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
/* Collapse the right ads/recommendations aside */
html:is(.lcs-messaging, .lcs-network, .lcs-notifications, .lcs-jobs) .scaffold-layout__aside {
width: 0 !important;
min-width: 0 !important;
max-width: 0 !important;
flex: 0 0 0px !important;
overflow: hidden !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
}
/* Collapse fixed grid tracks for aside in grid rows */
html:is(.lcs-messaging, .lcs-network, .lcs-notifications, .lcs-jobs)
.scaffold-layout__row[class*="--list-detail-aside"],
html:is(.lcs-messaging, .lcs-network, .lcs-notifications, .lcs-jobs)
.scaffold-layout__row--list-detail {
grid-template-columns: minmax(0, 1fr) !important;
column-gap: 0 !important;
}
/* Messaging list/detail split — pure CSS fallback so full width holds even
when JS inline-style expansion hasn't run yet (fast cached / SPA /
bfcache loads with no loading bar). Mirrors content.js
getMessagingSidebarWidth(): min(400px, innerWidth/3). JS inline styles
remain the live adaptive layer on top of this. */
html.lcs-messaging .scaffold-layout__list-detail,
html.lcs-messaging .scaffold-layout__list-detail-inner,
html.lcs-messaging .msg-s-page-layout,
html.lcs-messaging .scaffold-layout__main {
max-width: 100% !important;
width: 100% !important;
min-width: 0 !important;
}
html.lcs-messaging .scaffold-layout__list-detail-inner,
html.lcs-messaging .scaffold-layout__list-detail,
html.lcs-messaging .msg-s-page-layout {
column-gap: 0 !important;
row-gap: 0 !important;
}
html.lcs-messaging .scaffold-layout__list,
html.lcs-messaging .msg-s-page-layout__list,
html.lcs-messaging .msg-conversations-container {
width: min(400px, 33vw) !important;
max-width: min(400px, 33vw) !important;
min-width: 0 !important;
flex: 0 0 min(400px, 33vw) !important;
}
html.lcs-messaging .scaffold-layout__detail,
html.lcs-messaging .msg-s-page-layout__conversation-container {
flex: 1 1 0 !important;
width: auto !important;
max-width: 100% !important;
min-width: 0 !important;
}
html.lcs-messaging .msg-convo-wrapper,
html.lcs-messaging .msg-thread,
html.lcs-messaging .msg-s-message-list-content,
html.lcs-messaging .msg-s-message-list {
max-width: 100% !important;
width: 100% !important;
min-width: 0 !important;
}
/* Jobs two-pane list & detail layout */
html.lcs-jobs .scaffold-layout__list-detail,
html.lcs-jobs .scaffold-layout__list-detail-inner,
html.lcs-jobs .jobs-search-two-pane__wrapper {
max-width: 100% !important;
width: 100% !important;
}
html.lcs-jobs .scaffold-layout__list,
html.lcs-jobs .jobs-search-two-pane__left-rail {
width: 350px !important;
max-width: 350px !important;
flex: 0 0 350px !important;
min-width: 0 !important;
}
html.lcs-jobs .scaffold-layout__list-header,
html.lcs-jobs .jobs-search-results-list__header {
flex: 0 0 auto !important;
height: auto !important;
min-height: 0 !important;
max-height: none !important;
width: 100% !important;
}
html.lcs-jobs .scaffold-layout__list-container,
html.lcs-jobs .jobs-search-results-list__list {
flex: 1 1 auto !important;
height: auto !important;
min-height: 0 !important;
width: 100% !important;
}
html.lcs-jobs .scaffold-layout__detail,
html.lcs-jobs .jobs-search__job-details,
html.lcs-jobs .jobs-search-results__detail {
flex: 1 1 0 !important;
width: auto !important;
max-width: 100% !important;
min-width: 0 !important;
}
html.lcs-jobs .jobs-details__main-content,
html.lcs-jobs .job-view-layout {
max-width: 100% !important;
width: 100% !important;
}
/* ----------------------------------------------------------
2. Messaging composer visibility & micro-animation
---------------------------------------------------------- */
html.lcs-messaging .msg-s-message-list-container {
min-height: 0 !important;
min-width: 0 !important;
}
html.lcs-messaging .scaffold-layout__list-detail .msg-s-event-listitem,
html.lcs-messaging .msg-s-page-layout .msg-s-event-listitem {
animation: lcs-fadeSlide 0.18s ease both !important;
}
@keyframes lcs-fadeSlide {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}