Skip to content

Commit

Permalink
feat: sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
amrsalama committed Feb 8, 2020
1 parent 93042cf commit 5cf928c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Components/Board/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@ export default css`
display: flex;
flex-direction: row;
overflow: auto;
position: fixed;
width: 100%;
height: 100%;
}
/* trainees */
.board .trainees-section {
background-color: white;
position: sticky;
left: 0;
z-index: 1;
padding: 0 10px;
}
/* sheets */
.board .sheets-section .sheets {
display: flex;
flex-direction: row;
position: sticky;
top: 0;
}
.board .sheets-section .trainee-problems-status {
Expand Down
6 changes: 6 additions & 0 deletions src/Components/TraineeList/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default css`
.trainee-list {
display: flex;
flex-direction: column;
background: white;
padding: 0 10px;
}
.trainee-list .header {
Expand All @@ -16,6 +18,10 @@ export default css`
text-transform: uppercase;
font-size: 14px;
cursor: default;
background: white;
position: sticky;
top: 0;
z-index: 10;
}
.list-item {
Expand Down

0 comments on commit 5cf928c

Please sign in to comment.