Skip to content

Commit

Permalink
Merge pull request #371 from nationalarchives/feature/further-judgmen…
Browse files Browse the repository at this point in the history
…t-text-spacing-tweaks

Rethink judgment paragraph numbering layout on small breakpoint
  • Loading branch information
timcowlishaw authored Sep 23, 2022
2 parents 754d5b6 + 949e94f commit edb84de
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions ds_judgements_public_ui/sass/includes/_judgment_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@
}

&__number {
@media (max-width: $grid__breakpoint-medium) {
padding-right: $spacer__unit;
}

&:target {
animation-duration: 1.5s;
animation-name: emphasis-border;
Expand All @@ -213,20 +217,64 @@
}

&__section {

@media (max-width: $grid__breakpoint-medium) {
> div {
display: inline;
&::after {
content: " ";
display: block;
}
p {
display: inline;
&::after {
content: " ";
display: block;
margin-bottom: $spacer__unit;
}
}
}
}

@media (min-width: $grid__breakpoint-medium) {
display: grid;
grid-template-columns: 1fr 15fr;
grid-template-rows: 1fr;
gap: 0 $spacer__unit * 0.5;
grid-template-areas: ". .";
}
}


&__nested-section {

@media (max-width: $grid__breakpoint-medium) {
margin-left: $spacer__unit;

> div {
display: inline;
&::after {
content: " ";
display: block;
}
p {
display: inline;
&::after {
content: " ";
display: block;
margin-bottom: $spacer__unit;
}
}
}
}

@media (min-width: $grid__breakpoint-medium) {
display: grid;
grid-template-columns: 1fr 24fr;
grid-template-rows: 1fr;
gap: 0 $spacer__unit * 0.5;
grid-template-areas: ". .";
}
}

&__indent {
Expand Down

0 comments on commit edb84de

Please sign in to comment.