Skip to content

Commit

Permalink
feat: sd 257471 (#942)
Browse files Browse the repository at this point in the history
* update sticky class

* fix css-grid width

* fix sticky height on mobile
  • Loading branch information
rolorogan committed May 30, 2023
1 parent 4dc4c1c commit 71888a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/wmnds/assets/sass/styles/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
&.wmnds-sticky {
position: sticky;
top: 0;
max-height: 100vh;
overflow-y: auto;

@media screen and (max-width: $breakpoint-md) {
position: initial;
max-height: fit-content;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
&-3-col {
display: grid;
grid-gap: $size-lg;
grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

&-2-col {
Expand Down

0 comments on commit 71888a0

Please sign in to comment.