Skip to content

Commit

Permalink
Merge pull request #1481 from nationalarchives/FCL-332/fix-court-filt…
Browse files Browse the repository at this point in the history
…er-styling

FCL-332 | fix mobile styling on structured search page
  • Loading branch information
jlhdxw authored Sep 25, 2024
2 parents cd7eb86 + 29f1fb3 commit c4d2898
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,12 @@

&__help-text {
text-align: left;
margin: $space-1 0 $space-2 0;
margin: $space-2 $space-4 0 $space-4;
font-size: $typography-sm-text-size;

@media (min-width: $grid-breakpoint-medium) {
margin: $space-1 0 $space-2 0;
}
}

&__header-beta {
Expand Down
27 changes: 21 additions & 6 deletions ds_judgements_public_ui/sass/includes/_structured_search.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.structured-search {
legend {
padding: 0;
margin-bottom: $space-4;

@media (min-width: $grid-breakpoint-medium) {
margin-bottom: 0;
}
}

&__main-search {
Expand All @@ -18,6 +23,7 @@
font-weight: $typography-normal-font-weight;
line-height: $typography-xs-line-height;
margin: $space-4 0 0;

@media (max-width: $grid-breakpoint-medium) {
margin: $space-2 $space-4;
}
Expand Down Expand Up @@ -159,8 +165,12 @@
}

&__help-text {
margin-top: $space-1;
margin-top: 0;
font-size: $typography-sm-text-size;

@media (min-width: $grid-breakpoint-medium) {
margin-top: $space-1;
}
}

&__from-date-error-message {
Expand Down Expand Up @@ -191,11 +201,13 @@
}

&__court-options {
display: block;
display: flex;
flex-direction: column;
gap: $space-4;
width: 100%;

@media (min-width: $grid-breakpoint-medium) {
display: flex;
flex-direction: row;
gap: $space-8;
}
}
Expand Down Expand Up @@ -258,10 +270,13 @@
}

&__court-group-label {
margin-top: $space-2;
margin: $space-4 0;
line-height: $typography-xs-line-height;
vertical-align: baseline;
margin-bottom: $space-2;

@media (min-width: $grid-breakpoint-medium) {
margin: $space-2 0;
}
}

&__court-group {
Expand All @@ -271,7 +286,7 @@

&__court-option-label {
margin-left: $space-2;
line-height: $typography-xs-line-height;
line-height: $typography-md-line-height;
vertical-align: baseline;
}
&__court-date-range {
Expand Down

0 comments on commit c4d2898

Please sign in to comment.