Skip to content

Commit 6b82a3c

Browse files
Ensure filters are shown in left column at smaller breakpoints
1 parent 664b609 commit 6b82a3c

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

app/assets/stylesheets/components/_filters.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@
55
&.nhsuk-card {
66
background-color: color.scale(nhsuk-colour("grey-4"), $alpha: -50%);
77

8+
@include nhsuk-responsive-padding(4, "left");
9+
@include nhsuk-responsive-padding(4, "right");
10+
@include nhsuk-responsive-padding(2, "bottom");
11+
812
.nhsuk-card__heading {
13+
margin-left: #{nhsuk-spacing(-3) - 1px};
14+
padding-left: nhsuk-spacing(3);
915
background-color: nhsuk-colour("grey-1");
16+
17+
// stylelint-disable-next-line max-nesting-depth
18+
@include nhsuk-media-query($from: tablet) {
19+
margin-left: #{nhsuk-spacing(-4) - 1px};
20+
padding-left: nhsuk-spacing(4);
21+
}
1022
}
1123
}
1224

app/assets/stylesheets/core/objects/_grid.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
.app-grid-column-filters {
3333
display: block;
3434

35-
@include nhsuk-grid-column(one-third, $at: large-desktop);
35+
@include nhsuk-grid-column(one-third, $at: desktop);
3636
}
3737

3838
.app-grid-column-results {
39-
@include nhsuk-grid-column(two-thirds, $at: large-desktop);
39+
@include nhsuk-grid-column(two-thirds, $at: desktop);
4040
}
4141

4242
.app-grid-column-filters > .nhsuk-card--feature,

0 commit comments

Comments
 (0)