{% block beforeContent %}{% endblock %}
-

+

Search results for "foobar"

diff --git a/src/nationalarchives/utilities/_typography.scss b/src/nationalarchives/utilities/_typography.scss index 027d5548..70f14666 100644 --- a/src/nationalarchives/utilities/_typography.scss +++ b/src/nationalarchives/utilities/_typography.scss @@ -79,8 +79,12 @@ strong { p { margin: 0 0 1rem; - @include media.on-tiny { - margin-bottom: 1rem; + // @include media.on-tiny { + // margin-bottom: 1rem; + // } + + + *:not(p, ul, ol) { + margin-top: 2rem; } &:last-child { @@ -124,8 +128,8 @@ small { .tna-ul, .tna-ol { - margin-top: 0; - margin-right: 0; + // margin-top: 0; + // margin-right: 0; margin-left: 0; padding: 0 0 0 2rem; @@ -331,6 +335,8 @@ small { } %heading { + @extend %headings-and-heading-groups; + @include colour.colour-font("font-dark"); text-wrap: balance; @@ -359,6 +365,8 @@ small { } %heading-xl { + @extend %heading; + @include typography.heading-font; @include typography.relative-font-size(64); line-height: 1.2; @@ -373,6 +381,8 @@ small { } %heading-l { + @extend %heading; + @include typography.heading-font; @include typography.relative-font-size(32); line-height: 1.3; @@ -387,38 +397,59 @@ small { } %heading-m { + @extend %heading; + @include typography.main-font-weight-bold; @include typography.relative-font-size(22); line-height: 1.6; + + @include media.on-mobile { + @include typography.relative-font-size(20); + } } %heading-s { + @extend %heading; + @include typography.main-font-weight-bold; @include typography.relative-font-size(18); line-height: 1.6; } -.tna-heading { - @extend %heading; +%headings-and-heading-groups { + margin-top: 3rem; + margin-bottom: 1rem; + + &:first-child { + margin-top: 0; + } - &--xl { + &:last-child { + margin-bottom: 0; + } +} + +.tna-heading { + &-xl { @extend %heading-xl; } - &--l { + &-l { @extend %heading-l; } - &--m { + &-m { @extend %heading-m; } - &--s { + &-s { @extend %heading-s; } } .tna-hgroup { + @extend %headings-and-heading-groups; + &__supertitle { margin: 0 0 0.25rem; @@ -429,46 +460,25 @@ small { margin: 0; display: block; - - @extend %heading; } - &--xl &__title { + &-xl &__title { @extend %heading-xl; } - &--l &__title { + &-l &__title { @extend %heading-l; } - &--m &__title { + &-m &__title { @extend %heading-m; } - &--s &__title { + &-s &__title { @extend %heading-s; } } -.tna-heading, -.tna-hgroup { - margin-top: 3rem; - margin-bottom: 1rem; - - // &--m, - // &--s { - // margin-bottom: 0.5rem; - // } - - &:first-child { - margin-top: 0; - } - - &:last-child { - margin-bottom: 0; - } -} - .tna-blockquote { margin-top: 0; margin-right: 0;