Skip to content

Commit e29fa0f

Browse files
committed
Negative margin to bring the filter up while keeping the height and padding as it is
1 parent 3aa12ff commit e29fa0f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/Navigator/NavigatorCard.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,9 @@ $navigator-card-vertical-spacing: 8px !default;
10561056
align-items: flex-end;
10571057
10581058
.filter-on-top & {
1059+
// negative margin to bring the filter up
1060+
// while keeping the height and padding as it is
1061+
margin-top: calc(#{var(--nav-filter-vertical-padding)} * -1);
10591062
border-top: none;
10601063
align-items: flex-start;
10611064
}
@@ -1065,9 +1068,10 @@ $navigator-card-vertical-spacing: 8px !default;
10651068
10661069
@include breakpoint(medium, nav) {
10671070
--nav-filter-horizontal-padding: 20px;
1071+
--nav-filter-vertical-padding: 10px;
10681072
border: none;
1069-
padding-top: 10px;
1070-
padding-bottom: 10px;
1073+
padding-top: var(--nav-filter-vertical-padding);
1074+
padding-bottom: var(--nav-filter-vertical-padding);
10711075
height: $filter-height-small;
10721076
}
10731077
@@ -1095,6 +1099,7 @@ $navigator-card-vertical-spacing: 8px !default;
10951099
10961100
.scroller {
10971101
height: 100%;
1102+
margin: 0;
10981103
box-sizing: border-box;
10991104
padding-bottom: calc(var(--top-offset, 0px) + var(--card-vertical-spacing));
11001105
transition: padding-bottom ease-in 0.15s;

0 commit comments

Comments
 (0)