Skip to content

Commit 0fdfcf7

Browse files
Ensure filters are shown in left column at smaller breakpoints
1 parent 2a9ead5 commit 0fdfcf7

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

app/assets/stylesheets/components/_filters.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,19 @@
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 {
913
background-color: nhsuk-colour("grey-1");
14+
padding-left: nhsuk-spacing(3);
15+
margin-left: #{nhsuk-spacing(-3) - 1px};
16+
17+
@include nhsuk-media-query($from: tablet) {
18+
padding-left: nhsuk-spacing(4);
19+
margin-left: #{nhsuk-spacing(-4) - 1px};
20+
}
1021
}
1122
}
1223

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)