Last active
January 20, 2020 11:34
-
-
Save simonwhatley/1b82c6e19f4d46e45edd344333a86ed7 to your computer and use it in GitHub Desktop.
Using govuk-frontend styles in markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.app-markdown { | |
h1 { | |
@extend %govuk-heading-xl; | |
} | |
h2 { | |
@extend %govuk-heading-l; | |
} | |
h3 { | |
@extend %govuk-heading-m; | |
} | |
h4 { | |
@extend %govuk-heading-s; | |
} | |
p { | |
@extend %govuk-body-m; | |
} | |
strong, | |
b { | |
@include govuk-typography-weight-bold; | |
} | |
ul, | |
ol { | |
@extend %govuk-list; | |
} | |
ol { | |
@extend %govuk-list--number; | |
} | |
ul { | |
@extend %govuk-list--bullet; | |
} | |
hr { | |
@extend %govuk-section-break; | |
@extend %govuk-section-break--visible; | |
@extend %govuk-section-break--xl; | |
} | |
table { | |
@include govuk-font($size: 19); | |
@include govuk-text-colour; | |
@include govuk-responsive-margin(6, "bottom"); | |
border-spacing: 0; | |
border-collapse: collapse; | |
width: 100%; | |
} | |
th { | |
@include govuk-typography-weight-bold; | |
border-bottom: 1px solid $govuk-border-colour; | |
padding: govuk-em(govuk-spacing(2), 19px) govuk-em(govuk-spacing(4), 19px) govuk-em(govuk-spacing(2), 19px) 0; | |
text-align: left; | |
} | |
td { | |
border-bottom: 1px solid $govuk-border-colour; | |
padding: govuk-em(govuk-spacing(2), 19px) govuk-em(govuk-spacing(4), 19px) govuk-em(govuk-spacing(2), 19px) 0; | |
text-align: left; | |
} | |
th:last-child, | |
td:last-child { | |
padding-right: 0; | |
} | |
caption { | |
@include govuk-typography-weight-bold; | |
display: table-caption; | |
text-align: left; | |
} | |
blockquote { | |
@extend .govuk-inset-text; | |
margin-left: 0px; | |
} | |
img { | |
max-width: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment