Skip to content
Snippets Groups Projects
Commit 6b7dbd2f authored by Chris Lawton's avatar Chris Lawton Committed by Todd Dembrey
Browse files

move column scrolling in to a mixin

parent b8148ecc
No related branches found
No related tags found
No related merge requests found
...@@ -11,18 +11,8 @@ ...@@ -11,18 +11,8 @@
// containing <ul> // containing <ul>
&__list { &__list {
@include column-scrolling;
overflow-y: scroll; overflow-y: scroll;
height: calc(100vh - #{$listing-header-height});
@include media-query(tablet-landscape) {
// only allow columns to be scrolled on larger screens
height: calc(100vh - var(--header-admin-height) - #{$listing-header-height});
}
@include media-query(laptop-short) {
// allow for vertical scrolling on laptops
height: calc(100vh - #{$listing-header-height});
}
// ensures the last item will be at the top of the column after navigating to it via the dropdown // ensures the last item will be at the top of the column after navigating to it via the dropdown
&--applications { &--applications {
......
.application-display { .application-display {
@include column-scrolling;
padding: 20px; padding: 20px;
@include media-query(tablet-landscape) {
height: calc(100vh - var(--header-admin-height) - #{$listing-header-height} - 40px);
overflow-y: scroll;
}
@include media-query(laptop-short) {
// allow for vertical scrolling on laptops
height: calc(100vh - #{$listing-header-height} - 40px);
}
} }
...@@ -24,14 +24,7 @@ ...@@ -24,14 +24,7 @@
// loading container // loading container
&__loading { &__loading {
@include media-query(tablet-portrait) { @include column-scrolling;
height: calc(100vh - var(--header-admin-height) - #{$listing-header-height} - 40px);
}
// 100vh - listing header - display-panel__body padding
@include media-query(laptop-short) {
height: calc(100vh - #{$listing-header-height} - 40px);
}
} }
&__header { &__header {
......
...@@ -209,3 +209,15 @@ ...@@ -209,3 +209,15 @@
} }
} }
} }
@mixin column-scrolling {
@include media-query(tablet-landscape) {
height: calc(100vh - var(--header-admin-height) - #{$listing-header-height} - 40px);
overflow-y: scroll;
}
@include media-query(laptop-short) {
// allow for vertical scrolling on laptops
height: calc(100vh - #{$listing-header-height} - 40px);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment