Skip to content

Commit af2c762

Browse files
committed
Add sticky diff headers
1 parent fe3aa92 commit af2c762

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/css/unison-share/page/project-contribution-changes-page.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@
8383
gap: 0;
8484

8585
& .definition-change-header {
86-
padding: 0.75rem 1rem;
86+
border-radius: var(--border-radius-base);
87+
background: var(--color-card-bg);
88+
z-index: 100;
89+
position: sticky;
90+
top: 0;
91+
padding: 0.5rem;
8792
display: flex;
8893
flex-direction: row;
8994
align-items: center;
@@ -129,10 +134,14 @@
129134
}
130135
}
131136

137+
&:has(.definition-change-details) .definition-change-header {
138+
border-bottom: 1px solid var(--u-color_border_subdued);
139+
border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
140+
}
141+
132142
& .definition-change-details {
133143
position: relative;
134144
width: 100%;
135-
border-top: 1px solid var(--u-color_border_subdued);
136145
padding: 0;
137146

138147
& pre {

0 commit comments

Comments
 (0)