Skip to content

Commit

Permalink
Makes planning actions sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentChin committed May 3, 2020
1 parent 15a0df5 commit 763857f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/css/availability-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,15 @@ table.availability-table {
color: white;
}
}

@media screen and (min-width: 1001px) {
table.availability-table {
position: relative;
z-index: 0;

thead {
position: sticky;
top: 90px;
}
}
}
12 changes: 12 additions & 0 deletions assets/css/planning.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,15 @@ $tableBoxSize: 40px;
}
}
}

@media screen and (min-width: 1001px) {
.planning-actions-container {
position: sticky;
top: 0;
z-index: 1;
width: 100vw;
max-width: 100vw;
background-color: white;
padding: 10px;
}
}

0 comments on commit 763857f

Please sign in to comment.