Skip to content

Commit a6d776d

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

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

app/assets/stylesheets/components/_filters.scss

Lines changed: 13 additions & 2 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-
.nhsuk-card__heading {
9-
background-color: nhsuk-colour("grey-1");
8+
@include nhsuk-responsive-padding(4, "left");
9+
@include nhsuk-responsive-padding(4, "right");
10+
@include nhsuk-responsive-padding(2, "bottom");
11+
}
12+
13+
.nhsuk-card__heading {
14+
margin-left: #{nhsuk-spacing(-3) - 1px};
15+
padding-left: nhsuk-spacing(3);
16+
background-color: nhsuk-colour("grey-1");
17+
18+
@include nhsuk-media-query($from: tablet) {
19+
margin-left: #{nhsuk-spacing(-4) - 1px};
20+
padding-left: nhsuk-spacing(4);
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)